Questions tagged [visual-mode]

5 questions
35
votes
3 answers

Vim visual mode, stay selected

I love vim's visual mode. However when I select some text then do something to it the text is then unselected. For example lets say that I select a block of code and indent it the code is then unselected so if you pressed 4 > instead of 5 > then…
4
votes
1 answer

How to make vim highlight the last character of a visual selection?

I want to use _ as my terminal cursor (konsole/gnome-terminal). However because of this, using visual block selection in Vim becomes a problem, as Vim does not highlight the character under cursor as the rest of a selection. (while this character is…
dpc.pw
  • 143
2
votes
1 answer

Repeatedly paste/put down a vertical block in vim

In vim, when I have a vertical block selected (such as a single column of text), I would like to be able to repeatedly put (paste) whatever is in the current register. For example, if I had something like: username0 password0…
1
vote
2 answers

Vim: Copy selection

Having a chunk of text selected in Vim's visual mode, I'd like to copy that to the system's clipboard (be it the primary or X11's). Is there an easy solution for this? Obviously, a simple y doesn't do the trick.
Boldewyn
  • 4,468
0
votes
1 answer

gvim mapping keys to ex commands while in visual mode?

So in gvim, after I press + v it goes into visual mode. I normally have an ex command set for the letting 'm'. When I go into visual mode and then hit 'm' it says No range allowed How do I make it so that when I push 'm' in visual mode,…