Column Edit Mode in VIM

Typing in column mode in editors is sometimes actually useful. How many times have you wanted to replace columns of text with something? You can do this utility with common programming editors like IntelliJ IDEA, TextMate or Sublime. VIM also has a column edit mode, that is a little tricky to use.

To use it, try to do the following steps:

  1. Press Ctrl + V to go into column mode so as to select in the visual block.
  2. Select the columns and rows where you want to enter/replace/delete your text
  3. Shift + i to go into insert mode in column mode
  4. Type in the text you want to enter. Don’t be discouraged by the fact that only the first row is changed
  5. Esc and ESC key again to apply your change (or alternatively Ctrl+c)
Demonstration of editing text in column mode with Vim
Demonstration of editing text in column mode with Vim

One thought on “Column Edit Mode in VIM

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.