carlhuda / janus

Vim distribution
7.87k stars 816 forks source link

Setup folding for scripts #9

Open jonathan opened 14 years ago

jonathan commented 14 years ago

Folding is a nice feature. 'set foldmethod=syntax' should do it.

http://vim.wikia.com/wiki/Syntax_folding_of_Vim_scripts

danpal commented 13 years ago

+1 but also add

set nofoldenable

so it does not fold by default everytime you open a file

kalbasit commented 12 years ago

This is really a personal taste, it's nice but not everyone would know how to open folds for example, so This should probably be done in a ~/.vimrc.before template file (setting a setting controlling something inside janus to enable/disable it) anyway I'm tagging this to after vimius release because I won't have time for it