Tip: #203 - Automatically open the quickfix window on :make
Created: January 27, 2002 6:34 Complexity: basic Author: Padraic Renaghan Version: 6.0 Karma: 74/23 Imported from: Tip#203
I find this a very useful command to use.
Add the below 4 lines to your vimrc.
Then instead of "make" use "Make".
" Command Make will call make and then cwindow which
" opens a 3 line error window if any errors are found.
" if no errors, it closes any open cwindow.
- command -nargs=* Make make <args>
Comments
great
Anonymous , January 27, 2002 20:21
since typing :Make is a bit troublesome compared to :make (which i also find a bit tiresome :)) i have a mapping:
- map <Leader>j :Make<cr>
then, just hit \j and away you go.
salmanhalim--AT--hotmail.com , January 29, 2002 6:01
Great tip. I came to this site looking exactly for this information (like I can remember the errors w/out seeing them :-)). Thanks alot.
Chad , June 17, 2002 13:59
Chad: with :cc you can see the current error and with
- cn and :cp you can switch between the errors.
vim even goes to the position in sourcecode where they occured.
daniel--AT--brot.t0c.de , October 18, 2002 6:17
Does anybody know how to display a complete error message that is too long for the line? By default it inserts ellipsys in the middle of it and only displays the beginning and the end... Thanks a bunch. EZ
ezaydens--AT--optonline.net , January 13, 2003 10:14
- clist
will display the complete line, unfortuneately it displays every other error as well
freekill--AT--pacbell.net , April 7, 2004 8:38
Hi I am trying to get efm_perl.pl working so that I can compile inside of vim without going to the shell and doing a perl -cw [filename]. I found this efm_perl.pl script that tells me to put these two lines in my vimrc:
set makeprg=$HOME/bin/vimparse.pl\ -c\ %\ $* set errorformat=%f:%l:%m
I get that. But where is the file fimparse.pl? Or is that just for output? I couldn't find it anywhere. I think I am being stupid. :)
chrismikeson--AT--yahoo.com , August 20, 2004 23:54
I'm using Borland 5.5 Free Command Line Compiler and Vim 6.3 for editor. I would love to use this command. But it doesn't seem to work with Borland make. I'm wondering if anybody has any suggestions. Thanks a lot.
zeng--AT--unbc.ca , January 30, 2005 20:39
Great... it saves lot of time....
Anonymous , March 23, 2006 2:23
Annoyingly, the efm_perl.vim file IS the vimparse.pl file.. it was renamed but nobody changed the documentation in the file itself.
sabrejack--AT--sabrejack.com , December 29, 2006 11:42