在 .vimrc 上禁用 vim 鼠标模式
如果我将设置为:set youse- = a
to .vimrc
,那么当我使用vim打开文件时,将不会看到突出显示的颜色。
当我将VIM编辑器与上一个功能(颜色等)一起使用时,如何自动设置:设置鼠标 - = a
?
If I set :set mouse-=a
to .vimrc
, the highlight color will not be seen when I open the file with vim.
how can I set :set mouse-=a
automatically when I use the vim editor with the previous feature(color, etc.)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.vimrc
中的语法是set mouse=a
。当您使用通过按转义键访问的命令托盘时,仅使用前面的冒号。
The syntax in
.vimrc
isset mouse=a
.You only use a preceding colon when you are using the command pallet accesed by pressing escape key.
.vimrc
中的正确语法以启用鼠标的用法:根据您的问题,您在等于符号之前添加了连字符( - ),使其
- =
,当它应该是一个等式时(=
)时。您能确保删除连字符,然后看看它是否有效?
The correct syntax in
.vimrc
to enable your mouse's usage is the following:It appears, according to your question, that you have added a hyphen character(-) before the equals sign, making it
-=
, when it should just be an equals sign (=
).Could you please make sure to remove the hyphen and see if it works after that?