From e103a14094e63fecf3f6ba04b707d3be5116b5d5 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 24 Jun 2015 10:25:31 -0400 Subject: [PATCH] Set ttymouse if vim is not neovim (for neovim compatibility) --- vim/config/settings.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index a8b7234..5e25cf8 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -28,7 +28,9 @@ if has('unnamedplus')|set clipboard+=unnamedplus|endif "fancy mouse reporting with xterm2 fallback - if has("mouse_sgr")|set ttymouse=sgr|else|set ttymouse=xterm2|endif + if !has('nvim') + if has("mouse_sgr")|set ttymouse=sgr|else|set ttymouse=xterm2|endif + endif set mouse=a "enables mouse functionality with extended capabilities "8 colours in $TERM=linux, 256 elsewhere