Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to config vim to open a filename which contains line and column number?
  2. # compile file
  3. $ g++ -Wall main.cpp
  4. main.cpp:42:7: warning: backslash and newline separated by space
  5.  
  6. # I do this to locate
  7. $ vim main.cpp +42 +'normal 7|'
  8.  
  9. # how to do this?
  10. $ vim main.cpp:42:7:
  11.        
  12. vim file.cpp:10
  13. vim file.cpp:10:
  14. vim file.cpp:10:4
  15. vim file.cpp:10:4:
  16.        
  17. :help quickfix
  18.        
  19. :set makeprg=g++ -Wall main.cc " the default is make
  20. :make