Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Fix Vim Pasting Issue


Similar Posts


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

It appears one does not need to do this if one installs neovim instead of vim in Debian 12.

Last updated: 23rd April 2024
First published: 11th October 2018