|
@@ -1,33 +1,38 @@
|
|
|
" Colour Scheme & Status Line
|
|
" Colour Scheme & Status Line
|
|
|
"
|
|
"
|
|
|
" Available colour schemes:
|
|
" Available colour schemes:
|
|
|
-" - flattened_dark
|
|
|
|
|
|
|
+" - flattened (solarized clone)
|
|
|
" - neonwave
|
|
" - neonwave
|
|
|
|
|
|
|
|
-" Fix wrong background colour in tmux.
|
|
|
|
|
|
|
+" Fix wrong background colour in tmux, when using 256 colours, and when vim
|
|
|
|
|
+" changes the background colour.
|
|
|
" http://sunaku.github.io/vim-256color-bce.html
|
|
" http://sunaku.github.io/vim-256color-bce.html
|
|
|
set t_ut=
|
|
set t_ut=
|
|
|
|
|
|
|
|
|
|
+" Uncomment this to use proper solarized colours, after the terminal emulator
|
|
|
|
|
+" palette is properly set up.
|
|
|
|
|
+"set t_Co=16
|
|
|
|
|
+
|
|
|
" Status line defaults.
|
|
" Status line defaults.
|
|
|
let g:airline_powerline_fonts = 1
|
|
let g:airline_powerline_fonts = 1
|
|
|
set laststatus=2 " always show the status line.
|
|
set laststatus=2 " always show the status line.
|
|
|
set noshowmode " hide modes e.g. --INSERT-- with themed status lines.
|
|
set noshowmode " hide modes e.g. --INSERT-- with themed status lines.
|
|
|
set showcmd " display partial commands on the last line
|
|
set showcmd " display partial commands on the last line
|
|
|
|
|
|
|
|
-function! NormalPower()
|
|
|
|
|
- set background=dark
|
|
|
|
|
|
|
+function! Dark()
|
|
|
colorscheme flattened_dark
|
|
colorscheme flattened_dark
|
|
|
call SetTheme('powerlineish')
|
|
call SetTheme('powerlineish')
|
|
|
- call MuteSpellCheckHighlights()
|
|
|
|
|
- " fix sign column colour in flattened_dark (for vim-signature, syntastic).
|
|
|
|
|
highlight SignColumn ctermbg=235
|
|
highlight SignColumn ctermbg=235
|
|
|
endfunction
|
|
endfunction
|
|
|
|
|
|
|
|
-function! UltraPower()
|
|
|
|
|
- set background=dark
|
|
|
|
|
|
|
+function! Light()
|
|
|
|
|
+ colorscheme flattened_light
|
|
|
|
|
+ call SetTheme('powerlineish')
|
|
|
|
|
+endfunction
|
|
|
|
|
+
|
|
|
|
|
+function! Neon()
|
|
|
colorscheme neonwave
|
|
colorscheme neonwave
|
|
|
call SetTheme('surarken')
|
|
call SetTheme('surarken')
|
|
|
- call MuteSpellCheckHighlights()
|
|
|
|
|
endfunction
|
|
endfunction
|
|
|
|
|
|
|
|
function! SetTheme(name)
|
|
function! SetTheme(name)
|
|
@@ -40,15 +45,11 @@ function! SetTheme(name)
|
|
|
endfunction
|
|
endfunction
|
|
|
|
|
|
|
|
function! MuteSpellCheckHighlights()
|
|
function! MuteSpellCheckHighlights()
|
|
|
- hi clear SpellBad
|
|
|
|
|
- hi SpellBad cterm=underline
|
|
|
|
|
|
|
+ hi clear SpellBad | hi SpellBad cterm=underline
|
|
|
" Highlights must be cleared first, or linking will fail.
|
|
" Highlights must be cleared first, or linking will fail.
|
|
|
- hi clear SpellCap
|
|
|
|
|
- hi link SpellCap SpellBad
|
|
|
|
|
- hi clear SpellLocal
|
|
|
|
|
- hi link SpellLocal SpellBad
|
|
|
|
|
- hi clear SpellRare
|
|
|
|
|
- hi link SpellRare SpellBad
|
|
|
|
|
|
|
+ hi clear SpellCap | hi link SpellCap SpellBad
|
|
|
|
|
+ hi clear SpellLocal | hi link SpellLocal SpellBad
|
|
|
|
|
+ hi clear SpellRare | hi link SpellRare SpellBad
|
|
|
endfunction
|
|
endfunction
|
|
|
|
|
|
|
|
-call NormalPower()
|
|
|
|
|
|
|
+call Dark()
|