Guest User

Untitled

a guest
May 12th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.33 KB | None | 0 0
  1. " Folding by syntax
  2. set fdm=syntax
  3. " Perl folding
  4. let perl_fold=1
  5. " Only create new fold when in command mode
  6. autocmd InsertEnter * if !exists('w:last_fdm') | let w:last_fdm=&foldmethod | setlocal foldmethod=manual | endif
  7. autocmd InsertLeave,WinLeave * if exists('w:last_fdm') | let &l:foldmethod=w:last_fdm | unlet w:last_fdm | endif
Add Comment
Please, Sign In to add comment