How to set the default to unfolded when you open a file?

后端 未结 8 1625
臣服心动
臣服心动 2021-01-31 13: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 who

相关标签:
8条回答
  • 2021-01-31 14:18

    If you want a way to have it display unfolded as soon as it is opened, you can use set foldlevelstart=99 as a lot of answers explained.

    But, if you just want to see them unfolded, you can just press zi and it will unfold everything. Another, zi will close them back.

    0 讨论(0)
  • 2021-01-31 14:23

    You can add

    set foldlevelstart=99
    

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

    0 讨论(0)
提交回复
热议问题