Skip to content

Instantly share code, notes, and snippets.

@zph
Created January 13, 2013 06:12
Show Gist options
  • Save zph/4522630 to your computer and use it in GitHub Desktop.
Save zph/4522630 to your computer and use it in GitHub Desktop.
function! FoldingOn()
nnoremap <Space> za
set foldmethod=indent
autocmd FileType ruby,haml,eruby,yaml,html,javascript,sass set foldmethod=syntax et
" Set all folds to open
" execute "normal zR"
endfunction
command! FoldingOn call FoldingOn()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment