vim: Disable middle button click

This helps prevent accidentally pasting things.
This commit is contained in:
Donovan Glover 2022-11-02 21:02:28 -04:00
parent 0406de2ad6
commit e32645caf8
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -107,6 +107,16 @@ set smarttab " Always indent based on column number to align t
set mouse=a " Enable mouse support in (a)ll modes set mouse=a " Enable mouse support in (a)ll modes
set number " Show numbers by default set number " Show numbers by default
" Disable middle button click
map <MiddleMouse> <Nop>
imap <MiddleMouse> <Nop>
map <2-MiddleMouse> <Nop>
imap <2-MiddleMouse> <Nop>
map <3-MiddleMouse> <Nop>
imap <3-MiddleMouse> <Nop>
map <4-MiddleMouse> <Nop>
imap <4-MiddleMouse> <Nop>
" ========================== " ==========================
" ========= colors ========= " ========= colors =========
" ========================== " ==========================