Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Folding by syntax
- set fdm=syntax
- " Perl folding
- let perl_fold=1
- " Only create new fold when in command mode
- autocmd InsertEnter * if !exists('w:last_fdm') | let w:last_fdm=&foldmethod | setlocal foldmethod=manual | endif
- 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