From 97592b88f3f92094e472b5e1a9a880890ad1de57 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Thu, 27 Aug 2009 10:38:45 +0100 Subject: [PATCH] Use :silent instead of :try..:catch..:endtry. Some early Vim 6 builds don't have :try..:endtry and since we weren't doing anything useful with the :catch it's easier to use :silent. --- .vimrc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.vimrc b/.vimrc index 812f103..e0a31a9 100644 --- a/.vimrc +++ b/.vimrc @@ -605,20 +605,14 @@ syn enable " Set colours. if has("gui_running") - try - if has("win32") - se guifont=DejaVu_Sans_Mono:h10:cANSI - else - se guifont=DejaVu\ Sans\ Mono\ 10 - endif - catch - endtry + if has("win32") + silent se guifont=DejaVu_Sans_Mono:h10:cANSI + else + silent se guifont=DejaVu\ Sans\ Mono\ 10 + endif endif if has("gui_running") || &t_Co > 16 - try - colo iain - catch - endtry + silent colo iain endif " Ignore whitespace when diffing. -- 2.20.1