Fold C Preprocessor in VIM
Posted
by Sunny
on Stack Overflow
See other posts from Stack Overflow
or by Sunny
Published on 2010-03-09T09:34:19Z
Indexed on
2010/03/09
9:36 UTC
Read the original article
Hit count: 193
vim
Is it possible to fold C preprocessor in VIM. For example:
#if defined(DEBUG)
//some block of code
myfunction();
#endif
I want to fold it so that it becomes:
+-- 4 lines: #if defined(DEBUG)---
© Stack Overflow or respective owner