Showing posts with label change. Show all posts
Showing posts with label change. Show all posts

Wednesday, April 2, 2008

Visual Block Change

In Vim, you can replace a selected portion of text across multiple lines with a new piece of text using a Visual-block change. As an example, highlight a portion of text across multiple lines using ctrl-v (blockwise visual mode), now press the "c" key to delete the selected text and enter insert mode. Type in some new text and press the Esc key. The text should be inserted for each row of the selection.