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.
- First go to a the word that you want to copy using ‘w’. More instructin can be found @ Move The Cursor by One Word.
- Press ‘v’ to get into visual mode.
- Use ‘h, j, k, l’ to selected the word or a sentence.
- Press ‘y’ to yank or copy the content that is selected.