From: Oleg Broytman Date: Mon, 6 May 2019 14:51:25 +0000 (+0300) Subject: .vimrc: Set mouse only if mouse support is available X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f2641bfb9be0514a54abd0872304182fa307160f;p=dotfiles.git .vimrc: Set mouse only if mouse support is available --- 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