ad1

Friday, December 11, 2015

Register in Vim

Numbered Register 0 - 9
Vim fills numbered registers with text from yank and delete commands.

  • reg 0 contains the text from the most recent yank command;
  • reg 1 contains the text deleted by the most recent delete or change command;
  • With each successive deletion or change, Vim shifts the previous contents of reg 1 into reg 2, 2 into 3, and so forth, losing the previous contents of reg 9.


Named registers "a to "z or "A to "Z
Vim fills named registers only when you say so.

  • lowercase: replace their previous contents;
  • uppercase:  append to their previous contents.


No comments:

Post a Comment