How to setup vim/emacs keybindings in RStudio?

emacs, key-bindings, r, rstudio, vim

Solution

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

Please make sure your RStudio's version is above v0.99.x!

Problem

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?

Original source