When we use the p
command in Visual mode, Vim replace the selection with the contents of the specified register.
de
to cut the word "chips", copying it into the unnamed register. Then we visually select the word fish, which we want to replace.p
put the word "chips" into the document, and the word "fish" is copied into the unnamed register. Then we snap back to the gap and paste the word "fish" from the unnamed register back into the document.
Note: m{char}
command sets a mark, and the `{char} command jumps to the mark.