How to set the default to unfolded when you open a

2019-03-09 15:34发布

In my .vimrc I've put set foldmethod=syntax to enable folding of methods etc. However, I don't like the default that everytime I open a file, the whole thing is folded. Is there a way to enable foldmethod, yet have files unfolded when I open them?

7条回答
做自己的国王
2楼-- · 2019-03-09 15:56

You can add

set foldlevelstart=99

to your .vimrc file, and it will start editing any new file with all folds open.

查看更多
登录 后发表回答