问题描述
默认情况下,每当我键入或粘贴下划线_
时,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.9for Vim version 7.4.
推荐答案
从插件的帮助页面开始:
From the help page of the plugin:
...
要完全禁用此功能,请放入您的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:
...
让R_assign = 0
let R_assign = 0
这篇关于禁止在下划线"_"快捷方式插入“<-"在Vim R插件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!