VIM: Use Visual Block

07/30/20191 Min Read — In DevTools, Vim

Yesterday I wanted to insert a character at the start of each line.

Vim doesn't have multiple cursors like some popular text editors (VS Code, Sublime Text).

But sometimes you don't need more than one cursor.

For example, you can use Visual Block to select some text.

Select text with visual mode by pressing ctrl+v.

Now, you can either insert text with capital I or you can type c to change text.

That's neat.

Further Reading