How to select text vertically in vi/vim editor

To select the text vertically first press escape if you are in insert mode.
Then type:

^v (Control v)

Then you can use arrow keys to select the text you want.

After selecting the text use

Delete to delete the text.
y to copy the text
p to paste the text


2 Responses to “How to select text vertically in vi/vim editor”

Leave a Reply