Try $ vimtutor , it will teach you everything you need to know to get started.
hjkl are the tip of the iceberg and are very rarely used, at least in my case.
wWEe and BbgegE all allow you to navigate a word:
w and e go ahead, w and e consider spaces and punctuation
" here the * marks the default location of the cursor " and each letter shows where you jump when you hit the key. Latin: Lorem ipsum dolor sit amet. * eee * EEE * wwwwwww * WWWWWW
b and ge go backward; b and ge consider spaces and punctuation
Latin: Lorem ipsum dolor sit amet. bbbb * BBB * ge ge ge* ge gE gE gE*
fFtT are used to achieve a certain character on the current line and fFtT are used to repeat this movement in the same direction for ; and in the opposite direction for:
fm goes next m forward, F goes back
Latin: Lorem ipsum dolor sit amet. * fm ; ; ; Fm *
tm goes to the next m forward, T goes back
Latin: Lorem ipsum dolor sit amet. * tm ; ; ; Tm *
/? used to go to the first occurrence of the template from the current cursor position:
0$ are used to go to the first and last character of the string.
(whitespace)Latin: Lorem ipsum dolor sit amet.(whitespace) 0 * $
^g_ are used to jump to the first and last printable character of a string.
(whitespace)Latin: Lorem ipsum dolor sit amet.(whitespace) ^ * g_
Single and combined ()[]{} are used to move a phrase across a phrase or paragraph or code by a block of code.
<Cb> and <Cf> are used to scroll back and forth across the screen.
<Cu> and <Cd> are used to scroll half-screen back and forth.
H , m and L move the cursor to the top, middle, and bottom of the viewport, respectively.
zt , zz and zb move the line under the cursor to the upper, middle, lower parts of the viewport, respectively.
And so on.
:help motion.txt will hit your mind.
romainl Jan 6 2018-12-12T00: 00Z
source share