theme.vim 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. " Switch to whatever colorscheme you like
  2. " onedark.vim override: Don't set a background color when running in a terminal;
  3. " just use the terminal's background color
  4. " `gui` is the hex color code used in GUI mode/nvim true-color mode
  5. " `cterm` is the color code used in 256-color mode
  6. " `cterm16` is the color code used in 16-color mode
  7. if (has("autocmd") && !has("gui_running"))
  8. augroup colorset
  9. autocmd!
  10. let s:white = { "gui": "#ABB2BF", "cterm": "145", "cterm16" : "7" }
  11. autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) " `bg` will not be styled since there is no `bg` setting
  12. augroup END
  13. endif
  14. hi Comment cterm=italic
  15. let g:onedark_hide_endofbuffer=1
  16. let g:onedark_terminal_italics=1
  17. let g:onedark_termcolors=256
  18. syntax on
  19. colorscheme onedark
  20. " checks if your terminal has 24-bit color support
  21. if (has("termguicolors"))
  22. set termguicolors
  23. hi LineNr ctermbg=NONE guibg=NONE
  24. endif
  25. " Syntax highlighting
  26. let g:python_highlight_all=1
  27. " Change this when you know where i3 will be
  28. aug i3config_ft_detection
  29. au!
  30. au BufNewFile,BufRead ~/.config/i3/config set filetype=i3config
  31. aug end
  32. " TODO checkout vim-jsx