Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With a .inputrc file, I can do vim-like editing in maple. Is there a way to get vim-like line input in Matlab, either for the command-line or the GUI?

share|improve this question

Matlab doesn't use GNU readlines, so there's no direct way to bind vim keys to the Matlab command line through your ~/.inputrc. You'd have to create a wrapper that captures your vim code on a line-by-line basis. This SO link should get you started.

share|improve this answer

In Matlab editor I don't know about vim-like mode.

But you can use Vim to edit files and highlight syntax:

  1. you can use Vim in Windows downloading it from or using Cygwin and installing the right package. Then, to use Matlab syntax highlight, download it from

  2. you can use Emacs instead: . There, they say that you can use Vim only changing some parameters in their solution.

share|improve this answer
I'm looking for vim-like bindings on the matlab command-line. For editing files, I'd just use vim. – user67194 Jul 7 '11 at 22:13
Ya exactly... that's probably the best you will get because Matlab is not the most open program. I'm not even sure if you can write your own plugins for Matlab IDE/GUI. – Trevor Boyd Smith Apr 13 '12 at 19:42

You must log in to answer this question.