Vim Tips Wiki
(Change to TipImported template + severe manual clean)
(Move categories to tip template)
Line 9: Line 9:
 
|version=6.0
 
|version=6.0
 
|rating=6/7
 
|rating=6/7
  +
|category1=
  +
|category2=
 
}}
 
}}
 
When you set <tt>foldmethod=indent</tt> all folds are closed when you open a file. If you set the foldlevel to a high setting files are always started with opened folds. Put the settings below in your vimrc.
 
When you set <tt>foldmethod=indent</tt> all folds are closed when you open a file. If you set the foldlevel to a high setting files are always started with opened folds. Put the settings below in your vimrc.

Revision as of 04:36, 25 April 2008

Tip 797 Printable Monobook Previous Next

created October 1, 2004 · complexity basic · author Pim Snel · version 6.0


When you set foldmethod=indent all folds are closed when you open a file. If you set the foldlevel to a high setting files are always started with opened folds. Put the settings below in your vimrc.

set foldmethod=indent
set foldlevel=20

Comments

See comments toward the bottom of VimTip80.