Wikia

Vim Tips Wiki

Go to line

Talk0
1,613pages on
this wiki
Revision as of 14:08, July 10, 2013 by Atcold (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 751 Printable Monobook Previous Next

created June 21, 2004 · complexity basic · author Char · version 5.7


There are at least three different ways to go to a particular line (line 42 for example):

42G
42gg
:42<CR>

CommentsEdit

To bring line 42 to the top (centre or bottom) of your screen, add zt (z. or zb) to one of the aforementioned commands. Moreover, to navigate to the Higher, Middle or Lower part of your screen, just press H, M or L (which are, respectively, capital H, capital M and capital L).

Around Wikia's network

Random Wiki