colorscheme-statusline.vim 1.3 KB

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