Vim color hack giving me shit on GNOME 3.30

This commit is contained in:
Josh Sherman 2018-09-18 22:11:04 -05:00
parent 248f68a249
commit 13189f5df9
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

18
aliases
View file

@ -61,12 +61,12 @@ function nvm {
fi
}
function vim {
BACKGROUND=$(xtermcontrol --get-bg)
if [[ "$BACKGROUND" == "rgb:0000/2b2b/3636" ]]; then
env vim --cmd "let theme = 'dark'" $@
else
env vim --cmd "let theme = 'light'" $@
fi
}
# function vim {
# BACKGROUND=$(xtermcontrol --get-bg)
#
# if [[ "$BACKGROUND" == "rgb:0000/2b2b/3636" ]]; then
# env vim --cmd "let theme = 'dark'" $@
# else
# env vim --cmd "let theme = 'light'" $@
# fi
# }