I'm reading Learn Vimscript the Hard Way - Chapter 18, which is also about folds.
I'm surprised to see that copying the sample code
" Vimscript file settings ---------------------- {{{
augroup filetype_vim
autocmd!
autocmd FileType vim setlocal foldmethod=marker
augroup END
" }}}
into my ~/.vimrc
, saving it, closing it, reopening it, putting the cursor on one of those lines, and pressing za doesn't have any effect.
Putting it more simply, if I don't do do anything of what I've written above, but I just paste the following in my ~/.vimrc
" Folding ---------------------- {{{
" this should be foldable
" }}}
then run :set foldmethod=marker
and then I hit za on the middle line, nothing happens.
What can I be doing wrong?
foldenable
on? (toggle withzi
)