Skip to content

Instantly share code, notes, and snippets.

@u0d7i
Last active September 28, 2026 20:30
Show Gist options
  • Select an option

  • Save u0d7i/01f78999feff1e2a8361 to your computer and use it in GitHub Desktop.

Select an option

Save u0d7i/01f78999feff1e2a8361 to your computer and use it in GitHub Desktop.
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
my ~/.vimrc for preserving global defaults and only changing one option:
source $VIMRUNTIME/defaults.vim
set mouse-=a
@MaoX17

MaoX17 commented Jan 7, 2026

Copy link
Copy Markdown

Thank you

@romancone

Copy link
Copy Markdown

Doesn't work in Ubuntu 26.04 anymore

You need to disable the defaults:

let g:skip_defaults_vim = 1
set mouse=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment