Editing Matlab files in Vim

Version 1.4.0.0 (12.6 KB) by Fabrice
Edit Matlab M-files in Vim editor (indentation, syntax highlighting, tags , mlint support)
14.2K Downloads
Updated 19 May 2010

View License

Contains a set of files useful to edit Matlab files.

Included is :
1) Syntax highlighting
2) Correct indentation
3) Integration in vim of the mlint Matlab code checker with the :make command
4) Correct setting to use the matchit.vim script (extension of the % command to match if/end, for/end,... blocks)
5) Tag support
6) Help file

Cite As

Fabrice (2024). Editing Matlab files in Vim (https://www.mathworks.com/matlabcentral/fileexchange/21798-editing-matlab-files-in-vim), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Environment and Settings in Help Center and MATLAB Answers
Acknowledgements

Inspired: Highlighting Matlab files in Vim

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

Updated support for the matchit script (to use % to jump between try/end, if/end, switch/end,... blocks) , to deal with expressions like a(1+end) where 'end' is not the end of a block command but the length of a vector.

1.3.0.0

- Added support for indentation of if/end blocks on the same line
- Changed the function indentation behavior (now based on the 'indent all functions' option in the Matlab Editor)

1.2.0.0

Enhanced syntax highligting for Matlab m-files : most Matlab builtin functions are now highlighted

1.1.0.0

- added a help file (matlab.txt)
- wrong indentation for subfunctions without matching 'end' has been fixed

1.0.0.0