|
ds
|
delete surrounding
|
|
ds"
|
delete surrounding "
|
|
ds)
|
delete surrounding ()
|
|
dst
|
delete surrounding (html)tag
|
|
S"
|
surround selected text with "
|
|
S<p>
|
surround selected text with <p> ... </p>
|
The |ds| and |cs| commands both take a target as their first argument. The
possible targets are based closely on the |text-objects| provided by Vim.
All targets are currently just one character.
(, ), {, }, [, ], <, and >
The targets b, B, r, and a are aliases for ), }, ], and >
', ", `,
A t is a pair of HTML or XML tags.
The letters w, W, and s correspond to a |word|, a |WORD|, and a |sentence|. A p represents a |paragraph|
|
cs"'
|
change surrounding " to '
|
|
cs"<q>
|
change surrounding " to <q>some text</q>
|
|
cst<p>
|
change surrounding tag with <p>
|
|
cs)]
|
change surrounding () to []
|
|
cs)[
|
change surrounding () to [] with spaces
|
|
ysiw)
|
add surrounding () to inner word
|
|
yss]
|
add surrounding [] to whole line, without leading whitespace
|
|
ysWfprint<cr>
|
wraps old text into a function print
|
|
ysWFprint<cr>
|
wraps a WORD into a function print with spaces
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.