Skip to content

Commit

Permalink
Set the mouse option.
Browse files Browse the repository at this point in the history
  • Loading branch information
adah1972 committed Jul 22, 2020
1 parent cca85fd commit 81810d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ set undodir=~/.vim/undodir
if !isdirectory(&undodir)
call mkdir(&undodir, 'p', 0700)
endif

if has('mouse')
if has('gui_running') || (&term =~ 'xterm' && !has('mac'))
set mouse=a
else
set mouse=nvi
endif
endif

0 comments on commit 81810d7

Please sign in to comment.