From normal mode I select what's before the cursor with:
v<Home>
Is adding to the selection what's under the cursor possible?
Thanks!!
gvimvivim
From normal mode I select what's before the cursor with:
v<Home>
Is adding to the selection what's under the cursor possible?
Thanks!!
Best Answer
edit
You want to change the direction of the selection, right? Just type
o
and extend your selection as you need.endedit
I'm not exactly sure about what you want so here are a bunch of selection combos.
Select from cursor to first column of the line:
Select from cursor to first printable character of the line:
Select from cursor to end of the line:
Select from cursor to end of the word:
Select from cursor to beginning of the word:
Select from cursor to the next opening parenthesis on the line (inclusive):
Select from cursor to the previous double quote on the line (exclusive):
Select from cursor to the next occurence of
foo
in the buffer (always exclusive):Select from cursor to previous occurence of
bar
in the buffer (always exclusive):Select the whole word under cursor:
Select everything between a pair of parenthesis:
Select the body of a function:
Select a whole sentence:
Select a whole paragraph:
For even more, see
:help motion.txt
.