vim: How do I replace a character under my cursor with previously yanked text (more than once)?

What about s<C-r>0, this can be repeated with .

  • s deletes the character under the curser and puts you into insert mode.
  • <C-r>0 inserts register 0, which holds the yanked text.

You can also use s and type foo manually, which is also repeatable with .

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)