5.0

5.0 | 2 ratings Rate this file 32 Downloads (last 30 days) File Size: 27.26 KB File ID: #28240
image thumbnail

Highlighting Matlab files in Vim

by Yaroslav

 

20 Jul 2010 (Updated 18 Feb 2011)

Highlighting Matlab m-files in Vim editor --- light- and dark colour-schemes.

| Watch this File

File Information
Description

   Two colour scheme that resemble MATLAB's default with several additions (including light and dark background versions)

   These colour schemes are based on Ian Langworth's "tolerable.vim", and modified to resemble MATLAB's default colours on a light and dark backgrounds. The colours are easily distinguishable and best suited for MATLAB's purposes (see "group-name" for help, or Syntax/Highlight-test menu ":runtime syntax/hitest.vim").

   Included also an enhanced syntax files (based on Fabrice Guy's matlab-vim submission) to have the best experience with Matlab and Vim. Most of these files are slightly changed, so I have added all of them to the package. It is recommended to watch the original files as well.

   The files are best suited for the newest Matlab releases (2008a and later), but may be used with any Matlab 7.x release.

Install:
    Put this file in the users colors directory (default unix "~/.vim" or "$vim\vimfiles" on Windows systems), unzip and load with ":colorscheme matlablight" or ":colorscheme matlabdark"

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Editing Matlab files in Vim

MATLAB release MATLAB 7.6 (R2008a)
Other requirements Vim 7.0
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
26 Oct 2010 Marc Sean

How to you apply this to vim in cygwin?

27 Aug 2011 Peter

Great work! I have been using it on SSH client for a long time. Thanks!

17 Jan 2012 Joe Hays

Would you please consider making this a 'file type' plugin? That way the color scheme can be configured to only apply to .m files?

Please login to add a comment or rating.
Updates
10 Feb 2011

- Refined Colours
- Added cterm colours
- Syntax file to visualize colours
- Added folding & spelling
- New mappings (see help file)
- Consistent colouring of blocks (try/end)
- Full list of MATLAB keywords
- Renewed colouring syntax

18 Feb 2011

* Added the MLint file for consistency
* A new screen-shot
* Additional minor changes

Tag Activity for this File
Tag Applied By Date/Time
gvim Yaroslav 20 Jul 2010 10:18:05
highlighting Yaroslav 20 Jul 2010 10:18:05
vim Yaroslav 20 Jul 2010 10:18:05
matlab vim Yaroslav 20 Jul 2010 10:18:05
syntax vim Yaroslav 20 Jul 2010 10:18:05
vim highlighting Yaroslav 20 Jul 2010 10:18:05

Contact us at files@mathworks.com