Created
November 8, 2009 02:35
-
-
Save laktek/229044 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has("folding") | |
set foldenable | |
set foldmethod=syntax | |
set foldlevel=1 | |
set foldnestmax=2 | |
set foldtext=strpart(getline(v:foldstart),0,50).'\ ...\ '.substitute(getline(v:foldend),'^[\ #]*','','g').'\ ' | |
" automatically open folds at the starting cursor position | |
" autocmd BufReadPost .foldo! | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment