diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 32063f6..4438723 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -30,7 +30,7 @@ set ttimeoutlen=100 set incsearch " Use to clear the highlighting of :set hlsearch. if maparg('', 'n') ==# '' - nnoremap :nohlsearch + nnoremap :nohlsearchhas('diff')?'diffupdate':'' endif set laststatus=2 @@ -81,7 +81,7 @@ endif set sessionoptions-=options " Allow color schemes to do bright colors without forcing bold. -if &t_Co == 8 && $TERM !~# '^linux' +if &t_Co == 8 && $TERM !~# '^linux\|^Eterm' set t_Co=16 endif