Vim registers and "." procedure
‘*’ procedure
In normal mode when cursor on a word press:
- ‘*’ to find all words in the buffer
- ‘ciw’ to replace the word
- ESC to enter normal mode
- ’n’ to find next occurance of the word
- ‘.’ to repeat that operation
Pasting from registers
In normal mode:
- ‘:reg’ to list register contents
- ‘“3p’ to paste in normal mode contents of 3rd register
Yanking to registers
To yank to a specific register:
- visually highlight word/line/lines
- ‘“3y’ to yank it to the 3rd register