colorscheme-statusline.vim 1.3 KB

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