This question already has an answer here:
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.
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. Assignment operator and Rnoweb completion of code block
...
To completely disable this feature, put in your vimrc:
let vimrplugin_assign = 0
来源:https://stackoverflow.com/questions/22453482/disable-underscore-shortcut-inserting-in-vim-r-plugin