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

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

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch