Vim Editor

Vim Keyboard Shortcuts


  1. Cursor Movement

These keys move the cursor:

h → Move Left

l → Move Right

j → Move Down

k → Move Up


  1. Jump Particular Line

Ctrl + j → Jump down

Ctrl + k → Jump up

Ctrl + l → Last line of the particular page

w -> to jump between words


  1. Go to Start / End of File

Shift + g → Go to end of file

gg → Go to top of file


  1. Select a Particular Line

Shift + v → Select the entire line (Visual Line Mode)

ctrl + v → Visual block mode


  1. Copy Selected Line

Shift + v + y → Copy (Yank) the selected line


  1. Paste

p → Paste the copied line


  1. Paragraph Movement

g+j → Goes to next line in the same Paragraph

g+k → Goes to previous line in the same Paragraph

g+$ → Move to the end of the visual line

g+0 → move to the start of the visual line

g+q → to divide the paragraph into no of lines

g+U → to get the selected value in uppercase

g+u → to get the selected value in lowercase

g+f → it opens the particular file stated on the selected line

ctrl + ^ → to get back on the previous file


Last updated

Was this helpful?