New answers tagged folding
1
vote
Create folding with several starting markers
Fortunately, your desired markers have a common prefix, so you could use:
set foldmarker=if,endif
Then it will catch both ifdef and ifndef. By default, vim's 'foldtext' displays the line excluding ...
Top 50 recent answers are included
Related Tags
folding × 233vimrc × 23
syntax-highlighting × 20
vimscript × 13
neovim × 12
key-bindings × 9
autocmd × 8
highlight × 8
comments × 7
filetype-markdown × 7
indentation × 6
filetype × 6
foldtext × 5
search × 4
cut-copy-paste × 4
functions × 4
filetype-tex × 4
manual-folding × 4
regular-expression × 3
gvim × 3
cursor-movement × 3
visual-mode × 3
insert-mode × 3
cursor-motions × 3
filetype-c++ × 3