I know not everyone likes using vim but I thought those who do could share a good reason to get into it. For me its the repetition of the last change with the push of the dot key. Replace the current word with another and move the cursor to the next word you wish to replace. It makes the editor so versatile and feels very satisfying.

  • @trachemys
    link
    English
    31 year ago

    The yank buffer is useful, but sometimes I’ll do an action that replaces the yank buffer, when I wanted to save that text. So put:

    map K “_
    

    in your .vimrc. Now you can use shift-k before a command to make it not update the yank buffer. For example: go to a word and type yw to copy the word. Go to another word and type KdwP to delete the word and paste your saved word. Alternately, you can also type Kcw then type something and ctrl-R followed by “ to paste.