设置nofoldenable在我的vim中不起作用-为什么? [英] set nofoldenable not working in my vim - why?
问题描述
每次我在MacVim中打开一个markdown文件(.md
扩展名)时,它们都会自动折叠很多行,这在几乎所有情况下都是令人沮丧的功能.即使在~/.vimrc
中添加了set nofoldenable
之后,它也完全不会禁用该功能.用~/.gvimrc
编写也不起作用.
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?
我还想知道为什么令人沮丧的折叠功能仅在我的markdown文件中起作用.据我所知,我使用的所有其他扩展都不符合该功能.
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.
我使用OS-X默认的Vim 7.3和Mavericks 10.9.1.
I use OS-X default Vim 7.3 and Mavericks 10.9.1.
推荐答案
您尝试过
au FileType markdown setlocal nofoldenable
这篇关于设置nofoldenable在我的vim中不起作用-为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!