Fix Vim runtime path when becoming another user.
authorIain Patterson <me@iain.cx>
Wed, 5 Aug 2009 10:52:53 +0000 (11:52 +0100)
committerIain Patterson <me@iain.cx>
Wed, 5 Aug 2009 10:52:53 +0000 (11:52 +0100)
.become/all

index 5138a15..6fa142d 100644 (file)
@@ -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