Vim folding - mark open folds

Is there any way to see where the folds open in the current file? I personally had a problem opening the folds and moving, I can not find the line from which the bend was started! Perhaps it is possible to set a beautiful folding tip next to the numbers. Maybe like this:

+ 1 void myfunc(void) { | 2 printf("Hello World\n"); | 3 printf("Goodby World!\n"); - 4 } 5 6 void anotherfunc(void) ... 

It would be very nice! I already used google and also used vim-help, but did not find a way to do this.

Regards, musicmatze

+4
source share
2 answers

Try :set foldcolumn=1

if you want to increase the number of column reset indicators, the following example uses :se fdc=3 (shortcut)

enter image description here

+7
source

A small note that may help. If you want to change folding colors: If you use gvim:

 :highlight Folded guibg=grey guifg=blue :highlight FoldColumn guibg=darkgrey guifg=white 

But if you use vim from the terminal:

 hi Folded ctermbg=black 

My settings in vimrc:

 colorscheme desertEx "some modifications to the colorscheme "to view current settings use for instance ':hi Folded' set foldcolumn=3 hi FoldColumn ctermfg=216 hi FoldColumn ctermbg=black hi Folded ctermfg=216 hi Folded ctermbg=black 
0
source

All Articles