Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert visual selection to visual line selection in vim

Tags:

vim

I have a visual selection in vim spanning several lines and i want to "convert" that into a visual line selection. Preferably in a succint way if possible. Without just selecting the same lines again ofcourse, that doesn't seem like the vim way to do it.

I feel I could probably figure it out but I'm betting someone here knows a neat way to do it.

like image 454
Andreas Fliesberg Avatar asked Jun 09 '26 12:06

Andreas Fliesberg


1 Answers

To switch from visual selection to visual line selection just press V (uppercase).

To switch back from visual line selection to visual selection, you can press v (lowercase) again.

like image 60
jcollado Avatar answered Jun 11 '26 12:06

jcollado