Navigating

Vim Text Editor Quick Reference

1 min read

Published Jul 6 2025


11
0
0
0

LinuxText Editor

Moving the cursor

KeyDescription
h

Move left

Alternative move left

l

Move right

Alternative move right

j

Move down

Alternative move down

k

Move up

Alternative move u


Other movements

KeyDescription
Ctrl+u

Half page up

Ctrl+d

Half page down

Ctrl+b

Full page up

Ctrl+f

Full page down

b

Previous word

w

Next word

ge

End of previous word

e

End of next word

$

End of the line

0

Start of the line

^

Start of the line, at the end of the starting white space

fletter

Moves the cursor forwards to the next instance of the letter pressed. eg. f b will move the cursor to the next letter b on the same line

Fletter

Moves the cursor backwards to the prvious instance of the letter pressed on the same line

tletter

Moves the cursor before the next instance of the letter pressed on the same line

Tletter

Moves the cursor before the previous instance of the letter pressed on the same line

l

Move the cursor forwards 1 on the same line

numberl

Move the cursor forward whatever number pressed on the same line

gg

Move the cursor to the first line of the document

G

Move the cursor to the last line of the document

:numberenter

Move to the numbers line

numberG

Move to the numbers line alternative

H

Move the cursor to the top of the screen

M

Move the cursor to the middle of the screen

L

Move the cursor to the bottom of the screen

zt

Scroll the current line to the top of the screen

zz

Scroll the current line to the middle of the screen

zb

Scroll the current line to the bottom of the screen


Brackets

KeyDescription
%

When the cursor is on a [ { ( ) } ] then pressing % will jump the cursor to the opposite of the pair


Folds

Folding hides part of the buffer so you can focus on specific sections.

KeyDescription
za

Toggle fold open or closed

zo

Open fold

zc

Close fold

zr

Reduce folding level (open more folds)

zm

Increase folding level (close more folds)

zR

Open all folds

zM

Close all folds

zd

Delete the fold under the cursor

zE

Delete all folds


Marks

You can set marks in a file for the cursor position and jump between them. Marks can be saved as any letter a-z.

KeyDescription
mletter

Set a mark and save as the letter

'letter

Jump to the line that the mark letter is on

`a

Jump to the exact position that mark letter is at



Products from our shop

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Mug

Vim Cheat Sheet Mug

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Mug

Docker Cheat Sheet Mug

SimpleSteps.guide branded Travel Mug

SimpleSteps.guide branded Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - Black

Developer Excuse Javascript Mug - Black

SimpleSteps.guide branded stainless steel water bottle

SimpleSteps.guide branded stainless steel water bottle

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Dark

Developer Excuse Javascript Hoodie - Dark

© 2025 SimpleSteps.guide
AboutFAQPoliciesContact