vim: fix background in fb terminal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user