1
0
Fork 0

enable mouse in vim unless it is a remote server connection from a remote server

This commit is contained in:
Von Random 2016-05-14 15:45:12 +03:00
parent cf3311e4ee
commit cc5ef571b5

6
vimrc
View file

@ -62,7 +62,6 @@ nnoremap L $
" still have to deal with old vim versions :< " still have to deal with old vim versions :<
if v:version >= 700 if v:version >= 700
set helplang=en set helplang=en
set modeline
set number set number
set list set list
@ -87,6 +86,7 @@ if v:version >= 700
Plug 'mhinz/vim-signify' "version control system gutter info Plug 'mhinz/vim-signify' "version control system gutter info
Plug 'directionalWindowResizer' "resize windows with simple hotkeys Plug 'directionalWindowResizer' "resize windows with simple hotkeys
Plug 'junegunn/vim-easy-align' "aligning Plug 'junegunn/vim-easy-align' "aligning
Plug 'nvie/vim-togglemouse' "hotkey to toggle mouse
" colorschemes " colorschemes
Plug 'vdrandom/forked-solarized.vim' Plug 'vdrandom/forked-solarized.vim'
@ -137,8 +137,10 @@ if v:version >= 700
set guicursor+=a:blinkon0 "and none of them should blink set guicursor+=a:blinkon0 "and none of them should blink
map <S-Insert> <MiddleMouse> map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse> map! <S-Insert> <MiddleMouse>
else elseif empty($TMUX) && $TERM =~ "^screen"
set mouse= set mouse=
else
set mouse=a
endif endif
let g:solarized_bold=0 let g:solarized_bold=0