Disable underscore “_” shortcut inserting “<-” in Vim R plugin [duplicate]

女生的网名这么多〃 提交于 2019-12-01 02:07:35

问题


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

--

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

6.4. Assignment operator and Rnoweb completion of code block

...

let R_assign = 0



来源:https://stackoverflow.com/questions/22453482/disable-underscore-shortcut-inserting-in-vim-r-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!