New answers tagged

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 ...
idbrii's user avatar
  • 631

Top 50 recent answers are included