// troubleshooting guide · vim
Vim Mouse Select Not Working (Can't Copy With Mouse)
- Status
- Workaround available
- platforms:
- Linux, macOS, Windows terminals
- updated:
- November 23, 2026
- reports:
- 5
- Method
- how we research
RUNBOOK · vim/mouse-select-copy-not-working3 FIXES
// quick answer
Vim's defaults.vim turns on mouse support, so dragging enters Visual mode instead of selecting text in the terminal. Hold Shift while selecting, or add set mouse= to your vimrc.
Most likely fix: Hold Shift while selecting
How to fix it
// try these in order, the most common fix is first
FIX 1Hold Shift while selecting
- 01Hold Shift and drag to let the terminal select text
- 02Copy with the terminal's own shortcut (Ctrl+Shift+C on most Linux terminals, Cmd+C on macOS)
- 03In some terminals the bypass key is different (Option on macOS iTerm2 or Terminal); check its settings
Did this fix it?FIX 2Disable the mouse in Vim
- 01Add set mouse= to ~/.vimrc (more reliable than set mouse-=a, which removes only the a flag)
- 02If you rely on defaults.vim, put unlet! skip_defaults_vim and source $VIMRUNTIME/defaults.vim at the top, then set mouse= below
- 03Run :set mouse? to confirm it is empty
Did this fix it?FIX 3Copy from Visual mode instead
- 01Select with the mouse or v
- 02Press "+y to yank to the system clipboard (needs a +clipboard build; see the clipboard guide)
Did this fix it?
SANDBOX · vim RUNS IN YOUR BROWSER
Try it: write a commit message in Vim (and get back out)
A hands-on Vim-style sandbox, including the spots where users get stuck. See where problems like this one start. 1-2 minutes, nothing is saved.
Symptoms
Dragging with the mouse shows -- VISUAL -- and the terminal's copy or right-click paste does nothing; middle-click paste behaves oddly.
Why it happens
- C-01defaults.vim (loaded when you have no vimrc) sets the mouse option, so Vim captures mouse events
- C-02Some distros enable mouse=a in their system vimrc
- C-03Terminals differ in which modifier key bypasses application mouse mode
// this guide also covers
- vim mouse select not working
- vim can't copy with mouse
- vim visual mode mouse
- vim disable mouse
Still not working?
If Vim keeps failing, you're not alone. See every Vim problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to us