aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-18 01:06:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-18 01:06:02 +1200
commitbf9e93bb8c1686b1fd8c09a334389a427f6a0678 (patch)
treee117354b4c9e65cd7487db2dd6dc56269d05b417
parent2909be6946c170361f9a9b23ad1101a53f504ecf (diff)
downloadvim-sahara-bf9e93bb8c1686b1fd8c09a334389a427f6a0678.tar.gz
Move load guard to top of file
-rw-r--r--colors/sahara.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/colors/sahara.vim b/colors/sahara.vim
index 7c12739..5b12b57 100644
--- a/colors/sahara.vim
+++ b/colors/sahara.vim
@@ -7,6 +7,12 @@
" <https://sanctum.geek.nz/>
"
+" Do nothing if we can't get our colors
+if !has('gui_running') && &t_Co < 256
+ echoerr 'Colorscheme requires GUI or 256 color term'
+ finish
+endif
+
" Terminal setup
set background=dark
if v:version > 580
@@ -16,12 +22,6 @@ if v:version > 580
endif
endif
-" Do nothing if we can't get our colors
-if !has('gui_running') && &t_Co < 256
- echoerr 'Colorscheme requires GUI or 256 color term'
- finish
-endif
-
" Set colorscheme name
let colors_name = 'sahara'