Reference

Copying a Word

To copy a word in a line you must go into visual mode in vim. You press ‘v’ to go into visual mode.

  1. First go to a the word that you want to copy using ‘w’. More instructin can be found @ Move The Cursor by One Word.
  2. Press ‘v’ to get into visual mode.
  3. Use ‘h, j, k, l’ to selected the word or a sentence.
  4. Press ‘y’ to yank or copy the content that is selected.