How Do You Paste Text from a Windows Environment into a PuTTY Terminal?

Problem scenario
You want to paste text into a PuTTY terminal. But it is not working. What should you do?

Once in the vi session, use this command (in command mode): :set mouse=

Now when you enter insert mode (by press "i"), you will be able to paste text that you copied from another source.

If you want to permanently set it (so every vi session automatically will accept pasted text once you enter insert mode), do this from a command prompt:
sudo vi ~/.vimrc # then type in this text :set mouse= with no quotes and save the file.

Leave a comment

Your email address will not be published. Required fields are marked *