Normal Mode

Vim Text Editor Quick Reference

1 min read

Published Jul 6 2025


11
0
0
0

LinuxText Editor

Normal mode is the initial, main mode thats available in Vim. You can usually get back to normal mode, from other modes, by pressing the Esc key.


Making changes in normal mode

KeyDescription
r

Replace 1 character

R

Change to replace mode which will over type whatever you type until you press Esc to return to normal mode

u

Undo the last change

numberu

Undo the last number changes

J

Join the line underneath on to the current line

Ctrl+r

Redo the last change

numberCtrl+r

Redo the number of last changes


Cut, copy and paste

KeyDescription
x

Cut a character out

p

Paste after the cursor

P

Paste before the cursor

xp

swap 2 characters around

D

Cut to the end of the line

dw

Cut the current word

dd

Cut the current line

ddp

Swap 2 lines around

yy

Yank (copy) a line

"+y

Copy to the operating system clipboard

"+yy

Copy a whole line to the operating system clipboard

"+p

Paste from the operating system clipboard


Change text case

KeyDescription
vU

Make the character under the cursor uppercase

vu

Make the character under the cursor lowercase

~

Toggle the case of the character under the cursor and move the cursor forwards to the next character

viwU

Make the word under the cursor all upercase and move the cursor to the start of the word

viwu

Make the word under the cursor all lowercase and move the cursor to the start of the word

viw~

Toggle the case of the word under the cursor and move the cursor to the start of the word

VU

Make the line all uppercase and move the cursor to the start of the line

gUU

Make the line all uppercase and move the cursor to the start of the line alternative

Vu

Make the line all lowercase and move the cursor to the start of the line

guu

Make the line all lowercase and move the cursor to the start of the line alternative

V~

Toggle the case of the current line and move the cursor to the start of the line

g~~

Toggle the case of the current line and move the cursor to the start of the line alternative

gggUG

Make all the text uppercase and move the cursor to the start of the file

ggguG

Make all the text lowercase and move the cursor to the start of the file

ggg~G

Toggle the text of all the text and move the cursor to the start of the file


Counters

KeyDescription
Ctrl+a

Increase the value of a number under the cursor by 1, this works for decimals, hex or octal numbers

numberCtrl+a

Increase the value of a number under the cursor by number, this works for decimals, hex or octal numbers

Ctrl+x

Decrease the value of a number under the cursor by 1, this works for decimals, hex or octal numbers

numberCtrl+x

Decrease the value of a number under the cursor by number, this works for decimals, hex or octal numbers



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