Monday, September 10, 2012

vim quickfix




其實很久以前就看過了,印像中高中看過(?

但是一直覺得沒有很好用就沒在用(炸

不過 vim 的這個功能主要是針對 C/C++

後來寫比較多 Perl / Python 就沒用了...

今天剛好再看到一次,就先筆記下來




:set makeprg=gcc\ -Wall\ -o\ %:r\ %        # define how to compile the file 
:make                                      # compile the program 


:cc             # error message 
:cn             # next error 
:cp             # previous error 
:cw             # open the quickfix window


ref.

http://easwy.com/blog/archives/advanced-vim-skills-quickfix-mode/ 

No comments:

Post a Comment