colorscheme-statusline.vim 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. set laststatus=2 " always show the status line.
  12. set noshowmode " hide modes e.g. --INSERT-- with themed status lines.
  13. set showcmd " display partial commands on the last line
  14. function! NormalPower()
  15. set background=dark
  16. colorscheme flattened_dark
  17. call SetTheme('powerlineish')
  18. call MuteSpellCheckHighlights()
  19. " fix sign column colour in flattened_dark (for vim-signature, syntastic).
  20. highlight SignColumn ctermbg=235
  21. endfunction
  22. function! UltraPower()
  23. set background=dark
  24. colorscheme neonwave
  25. call SetTheme('surarken')
  26. call MuteSpellCheckHighlights()
  27. endfunction
  28. function! SetTheme(name)
  29. " Airline functions are not available at vim start.
  30. if exists(':AirlineTheme')
  31. execute 'AirlineTheme' a:name
  32. else
  33. let g:airline_theme = a:name
  34. endif
  35. endfunction
  36. function! MuteSpellCheckHighlights()
  37. hi clear SpellBad
  38. hi SpellBad cterm=underline
  39. " Highlights must be cleared first, or linking will fail.
  40. hi clear SpellCap
  41. hi link SpellCap SpellBad
  42. hi clear SpellLocal
  43. hi link SpellLocal SpellBad
  44. hi clear SpellRare
  45. hi link SpellRare SpellBad
  46. endfunction
  47. call NormalPower()