diff options
author | ben <benjaminfranzke@googlemail.com> | 2010-02-25 20:24:41 +0100 |
---|---|---|
committer | ben <benjaminfranzke@googlemail.com> | 2010-02-25 20:24:41 +0100 |
commit | bd7323d84a593bfc31f0aeb112ba442886581257 (patch) | |
tree | 4202c1e515aeee77c20705d2c4925c1b0d9f029f /.config/vim/compiler/mlint.vim | |
parent | 571bdeb566dafd17ee4879db434e199d4eab00c9 (diff) | |
download | dotfiles-bd7323d84a593bfc31f0aeb112ba442886581257.tar.gz dotfiles-bd7323d84a593bfc31f0aeb112ba442886581257.tar.bz2 dotfiles-bd7323d84a593bfc31f0aeb112ba442886581257.zip |
mv vim`s runtimepath to .config/vim instead .vim
Diffstat (limited to '.config/vim/compiler/mlint.vim')
-rw-r--r-- | .config/vim/compiler/mlint.vim | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.config/vim/compiler/mlint.vim b/.config/vim/compiler/mlint.vim new file mode 100644 index 0000000..f9e9c6d --- /dev/null +++ b/.config/vim/compiler/mlint.vim @@ -0,0 +1,44 @@ +" Vim compiler file +" Compiler: Matlab mlint code checker +" Maintainer: Fabrice Guy <fabrice.guy at gmail dot com> +" Latest Revision: 2008 Oct 16 +" Comment: mlint messages are either +" - L x (C y): message (where x and y are line number and +" column number) +" - L x (C y-z): message (where x is the line number, y and +" z the column numbers where the error comes from) + + +if exists("current_compiler") + finish +endif +let current_compiler = "mlint" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +" mlint doesn't provide filename information except if multiple +" filenames are given +" With the following command : +" mlint <filename> <filename without extension> +" mlint produces an output like that : +" ========== <filename> ========== +" L x (C y): ID : Message +" L x (C y): ID : Message +" .. +" .. +" ========== <filename without extension> ========== +" L 0 (C 0): MDOTM :Filename 'filename' must end in .m or .M +" +" The filename can then be parsed +CompilerSet makeprg=mlint\ -id\ %\ %< + +CompilerSet errorformat= + \%-P==========\ %f\ ==========, + \%-G%>==========\ %s\ ==========, + \%-G%>L\ %l\ (C\ %c):\ MDOTM%m, + \L\ %l\ (C\ %c):\ %m, + \L\ %l\ (C\ %c-%*[0-9]):\ %m, + \%-Q + |