Move vim colorscheme helpers to separate file
This commit is contained in:
parent
b12dbf3e49
commit
16f78c53cc
2 changed files with 29 additions and 37 deletions
37
gvimrc
37
gvimrc
|
@ -4,43 +4,6 @@ set guioptions-=e
|
||||||
|
|
||||||
set cursorline " Highlight cursor line
|
set cursorline " Highlight cursor line
|
||||||
|
|
||||||
let g:only_generic_hl=1
|
|
||||||
|
|
||||||
com! Dark silent! let g:colors_name_bak = g:colors_name
|
|
||||||
\ | let g:ayucolor="dark"
|
|
||||||
\ | let g:arcadia_Daybreak=0
|
|
||||||
\ | let g:arcadia_Midnight=1
|
|
||||||
\ | let g:alduin_Shout_Become_Ethereal=1
|
|
||||||
\ | set bg=dark
|
|
||||||
\ | silent! exec "colorscheme ".g:colors_name_bak
|
|
||||||
\ | silent! delc PaperColor
|
|
||||||
com! Light silent! let g:colors_name_bak = g:colors_name
|
|
||||||
\ | let g:ayucolor="light"
|
|
||||||
\ | let g:arcadia_Daybreak=1
|
|
||||||
\ | let g:arcadia_Midnight=0
|
|
||||||
\ | let g:alduin_Shout_Become_Ethereal=0
|
|
||||||
\ | set bg=light
|
|
||||||
\ | silent! exec "colorscheme ".g:colors_name_bak
|
|
||||||
\ | silent! delc PaperColor
|
|
||||||
|
|
||||||
com! Ayu colorscheme ayu
|
|
||||||
com! Arcadia colorscheme arcadia
|
|
||||||
com! Alduin colorscheme alduin
|
|
||||||
com! Moria colorscheme moria
|
|
||||||
com! Molokai colorscheme molokai
|
|
||||||
com! Iceberg colorscheme iceberg
|
|
||||||
com! Papercolor colorscheme PaperColor | delc PaperColor
|
|
||||||
com! Firewatch colorscheme two-firewatch
|
|
||||||
|
|
||||||
if !exists('g:colors_name')
|
|
||||||
if &diff
|
|
||||||
Moria
|
|
||||||
else
|
|
||||||
Dark
|
|
||||||
Ayu
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if has("unix")
|
if has("unix")
|
||||||
let g:font_temp="\\\\\\@<! \\zs\\d\\+"
|
let g:font_temp="\\\\\\@<! \\zs\\d\\+"
|
||||||
elseif has("win32")
|
elseif has("win32")
|
||||||
|
|
29
vim/plugin/colors.vim
Normal file
29
vim/plugin/colors.vim
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
" For my patched version of the papercolor theme
|
||||||
|
let g:only_generic_hl=1
|
||||||
|
|
||||||
|
com! Dark silent! let g:colors_name_bak = g:colors_name
|
||||||
|
\ | let g:ayucolor="dark"
|
||||||
|
\ | let g:arcadia_Daybreak=0
|
||||||
|
\ | let g:arcadia_Midnight=1
|
||||||
|
\ | let g:alduin_Shout_Become_Ethereal=1
|
||||||
|
\ | set bg=dark
|
||||||
|
\ | silent! exec "colorscheme ".g:colors_name_bak
|
||||||
|
\ | silent! delc PaperColor
|
||||||
|
com! Light silent! let g:colors_name_bak = g:colors_name
|
||||||
|
\ | let g:ayucolor="light"
|
||||||
|
\ | let g:arcadia_Daybreak=1
|
||||||
|
\ | let g:arcadia_Midnight=0
|
||||||
|
\ | let g:alduin_Shout_Become_Ethereal=0
|
||||||
|
\ | set bg=light
|
||||||
|
\ | silent! exec "colorscheme ".g:colors_name_bak
|
||||||
|
\ | silent! delc PaperColor
|
||||||
|
|
||||||
|
" Commands for some colorschemes I often use
|
||||||
|
com! Ayu colorscheme ayu
|
||||||
|
com! Arcadia colorscheme arcadia
|
||||||
|
com! Alduin colorscheme alduin
|
||||||
|
com! Moria colorscheme moria
|
||||||
|
com! Molokai colorscheme molokai
|
||||||
|
com! Iceberg colorscheme iceberg
|
||||||
|
com! Papercolor colorscheme PaperColor | delc PaperColor
|
||||||
|
com! Firewatch colorscheme two-firewatch
|
Loading…
Reference in a new issue