set nofoldenable not working in my vim - why?

帅比萌擦擦* 提交于 2020-01-06 04:03:28

问题


Every time I open one of my markdown (.md extension) files in my MacVim, they automatically fold lots of lines, which is a pathetically frustrating feature in almost all cases. And even after I added set nofoldenable in my ~/.vimrc, it doesn't disable the feature at all. Writing in ~/.gvimrc doesn't work, either.

So is it feasible to disable it? And what am I missing?

I also wonder why the depressing folding feature only functions in my markdown files. As far as I know, all the other extension I use don't conform to the functionality.

I use OS-X default Vim 7.3 and Mavericks 10.9.1.


回答1:


Have you tried with

au FileType markdown setlocal nofoldenable



来源:https://stackoverflow.com/questions/21547681/set-nofoldenable-not-working-in-my-vim-why

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!