["x]y
: yank (to register x)["x]p
: paste after["x]P
: paste before- Ctrl-R[x]: paste register x in insert mode
- The unnamed register
""
- 10 numbered registers
"0
to"9
- The small delete register
"-
- 26 named registers
"a
to"z
or"A
to"Z
- three read-only registers
":
,".
,"%
- alternate buffer register
"#
- the expression register
"=
- The selection and drop registers
"*
,"+
and"~
- The black hole register
"_
- Last search pattern register
"/
- v[motion]y - visual motion yank
- v[motion]p - visual motion paste
<number><command><text object or motion>
c
: change.d
: delete.y
: yank.>, <
: indent, dedent.=
: reformat (reindent, break long lines, etc.).cc,dd,yy,>>,<<,==
: Do on whole line.
aw
: a word (includes surrounding white space).iw
: inner word (does not include surrounding white space).
as
: a sentence.is
: inner sentence.
ap
: a paragraph.ip
: inner paragraph.
t<char>
: to forwards excluded.T<char>
: to backwards excluded.f<char>
: to included.F<char>
: to backwards included.e
: end of current word.2e
: end of next next word./<text>
: Find .n
: Repeat find.N
: Repeat backwards.
-
w
: next word. -
h,l
: <- ->. -
j,k
: up, down. -
$
: End of line. -
0
: Beginning of line. -
H,M,L
: Top, midddle, bottom of window. -
G
: End of file. -
gg
: beginning of file. -
<n>G
: th line .
a"
: a double quoted string.i"
: inner double quoted string.a'
: a single quoted string.i'
: inner single quoted string.- `a``: a back quoted string.
- `i``: inner back quoted string.
a)
: a parenthesized block.i)
: inner parenthesized block.%)
: Matching parenthesis.
a]
: a bracketed block.i]
: inner bracketed block.
a}
: a brace block.i}
: inner brace block.
at
: a tag block.it
: inner tag block.a>
: a single tag.i>
: inner single tag.
i,w
: inner camel or snake-cased word.
aa
: an argument.ia
: inner argument.
ai
: the current indentation level and the line above.ii
: the current indentation level excluding the line above.
ar
: a Ruby block.ir
: inner Ruby block.