From cc5ef571b5ddd4f7bad3962c3c1f9c17d673f9d3 Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 14 May 2016 15:45:12 +0300 Subject: [PATCH] enable mouse in vim unless it is a remote server connection from a remote server --- vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 61d1e19..ca042e2 100644 --- a/vimrc +++ b/vimrc @@ -62,7 +62,6 @@ nnoremap L $ " still have to deal with old vim versions :< if v:version >= 700 set helplang=en - set modeline set number set list @@ -87,6 +86,7 @@ if v:version >= 700 Plug 'mhinz/vim-signify' "version control system gutter info Plug 'directionalWindowResizer' "resize windows with simple hotkeys Plug 'junegunn/vim-easy-align' "aligning + Plug 'nvie/vim-togglemouse' "hotkey to toggle mouse " colorschemes Plug 'vdrandom/forked-solarized.vim' @@ -137,8 +137,10 @@ if v:version >= 700 set guicursor+=a:blinkon0 "and none of them should blink map map! - else + elseif empty($TMUX) && $TERM =~ "^screen" set mouse= + else + set mouse=a endif let g:solarized_bold=0