Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup vim/emacs keybindings in RStudio?

RStudio constantly requires taking fingers away from "asdf-jkl;" to the arrow keys. Not very comfortable after working with IPython's Emacs keybindings.

RStudio has vim navigation for file editing, but not for the console. (And that's not the real vim navigation. Some commands do not work at all.)

How can I setup a more friendly keyboard navigation Emacs/Vim-like for the console in RStudio?

like image 941
Anton Tarasenko Avatar asked Feb 01 '14 16:02

Anton Tarasenko


2 Answers

You can turn vim keybindings of RStudio on in Tools | Global Options | Code | Editing, like this:

enter image description here Please make sure your RStudio's version is above v0.99.x!

like image 136
Stan Zhai Avatar answered Oct 16 '22 03:10

Stan Zhai


On Macs, you can use Karabiner app, which enables vi/vim/emacs keybindings everywhere, including RStudio. Karabiner is more flexible and functional than native Cocoa quasi-Emacs bindings.

like image 25
Anton Tarasenko Avatar answered Oct 16 '22 05:10

Anton Tarasenko