Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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 http://www.vim.org/download.php or using Cygwin and installing the right package. Then, to use Matlab syntax highlight, download it from http://www.mathworks.com/matlabcentral/fileexchange/21798-editing-matlab-files-in-vim

  2. you can use Emacs instead: http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/ . 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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.