Ubuntu 26.04 LTS vim goes into visual mode when trying to paste into SSH VIM session

by James McDonald | Jun 13, 2026 | IT Tips | 0 comments

VIM disable mouse

I want to be able to paste text into VIM inside an SSH session, but on Ubuntu 26.04 LTS it goes into visual mode and I can't complete the paste.

So to disable this behavior (and completely disable mouse in vim) do:

# create ~/.vimrc and add the following to it.
set mouse-=a

VIM quick save and exit

# and another thing I've been doing in vim for years to exit
:wq!

# I could have just been doing
:x

# let's have a moment of silence to mourn the wasted key strokes

0 Comments

Submit a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.