vim: fix background in fb terminal

This commit is contained in:
2013-09-20 14:48:11 +03:00
parent ceba726b2f
commit 7fc6cf166a
+5 -1
View File
@@ -110,7 +110,11 @@ alias webui='cd $webui'
# useful stuff
[ -z "$VIM_ORIGINAL" ] && VIM_ORIGINAL="$(which vim)"
function vim() {
local COMPAT_TERM="xterm-256color"
if [ "$TERM" = "linux" ]; then
local COMPAT_TERM=$TERM
else
local COMPAT_TERM="xterm-256color"
fi
# we only handle single-argument VIM
if [ $# -eq 1 ]; then
if [ -e "$1" ]; then