Less convoluted rtp setting.
authorIain Patterson <me@iain.cx>
Fri, 16 May 2014 10:16:50 +0000 (11:16 +0100)
committerIain Patterson <me@iain.cx>
Wed, 28 May 2014 09:54:36 +0000 (10:54 +0100)
We can add to rtp with += rather than escaping out VIMRUNTIME.

.profile.d/vim.bashrc

index 930d200..c973880 100644 (file)
@@ -1,7 +1,7 @@
 vim=$(find_working -a --version vim 2>/dev/null)
 if [ $? = 0 ]; then
   if [ -n "$PROFILE_HOME" ]; then
-    VISUAL="$vim --cmd ':se rtp=$PROFILE_HOME/.vim,\$VIMRUNTIME' -u $PROFILE_HOME/.vimrc"
+    VISUAL="$vim --cmd ':se rtp+=$PROFILE_HOME/.vim' -u $PROFILE_HOME/.vimrc"
   else
     VISUAL="$vim"
   fi