I've been using Vim for 2 years now but most (basically all) of the advanced functionality I enjoy today is from the great community of plugins available from Vim.
Currently when I try to manually fold I get this helpful error:
E350: Cannot create fold with current 'foldmethod'
:set foldmethod? tells me
What I'd really like is some direction on the simplest path to enabling manual (if it will keep my folds after the file is closed) or marker as the foldmethod on just my
Also, if I need to use
foldmethod=marker, how do I define a custom marker syntax? I'd like to do something like
#-- as that is valid sql comment syntax and shouldn't interfere with running the sql code.
If it helps, here is what I believe to be the relevant existing section from my .vimrc:
" Automatic Code Folding
let perl_fold=1 " Perl
let php_folding=1 " PHP
let sh_fold_enabled=1 " sh
let vimsyn_folding='af' " Vim script
let xml_syntax_folding=1 " XML