Skip to content

Instantly share code, notes, and snippets.

@u0d7i
Last active November 11, 2025 18:23
Show Gist options
  • Save u0d7i/01f78999feff1e2a8361 to your computer and use it in GitHub Desktop.
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
@JWPapi
Copy link

JWPapi commented Nov 11, 2025

If only this worked for IdeaVim. What a pain.
@ixtk

it works like this:

set selectmode=mouse,ideaSelection,

See more info here : https://github.com/JetBrains/ideavim/blob/master/doc/set-commands.md

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