Tighten up theming
This commit is contained in:
parent
8853ae6b70
commit
2c35886ed9
2 changed files with 8 additions and 2 deletions
4
aliases
4
aliases
|
@ -65,8 +65,8 @@ function vim {
|
|||
BACKGROUND=$(xtermcontrol --get-bg)
|
||||
|
||||
if [[ "$BACKGROUND" == "rgb:0000/2b2b/3636" ]]; then
|
||||
env vim --cmd "set background=dark" $@
|
||||
env vim --cmd "let theme = 'dark'" $@
|
||||
else
|
||||
env vim --cmd "set background=light" $@
|
||||
env vim --cmd "let theme = 'light'" $@
|
||||
fi
|
||||
}
|
||||
|
|
6
vimrc
6
vimrc
|
@ -1,6 +1,12 @@
|
|||
syntax on
|
||||
color solarized
|
||||
|
||||
if exists('theme') && theme == 'light'
|
||||
set background=light
|
||||
else
|
||||
set background=dark
|
||||
endif
|
||||
|
||||
set ai et si sts=2 sw=2 ts=2
|
||||
set hid
|
||||
set hls ic is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue