Monday, January 14, 2008

Block Select in Vim

Go to the visual mode using "ctrl + v" instead of "v", then use the motion arrow keys *hjkl* to select the block you want.

Perform any copy/delete/edit function you would normally perform using vim ( y , d etc)!

5 comments:

Anonymous said...

This dont work in Vim 7.1 for windows
ctrl+v its Just Paste

sandeep said...

This dont work in Vim 7.1 for windows, ctrl+v its Just Paste

windows has different key bindings.. just right click your mouse and you will find an option that says block select mode (in gvim)

Anonymous said...

Ctrl-q should work for windows

Ronak Patel said...

Ctrl+q works for windows. Thanks.

Anonymous said...

In windows, hold Alt, then use mouse to select block