Show Menu

Vim Muscle Memory Cheat Sheet by

Some muscle memory shortcuts for vim
vim

Normal to Insert Mode

ea
end append
cgn
change current search result

Motion

50%
Go to {count}% of the file

Command Mode

:n
Go to line n

Insert Quickly

5o<E­sc>
Insert 5 lines

Search Motions

d/ab
Delete till ab
d/ab/e
Delete till ab (inclu­sive)
dv/ab
Delete till ab (inclusive - 1)
dV/ab
Delete till line ab
d/ab/0
Delete till line ab

Text Objects

gn
Search next pattern

Operators

d
Delete
c
Change
y
Yank
=
Equalize
>
Indent
gu
InnerCase
gq
Format
gc
Comment
g?
Rotate 13
 

Copy / Paste / Delete

ddp
Exchange with line below
ddkp
Exchange with line above
xp
Exchange characters
yyp
Copy paste a line
yw
Yank word
pkJ
Paste up join
dw
Delete word
hdeep
Swap two words
vep
Visual end paste
dvip
Many blank lines to 1 blank line
:12y
Yank line 12
7dd
d6j - delete 7 lines
:%d
Delete buffer content
:m$
Move current line at the end
cw<c­-r>0
Replace with yanked text in insert mode
:10t.
Copy line 10 below current line

Search

:ilist /foo
Search for /foo
:dlist /foo
Search definition for /foo
 

Visual Mode

viwp
Select and paste word
vep
Select till end and paste
vG
Visual Select to the end

Repeat commands

. (dot)
Repeat last insert
n or N
Repeat last search
&
Repeat last substi­tution
; or ,
Repeat last search with f or t

Miscel­laneous

ZZ
Save and Quit
:read! cmd
Read cmd line results

Marks and Jumps

gi
Last edit and go to insert mode
g;
Last changes
``
Back to previous context

Download the Vim Muscle Memory Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/fraz_vim-muscle-memory.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VI Editor Cheat Sheet
          Vim NERDTree Cheat Sheet
          cVim Keyboard Shortcuts

          More Cheat Sheets by fraz

          vim mappings Cheat Sheet