|
|
| Line 13: |
Line 13: |
| |
}} |
|
}} |
| |
An easy way to to get to a line (whose number we know) faster is to combine some existing methods: |
|
An easy way to to get to a line (whose number we know) faster is to combine some existing methods: |
| − |
|
|
| |
<pre> |
|
<pre> |
| − |
:123<Enter> |
+ |
:123<CR> |
| |
or |
|
or |
| |
123G |
|
123G |
| Line 23: |
Line 22: |
| |
|
|
|
| |
The solution is to map in normal mode the enter to G. |
|
The solution is to map in normal mode the enter to G. |
| − |
|
|
| |
<pre> |
|
<pre> |
| − |
:nmap <Enter> G |
+ |
:nmap <CR> G |
| |
</pre> |
|
</pre> |
| |
|
|
|
| − |
we can type the line number and then press enter to get there. |
+ |
We can type the line number and then press Enter to get there. |
| |
|
|
|
| |
==Comments== |
|
==Comments== |
Latest revision as of 05:37, September 29, 2008
An easy way to to get to a line (whose number we know) faster is to combine some existing methods:
:123<CR>
or
123G
or
123gg
The solution is to map in normal mode the enter to G.
:nmap <CR> G
We can type the line number and then press Enter to get there.
Though
:123[Enter]
takes you to line 123 in the file,
123[Enter]
takes you 123 lines down from your present position.