Vim Editor
Vim Keyboard Shortcuts
Cursor Movement
These keys move the cursor:
h → Move Left
l → Move Right
j → Move Down
k → Move Up
Jump Particular Line
Ctrl + j → Jump down
Ctrl + k → Jump up
Ctrl + l → Last line of the particular page
w -> to jump between words
Go to Start / End of File
Shift + g → Go to end of file
gg → Go to top of file
Select a Particular Line
Shift + v → Select the entire line (Visual Line Mode)
ctrl + v → Visual block mode
Copy Selected Line
Shift + v + y → Copy (Yank) the selected line
Paste
p → Paste the copied line
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?