
Untitled
By: a guest on
Apr 25th, 2012 | syntax:
None | size: 0.42 KB | hits: 10 | expires: Never
How to config vim to open a filename which contains line and column number?
# compile file
$ g++ -Wall main.cpp
main.cpp:42:7: warning: backslash and newline separated by space
# I do this to locate
$ vim main.cpp +42 +'normal 7|'
# how to do this?
$ vim main.cpp:42:7:
vim file.cpp:10
vim file.cpp:10:
vim file.cpp:10:4
vim file.cpp:10:4:
:help quickfix
:set makeprg=g++ -Wall main.cc " the default is make
:make