From f2641bfb9be0514a54abd0872304182fa307160f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 6 May 2019 17:51:25 +0300 Subject: [PATCH] .vimrc: Set mouse only if mouse support is available --- .vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 1818125..bcc859b 100644 --- a/.vimrc +++ b/.vimrc @@ -87,7 +87,9 @@ set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%)\ -\ [%{$USER}@%{h " 9 using the mouse -set mouse=ar " Use mouse in all modes, plus hit-return +if has('mouse') + set mouse=ar " Use mouse in all modes, plus hit-return +endif " 12 messages and info -- 2.39.5