Previous TipNext Tip

Tip: #797 - All folds open when opening a file

Created: October 1, 2004 7:11 Complexity: basic Author: Pim Snel Version: 6.0 Karma: 6/7 Imported from: Tip#797

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


See comments toward the bottom of VimTip80

Suresh Govindachar , October 1, 2004 13:31

Community content is available under CC-BY-SA unless otherwise noted.