From: Iain Patterson Date: Thu, 27 Aug 2009 09:38:45 +0000 (+0100) Subject: Use :silent instead of :try..:catch..:endtry. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=97592b88f3f92094e472b5e1a9a880890ad1de57;p=profile.git 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. --- 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.