|title=All folds open at startup or just openen file
+
|previous=796
−
|created=October 1, 2004 7:11
+
|next=798
+
|created=October 1, 2004
|complexity=basic
|complexity=basic
|author=Pim Snel
|author=Pim Snel
|version=6.0
|version=6.0
|rating=6/7
|rating=6/7
−
|text=
+
}}
−
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
+
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.
+
<pre>
+
set foldmethod=indent
+
set foldlevel=20
+
</pre>
+
==Comments==
+
See comments toward the bottom of [[VimTip80]].
−
set foldmethod=indent
−
−
set foldlevel=20
−
−
−
}}
−
−
== Comments ==
−
See comments toward the bottom of [[VimTip80]]
−
−
Suresh Govindachar
−
, October 1, 2004 13:31
----
----
−
<!-- parsed by vimtips.py in 0.649179 seconds-->
Revision as of 01:35, November 11, 2007
Please review this tip:
This tip was imported from vim.org and needs general review.
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.