From: Iain Patterson Date: Mon, 26 Apr 2010 10:01:54 +0000 (+0100) Subject: Ensure VISUAL is set when becoming. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=e5ea7321936322231fc19d4a0ed2ff175c7c6143;p=profile.git Ensure VISUAL is set when becoming. --- diff --git a/.profile.d/variables.bashrc b/.profile.d/variables.bashrc index e3d8f04..e13ecae 100644 --- a/.profile.d/variables.bashrc +++ b/.profile.d/variables.bashrc @@ -2,7 +2,6 @@ export SSHTERM=urxvtc export SSHTERM_TITLE=-title export SSHTERM_EXEC=-e unset LANG -export VISUAL=vim unset XMODIFIERS #:-( export SSHTERM="urxvt" export SSHTERM_TITLE="-title" diff --git a/.profile.d/vim.bashrc b/.profile.d/vim.bashrc index bd9c826..15b4008 100644 --- a/.profile.d/vim.bashrc +++ b/.profile.d/vim.bashrc @@ -1,10 +1,12 @@ vim=$(find_working vim 2>/dev/null) if [ $? = 0 ]; then if [ -n "$PROFILE_HOME" ]; then - alias vim="$vim --cmd ':se rtp=$PROFILE_HOME/.vim,\$VIMRUNTIME' -u $PROFILE_HOME/.vimrc" + VISUAL="$vim --cmd ':se rtp=$PROFILE_HOME/.vim,\$VIMRUNTIME' -u $PROFILE_HOME/.vimrc" else - alias vim="$vim" + VISUAL="$vim" fi alias vi="vim" + alias vim="$VISUAL" + export VISUAL fi unset vim