Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable code folding? #22

Open
heisian opened this issue Feb 8, 2018 · 0 comments
Open

How to enable code folding? #22

heisian opened this issue Feb 8, 2018 · 0 comments

Comments

@heisian
Copy link

heisian commented Feb 8, 2018

  • I see JavaScriptFold() in the source, however vim tells me No fold found when I type zc 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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant