How to enable code folding?
heisian opened this issue · 0 comments
heisian commented
- I see
JavaScriptFold()
in the source, however vim tells meNo fold found
when I typezc
in a foldable block - If I add the following manually to my
~/.vimrc
, it seems to work:
" From vim-es6 source:
setl foldmethod=syntax
setl foldlevelstart=1
syntax region foldBraces start=/{/ end=/}/ transparent fold keepend extend
- How can I get folding to work without manually adding the above to
~/.vimrc
?