Whilst writing my last post regarding column mode in Putty, I got thinking about which other apps might use this convention (alt key and mouse) for column mode. The first (and in fairness only) app I tried was Vim (the GVIM flavour).
I love Vim. Rarely does a week go by that I don’t learn some new trick with Vim. However by far my biggest gripe regarding Vim compared to my previous editor of choice (UltraEdit) is it’s column mode.
Generally speaking – unlike much of Vim (arguably) – column mode isn’t very intuitive to use. It’s a big enough pain that I simply don’t use it (I’ve tried to get in the habit on several occasions now). However, with the help of the alt key (as seen in the Putty post [LINK]), it’s slightly easier (at least as far as I’m concerned).
Unlike with Putty where I’m using it to select and copy text, with GVIM I’m using it to insert text.
How to use Column Mode in GVIM using the Alt Key
Note that this example is for GVIM only. Not the terminal version of Vim.
- Place the cursor:
- On the first line that you wish to insert text to
- In the column that you wish to insert your text
- Now hold down the alt key and place the cursor:
- On the last line that you wish to insert text to
- In the column that you wish to insert your text.
- This should ‘draw’ a line from your top point to the bottom (see below)
- Start typing the text you wish to insert. Initially this will appear only on the first line (I find this to be misleading, and it’s one of the reasons I dislike Vim’s column mode)
- Now press escape. You should now see the remaining columns update:


