为什么 Vim 会忽略我的模式行值? [英] Why does Vim ignore my modeline values?
本文介绍了为什么 Vim 会忽略我的模式行值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的 Python 文件最后包含以下模式行:
I'm using a Python file with the following modeline at the end:
# vim: sts=4:ts=4:sw=4
如果我用这个文件启动 Vim,模型行将被忽略.我怎样才能解决这个问题?顺便说一句,我在 .vimrc
中设置了 nocompatible
.
If I start Vim with this file the modeline is ignored. How can I fix this? And BTW, I have nocompatible
set in my .vimrc
.
推荐答案
我将问题追踪到了一个名为 local_vimrc.vim 的本地插件.模式行不起作用的事实是插件的副作用.
I tracked the problem to a local plugin, called local_vimrc.vim. The fact that modeline does not work is a side-effect of the plugin.
这篇关于为什么 Vim 会忽略我的模式行值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文