Tip #336: type the line number and press enter to get there
tip karma |
Rating -2/21, Viewed by 1089
|
created: |
|
October 3, 2002 2:06 |
|
complexity: |
|
basic |
author: |
|
Odyss... |
|
as of Vim: |
|
5.7 |
an easy way to to get to a line (whose number we know) faster is to combine some existing ways that are;
:132<ENTER>
or
123G
or
123gg
and the solution is to map in normal mode the enter to G
so with
:nmap <ENTER> G
we can type the line number and then press enter to get there...
it's very small gain ... but it is!!!
<<Copy C++ function declaration into implementation file |
editing remote files via scp in vim >>
Additional Notes
|