Skip to content

Instantly share code, notes, and snippets.

@balazs4
Forked from dhh/vim-manipulation-cheat-sheet.md
Created September 16, 2024 09:09
Show Gist options
  • Select an option

  • Save balazs4/c1644605db2072688a1f714034928d53 to your computer and use it in GitHub Desktop.

Select an option

Save balazs4/c1644605db2072688a1f714034928d53 to your computer and use it in GitHub Desktop.

Vim Manipulation Cheat Sheet

Action

Key Result
v select
y copy (yank)
c change
d delete

Scope

Key Result
a around
i inside

Object

Key Result
w word
p paragraph
s sentence
q quotes
b brackets
o block
t tag
i indention level
W white space

Examples

Command Result
vaq select around current word
yiW copy between last and next white space
ciq change inside quotes
dii delete everything at current indention

Extra

Command Result
f<char> find next character, stop on it
t<char> find next character, stop before it
F<char> find prev character, stop on it
T<char> find prev character, stop before it
Command Result
ct" change from cursor to next " (leaving ")
df| delete from cursor to next | (including |)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment