禁止在下划线"_"快捷方式插入“<-"在Vim R插件中 [英] Disable underscore "_" shortcut inserting "<-" in Vim R plugin

查看:90
本文介绍了禁止在下划线"_"快捷方式插入“<-"在Vim R插件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,每当我键入或粘贴下划线_时,Vim-R插件都会插入<-.当我粘贴诸如geom_bar之类的东西(变成geom <- bar)时,这会产生问题.有没有办法关闭此快捷方式?

By default, the Vim-R-plugin inserts <- whenever I type or paste an underscore _. This creates problems when I paste stuff like geom_bar, which becomes geom <- bar. Is there a way to turn this short-cut off?

我尝试查看了手册(向下滚动至编辑"部分),但不知道该怎么做.

I tried looking at the manual (scroll down to Edit section) but couldn't figure out how to do it.

我正在使用Vim-R-plugin 0.9.9.9版本 适用于Vim 7.4版.

I'm using Vim-R-plugin Version 0.9.9.9 for Vim version 7.4.

推荐答案

从插件的帮助页面开始:

From the help page of the plugin:

6.3.赋值运算符和Rnoweb代码块的完成

6.3. Assignment operator and Rnoweb completion of code block

...

要完全禁用此功能,请放入您的vimrc:

To completely disable this feature, put in your vimrc:

让vimrplugin_assign = 0

let vimrplugin_assign = 0

-

撰写本文时(2019-10-25),请将其添加到您的vimrc中:

As of writing this (2019-10-25), add this to your vimrc instead:

6.4.赋值运算符和Rnoweb代码块的完成

6.4. Assignment operator and Rnoweb completion of code block

...

让R_assign = 0

let R_assign = 0

这篇关于禁止在下划线"_"快捷方式插入“&lt;-"在Vim R插件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆