Visual Mode
- If the text you wish to select is irregular, you can use Vim's visual mode:
- Press
v
when in normal mode. - Move around using the standard Vi commands (but the arrow keys require holding shift when ":source mswin.vim").
- Once you have the text selected, press the operator you want to perform it on.
- Press
Example
vj$hhhy
will copy all the text from the cursor to the next line excluding its last three characters.
- For more information consult :help Visual