Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Fix Vim Pasting Issue

VIM

Similar Posts

Steps

Pasting into VIM on Debian 9 and Ubuntu 18.04 messes up with automatic indentation cutting in and they now expect you to hold down shift when right clicking to paste, otherwise you will go into :visual. To change this back run the commands below:.

echo "set mouse=" > ~/.vimrc
sudo echo "set mouse=" | sudo tee -a /root/.vimrc