Open file to edit with vim at desire line
0 votos
November 9th, 2006 Posted in Text Manipulation, vim | Hits: 2630 |
You know that you can open a file with the desire line the curser will stop at
for example, when you get some error message say the code have error at line 3 of file text1,
you can use the +
to specify you curser starting point.
vim text1 +3
Live Chat!









November 9th, 2006 at 7:11 pm
Wow! great tips! Its really helps the software developer while tracing or debugging the source code.
November 10th, 2006 at 10:22 pm
Alternatively, you can call
:make
from within vim. Then scroll to next error/warning with
:cn
and look at the error/warning message with
:cc
or jump back to previous error/warning with
:cp
November 19th, 2006 at 7:51 pm
[...] Refers back to Open file to edit with vim at desire line, here is another short tips of vim. [...]
February 10th, 2007 at 1:22 pm
[...] If you have search for vim tips at here, you may remember to go to the desire line while opening file with vim is like this [...]