Vim Changing / Replacing Text

r{char}Replace the character under the cursor with {char}
REnter Insert mode, replacing characters rather than inserting
~Switch case of the character under the cursor and move the cursor to the rightIf a [count] is given, do that many characters.
g~{motion}Switch case of {motion} text
{Visual}~Switch case of highlighted text
{Visual}UUppercase highlighted text
SHIFT+I<comment-char>ESCComment vertical selectionSelect range in column where comment char should appear with CTRL+V.
xUncomment vertical selectionSelect range in column where comment char should be removed with CTRL+V.

Leave a Reply

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