Skip to content

Instantly share code, notes, and snippets.

@tomkersten
Created June 22, 2011 14:00
Show Gist options
  • Save tomkersten/1040138 to your computer and use it in GitHub Desktop.
Save tomkersten/1040138 to your computer and use it in GitHub Desktop.
" ---------------------------------------------------------------------------
" Folding
" ---------------------------------------------------------------------------
set foldmethod=syntax " Syntax highlighting items specify folds
set foldtext=getline(v:foldstart) " Set text displayed in "foldbar" when code is folded
set fillchars=fold:\ " Fill foldline "empty space" with...empty spaces (instead of default "-" character)
set foldcolumn=1 " Sets width of "foldcolumn" on left of screen used to display foldstatus indicators
set foldlevel=1 " Folds below 1-level. Class/Module-level definitions expanded...all others folded by default
" 'open' folds with the space bar
noremap <space> za
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment