Wrap colourscheme in a try ... catch block.
authorIain Patterson <me@iain.cx>
Tue, 12 Aug 2008 21:08:24 +0000 (21:08 +0000)
committerIain Patterson <me@iain.cx>
Tue, 12 Aug 2008 21:08:24 +0000 (21:08 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@133 6be0d1a5-5cfe-0310-89b6-964be062b18b

.vimrc

diff --git a/.vimrc b/.vimrc
index 91fd6c1..bfb7e9a 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -278,7 +278,10 @@ if has("gui_running")
   se guifont=DejaVu\ Sans\ Mono\ 10
   colo darkblue
 elseif &t_Co > 16
-  colo iain
+  try
+    colo iain
+  catch
+  endtry
 endif
 if has("win32")
   se guifont=DejaVu_Sans_Mono:h10:cANSI