From 7fc6cf166af8d449e23a9fe1743633aae68ea0a8 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Fri, 20 Sep 2013 14:48:11 +0300 Subject: [PATCH] vim: fix background in fb terminal --- .rc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.rc b/.rc index f0ab038..4620416 100644 --- a/.rc +++ b/.rc @@ -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