1 The $ command
In the block visual mode ,the $ command causees the selection to be extended to the end of all the lines in the selection
2 Selecting Objects
The 'aw' command ,for example,highlights the next word,
If you want to just select the word ,and nothing bu the word ,use the 'iw' command
You can use the following commands to select text:
countaw Select a word and the space after it.
countiw Select a word only (inner word).
countaW Select a WORD and the space after it.
countiW Select inner WORD (the word only)
countas Select a sentence (and spaces after it.)
countis Select the sentence only.
countap Select a paragraph and the following space.
countip Select a paragraph only.
counta( From within text enclosed in (), select the text up to and including
the ().
counti( Like ab, except the () characters are not selected.
for (i = 0; i < 100; ++1)
for (i = 0; i < 100; ++1)
a(
i(
Figure 22.5
a(
and i( commands.
counta< Select matching <> pair, include the <>.
counti< Select matching <> pair, excluding the <>.
counta[ Select matching [] pair, including the [].
counti[ Select matching [] pair, excluding the [].
counta{ Select matching {} pair, including the {}.
counti{ Select matching {} pair, excluding the {}.
3 The 'o' command moves the cursor to the other end of a selection
4 The '~' command inverts the case of the seletion,Th 'U' command makes the text uppercase and the 'u' command turns the text into lowercase
5 The 'J' command joins all the highligthed lines into one long lines
6 The 'gq' command formats the text
7 The 'g?' command encodes or decodes the highlightd text using the rot13 encoding.
8 The Colon (:) command start a command-mode with a range already specified,If you want to write a block to a file,for example,
select the text using the visual mode ,and then execute the following commands:
:write block.txt
9 The '!' command pipes a region of text through an external program.For example ,the !sort pipes the selection
through the UNIX sort program