Skip to content

VIM - Editor

Disable mouse interaction with vim

The default behavior will automatically launch the help menus any time you click in/on/around the terminal window.

This behavior can be modified by adding .vimrc in the root of your home directory with the following contents:

" Disable double-click in Normal mode
nnoremap <2-LeftMouse> <Nop>

" Disable double-click in Insert mode
inoremap <2-LeftMouse> <Nop>

" Disable double-click in Visual mode
vnoremap <2-LeftMouse> <Nop>