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

Editorial Team
Editorial Team

We are a group of young techies trying to provide the best study material for all Electronic and Computer science students. We are publishing Microcontroller projects, Basic Electronics, Digital Electronics, Computer projects and also c/c++, java programs.

2 thoughts on “How to select text vertically in vi/vim editor

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.