在 .vimrc 上禁用 vim 鼠标模式

发布于 2025-01-18 22:52:09 字数 164 浏览 4 评论 0原文

如果我将设置为: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

剑心龙吟 2025-01-25 22:52:09

.vimrc 中的语法是 set mouse=a

当您使用通过按转义键访问的命令托盘时,仅使用前面的冒号。

The syntax in .vimrc is set mouse=a.

You only use a preceding colon when you are using the command pallet accesed by pressing escape key.

何以笙箫默 2025-01-25 22:52:09

.vimrc中的正确语法以启用鼠标的用法:

set mouse=a

根据您的问题,您在等于符号之前添加了连字符( - ),使其- =,当它应该是一个等式时(=)时。

您能确保删除连字符,然后看看它是否有效?

The correct syntax in .vimrc to enable your mouse's usage is the following:

set mouse=a

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文