Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selecting lines with different lengths in visual block mode

Tags:

vim

I want to select a code block that consist of lines of different lengths in visual block mode. However, since the cursor can only go as far as the end of each line, it's impossible to select the whole block of code shown below at once. Is there any tip for doing this?

difficult to select

like image 834
chenaren Avatar asked Dec 22 '13 13:12

chenaren


1 Answers

Use $ to tell the visual block to select until the end of the line.

like image 147
Shahbaz Avatar answered Sep 30 '22 06:09

Shahbaz