From 19c1a253c2383633fa50a995e65ce84b368c2f4e Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 15 Feb 2016 14:58:58 +0100 Subject: Set colorscheme after background is set to dark --- vim/.vim/vimrc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'vim') diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index 1dc1e2e..3c83b4d 100644 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -13,18 +13,6 @@ let mapleader=" " syntax on filetype plugin indent on -" Set colorscheme when the terminal has 256 color support -try - if (&t_Co == 256) && match($TERM, "256color") >= 0 - autocmd ColorScheme janah highlight Normal ctermbg=235 - colorscheme janah - else - throw "nocolor" - endif -catch - colorscheme desert -endtry - " Some vim settings set number set relativenumber @@ -37,6 +25,18 @@ set scrolloff=1 set backspace=indent,eol,start set cursorline +" Set colorscheme when the terminal has 256 color support +try + if (&t_Co == 256) && match($TERM, "256color") >= 0 + autocmd ColorScheme janah highlight Normal ctermbg=235 + colorscheme janah + else + throw "nocolor" + endif +catch + colorscheme desert +endtry + " Search-related things set hlsearch "highlight search result set incsearch " incremental search -- cgit v1.2.3