vim tips, goto line
0 votos
February 10th, 2007 mysurface Posted in Misc, Text Manipulation, vi, vim | Hits: 9175 |
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
vim hello.c +12
And while edit with vim, to move to desire line, type the line number and press shift g or G. With the search forward and backward tips examples shows here.
Yesterday, I accidentally discover that to move to a desire line while edit with vim, can be done by this
:12
As I press escape and colon more often than pressing shift g, goto a line with :<line number&mt; is more comfortable for me.
Live Chat!









July 4th, 2007 at 3:40 am
12gg works well too.
September 26th, 2007 at 11:52 am
Yes it works, good tip