Vim Tips Wiki

Editing

All folds open when opening a file

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 36: Line 36:
 
Tweak the event and filetypes matched to your liking.
 
Tweak the event and filetypes matched to your liking.
   
You could use a combination of this method and the <code>foldlevelstart</code> option to get just enough fold levels open on certain filetypes, but default to having them all open for files which are not of one of your chosen types.
+
You could use a combination of this method and the <code>foldlevelstart</code> option to get just enough fold levels open on certain filetypes, but default to having them all open even if the file is not one of your chosen types.
   
 
==See also==
 
==See also==
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template