Tip #476: multime errorformat & makeprgs
tip karma |
Rating 6/3, Viewed by 794
|
created: |
|
May 20, 2003 9:39 |
|
complexity: |
|
basic |
author: |
|
sputnik |
|
as of Vim: |
|
5.7 |
I was fiddling around with the errorformat and makeprg opts, and as I code in different languages, i was wondering if there was a way of specifiing a special makeprg and errorformat parameter for each language.... and THERE IS!!
just edit the $VIM/ftplugin/[syntaxfile].vim
i.e.: perl.vim
added at the end :
set makeprg=$HOME/bin/vimparse.pl\ -c\ %\ $*
set errorformat=%f:%l:%m
c.vim
set makeprg=g++\ %
well, and you get the pattern.
It works delightfully with the :Make tip vimtip #203
Ah! I mapped F-5 to :Make, and made it go back to the main window:
map <F5> :Make<cr><C-w><Up>
<<wrap visual selection with fold markers |
How to put the indentation level on the status line >>
Additional Notes
|