Esc in markdown window correctly begins vim editing. Esc in the console window just cancels the current command line. options()$editor equals "vi" which is symbolically linked to /usr/bin/vim.tiny.
vim also works w/o problem in the terminal window.
I'm using Rstudio Version 1.1.463 on Ubuntu 16.04
Any help appreciated.