O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Where do the registers come in?

Whenever you copy and paste text, it's saved in a register. Vim allows you to operate with many registers, which are identified by letters, numbers, and special symbols.

Registers can be accessed by hitting ", followed by the register identifier, followed for the operation on said register.

Registers a - z are used for holding manually assigned data. For example, to yank a word into the a register, you can run "ayw and paste it using "ap.

Registers are also used to record macros, which you will learn about in Chapter 6, Refactoring Code with Regular Expressions and Macros.

All of the operations you've performed so far have used the unnamed register. If you ever need to access the unnamed register explicitly, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required