Vim Cheatsheet

Table of contents

Return to last line

``

or

Ctrl-o

Multiple registers

You can use a-z and 0-9 for registers. Lowercase and uppercase are same buffer, but lowercase replaces entire content, where as uppercase will concatenate to the existing string.

type :reg to check register, or :reg p a c to check the p, a, and c register.

To yank to ‘p’ register: Go into visual mode, select the text you want to put into the register, then:

1. "p
2. y

Then when you want to paste it, in normal mode:

1. "p
2. p

Change case of words

Visually select the text you want to change using v and then use U to uppercase the highlighted text, or u to lowercase it.