From: Iain Patterson Date: Wed, 5 Aug 2009 10:52:53 +0000 (+0100) Subject: Fix Vim runtime path when becoming another user. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=baa4b77f198e69239bcdb5e5917ba23807537dec;p=profile.git Fix Vim runtime path when becoming another user. --- diff --git a/.become/all b/.become/all index 5138a15..6fa142d 100644 --- a/.become/all +++ b/.become/all @@ -4,7 +4,8 @@ export TERMINFO=$BECOME_HOME/.terminfo __ps1 vim=$($BECOME_HOME/opt/bin/find_working vim 2>/dev/null) if [ -n "$vim" ]; then - alias vim="$vim --cmd ':se rtp=$BECOME_HOME/.vim' -u $BECOME_HOME/.vimrc" + vim="$vim --cmd ':se rtp=$BECOME_HOME/.vim,\$VIMRUNTIME' -u $BECOME_HOME/.vimrc" + alias vim="$vim" alias vi=vim fi unset vim