Text objects are commands that can be used to select a block of text
according to some criteria. They are a feature of the vim text editor
and so are primarily intended for use with vi operators or from visual
selection mode. However, they can also be used from vi-insert or emacs
mode. Key bindings listed below apply to the viopp
and visual
keymaps.
select-a-blank-word
(aW
)Select a word including adjacent blanks, where a word is defined as a series of non-blank characters. With a numeric argument, multiple words will be selected.
select-a-shell-word
(aa
)Select the current command argument applying the normal rules for quoting.
select-a-word
(aw
)Select a word including adjacent blanks, using the normal vi-style word definition. With a numeric argument, multiple words will be selected.
select-in-blank-word
(iW
)Select a word, where a word is defined as a series of non-blank characters. With a numeric argument, multiple words will be selected.
select-in-shell-word
(ia
)Select the current command argument applying the normal rules for quoting. If the argument begins and ends with matching quote characters, these are not included in the selection.
select-in-word
(iw
)Select a word, using the normal vi-style word definition. With a numeric argument, multiple words will be selected.