" matlab.vim - A script to highlight MatLab code in Vim based on the output from " Matlab's in built mlint function. " " Place in your after/ftplugin directory. " " Last Change: 2008 Oct 13 " Maintainer: Thomas Ibbotson " License: Copyright 2008 Thomas Ibbotson " This program is free software: you can redistribute it and/or modify " it under the terms of the GNU General Public License as published by " the Free Software Foundation, either version 3 of the License, or " (at your option) any later version. " " This program is distributed in the hope that it will be useful, " but WITHOUT ANY WARRANTY; without even the implied warranty of " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the " GNU General Public License for more details. " " You should have received a copy of the GNU General Public License " along with this program. If not, see . " " Version: 0.3 " " The following variables affect this plugin: " " g:mlint_rmdir_cmd: set this variable to the command on your system that will " delete a directory. Defaults to the same command used by " netrw, if you have it. If not, defaults to "rmdir" " " g:mlint_path_to_mlint: set this variable to the full path to the mlint " executable, if it is not found in your system path. " " g:mlint_hover: set this variable to prevent mlint from automatically " updating on CursorHold events. This may be especially useful " if you do not have Vim 7.2.25 or later, since a bug exists in " earlier versions of Vim that causes CursorHold to continually " fire for this plugin. " if exists("b:did_mlint_plugin") finish endif " This variable can be anything as long as it exists. " We may as well set it to something useful (like the version number) let b:did_mlint_plugin = 3 " This plugin uses line continuation...save cpo to restore it later let s:cpo_sav = &cpo set cpo-=C if !hasmapto('mlintRunLint') map l mlintRunLint endif if !hasmapto('mlintGetLintMessage') map m mlintGetLintMessage endif if !hasmapto('RunLint') noremap