Vim Tip of the Week: Visual Select Block Mode

Visual selection mode in Vim is nice and fun but sometimes you want to delete column oriented text without resorting to sed or the like… Create some column oriented text using ls or dir depending on your platform. ls > somefile Then open that file up with vim.

On Unix

Type <C-V> and select your block of text.

On Windows with Gvim

Enter Visual Mode “v” then hit <C-q> The default vimrc for Windows remaps C-V to paste I believe. . .

3 Responses to “Vim Tip of the Week: Visual Select Block Mode”

  1. Thank you! Someone showed me this handy trick on Vim once, and I couldn’t remember how to do it. I have been unable to find this trick online anywhere until now and I appreciate the tip!


  2. If i have the block of text in a column, how do i select it?

    -> i tried doing this in gvim but it is just moving the lines by a couple of tabs.

    Are there any control characters that i need to press along with

  3. Thanks so much!

    I have been struggling for gvim/vim on Windows since I left university where Linux OS’ dominated.

Leave a Reply