Skip to content

Commit

Permalink
Set up solarized light and also colour switching
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin committed Feb 11, 2017
1 parent ee1a4e0 commit 8f93dbb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 10 additions & 6 deletions vim/vimrc
Expand Up @@ -134,18 +134,22 @@ set wildignore+=*.o,*.obj,.git,node_modules,_site,*.class,*.zip,*.aux
set number
set relativenumber

" colorscheme spacegray
set background=light
colorscheme solarized
let vimTheme=$VIM_THEME

if vimTheme == 'solarized'
set background=light
colorscheme solarized
else
colorscheme spacegray
highlight CursorLine ctermbg=235
highlight ColorColumn ctermbg=235
endif

set colorcolumn=80
set cursorline
hi cursorline cterm=none term=none
autocmd WinEnter * setlocal cursorline
autocmd WinLeave * setlocal nocursorline
" highlight CursorLine ctermbg=235
" highlight ColorColumn ctermbg=235

" clear highlights by hitting ESC
" or by hitting enter in normal mode
nnoremap <esc> :noh<return><esc>
Expand Down
3 changes: 3 additions & 0 deletions zsh/zshrc
Expand Up @@ -2,6 +2,9 @@
autoload -U compinit
compinit

VIM_THEME="solarized"
export VIM_THEME

bindkey '^I' complete-word # complete on tab, leave expansion to _expand

TZ="Europe/London"
Expand Down

0 comments on commit 8f93dbb

Please sign in to comment.