Disable underscore “_” shortcut inserting “<-”

2019-02-17 07:19发布

问题:

This question already has an answer here:

  • Vim: underscore(_) automatically converted to (<-) 4 answers

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.

回答1:

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