colorscheme-statusline.vim 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. " Colour Scheme & Status Line
  2. "
  3. " Available colour schemes:
  4. " - flattened_dark
  5. " - neonwave
  6. " Fix wrong background colour in tmux.
  7. " http://sunaku.github.io/vim-256color-bce.html
  8. set t_ut=
  9. " Status line defaults.
  10. let g:airline_powerline_fonts = 1
  11. let g:airline_theme = 'powerlineish'
  12. set laststatus=2 " always show the status line.
  13. set noshowmode " hide modes e.g. --INSERT-- with themed status lines.
  14. " Colour scheme defaults.
  15. set background=dark
  16. colorscheme flattened_dark
  17. " fix sign column colour in flattened_dark (for vim-signature, syntastic).
  18. highlight SignColumn ctermbg=235
  19. function! NormalPower()
  20. set background=dark
  21. colorscheme flattened_dark
  22. AirlineTheme powerlineish
  23. highlight SignColumn ctermbg=235
  24. call MuteSpellCheckHighlights()
  25. echo "System at normal power..."
  26. endfunction
  27. function! UltraPower()
  28. set background=dark
  29. colorscheme neonwave
  30. AirlineTheme surarken
  31. call MuteSpellCheckHighlights()
  32. echo "Ultra Power Level Activated!"
  33. endfunction
  34. function! MuteSpellCheckHighlights()
  35. hi clear SpellBad
  36. hi SpellBad cterm=underline
  37. " Highlights must be cleared first, or linking will fail.
  38. hi clear SpellCap
  39. hi link SpellCap SpellBad
  40. hi clear SpellLocal
  41. hi link SpellLocal SpellBad
  42. hi clear SpellRare
  43. hi link SpellRare SpellBad
  44. endfunction
  45. call MuteSpellCheckHighlights()