vim – Cursor Movement

#Move cursor left

h

#Mover cursor down

j

#Move cursor up

k

#Move cursor right

l

#Move to top of the screen

H

#Move to middle of the screen

M

#Move to bottom of the screen

L

#Jump forwards to the start of a word

w

#Jump forwards to the start of a word (words can contain punctuation)

W

#Jump forwards to the end of a word

e

#Jump forwards to the end of a word ( words can contain punctuation )

E

#Jump backwards to the start of a word

b

#Jump Backwords to the start of a word ( Words can contain punctuation )

B

#Move to matching character ( default supported pairs: ‘()’, ‘{}’, ‘[]’ -use :h matchpairs in vim for more info )

%

#Jump to start of the line

0

#Jump to start of the first non-blank character of the line

^

#Jump to the end of the line

$

#Jump to the last non-blank character of the line

g_

#Go to the first line ot the document

gg

#Go to the last line of document

G

#Go to line 7

7G

#Jump to next occurrence of the character x

fx

#Jump to before next occurrence of the character x

tx

#Jump to previous occurrence of the character x

Fx

#Jump to after previous occurrence of the character x

Tx

#Repeat previous f, t, F or T movement

;

#Repeat previous f, t, F or T movement, backwards

,

#Jump to next paragraph ( or function/block, when editing code )

}

#Jump to next paragraph ( or fucntion/block, when editing code )

{

#Center cursor on screen

zz

#Move screen down one line without moving cursor

Ctrl+e

#Move screen up one line without moving cursor

Ctrl+y

#Move back one full screen

Ctrl+b

#Move forward one full screen

Ctrl+f

#Move forward 1/2 a screen

Ctrl+d

#Move backward 1/2 a screen

Ctrl+u

To contribute :

” If you like Advance Computing and would like to contribute, you can  mail your article to “computingadvance@gmail.com”. You will get credit as your name , email id, designation with article on this blog. “

Leave a Reply