Rank: 44886 based on 0 downloads (last 30 days) and 0 file submitted
photo

Robert

E-mail
Company/University
Drexel University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Robert View all
Updated File Comments Rating
10 Aug 2011 Editing Matlab files in Vim Edit Matlab M-files in Vim editor (indentation, syntax highlighting, tags , mlint support) Author: Fabrice

Ben,
See my comment above for how to fix error you're getting.

20 May 2011 Editing Matlab files in Vim Edit Matlab M-files in Vim editor (indentation, syntax highlighting, tags , mlint support) Author: Fabrice

This works very well, thank you! One suggestion for linux users:

To make mlint work, symlink mlint into /usr/bin so that it's in the path:

(in /usr/bin)
sudo ln -s <MATLABPATH>/bin/glnx86/mlint mlint

Also, the matlab.vim ftplugin is in DOS format, and vim will complain about "^M" characters. To fix this, open matlab.vim using the following command:

vi -U NONE -u NONE ~/.vim/ftplugin/matlab.vim

then, replace the ^M characters with newlines like this:

:%s/[CTRL-V,CTRL-M]/\r/g

When typed, this looks like:

:%s/^M/\r/g

Save, exit, and everything should work!

Contact us