vim-markdown
This plug-in will automatically set foldmethod=expr
for files with filetype
being mkd
, which will use rake new_post
The generated markdown
file has the side effect of folding somewhere, expanding and syntax highlighting:
How to eliminate it once and for all without changing foldmethod
? Thanks!
Updated: I expected that there would be no good solution, but I found a new plug-in vim-octopress that can replace vim-markdown
. Not only does it not have the side effects of the former, but it also supports rake
Command built-in. There is no need to dwell on this issue any longer.
看vim-markdown的帮助文档,通过在
.vimrc
中设置变量应该可以disable vim-markdown吧。 如果你不用它,甚至可以移除这个插件。ps. vim本身也带了 markdown的插件,不过仅限于语法高亮。
另一个方法,仅供参考: 打开 markdown 文件后,
:set ft=txt
。 或者在你不想折叠高亮的 markdown 文件开头或末尾增加一个 vim modeline:不确定能不能work,试一下吧。我不用vim好久了。
可以试下在.vimrc中添加这一行,禁用markdown的折叠功能: