git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix short path in prompt.
[profile.git]
/
.profile.d
/
vim.bashrc
diff --git
a/.profile.d/vim.bashrc
b/.profile.d/vim.bashrc
index
bd9c826
..
c973880
100644
(file)
--- a/
.profile.d/vim.bashrc
+++ b/
.profile.d/vim.bashrc
@@
-1,10
+1,12
@@
-vim=$(find_working vim 2>/dev/null)
+vim=$(find_working
-a --version
vim 2>/dev/null)
if [ $? = 0 ]; then
if [ -n "$PROFILE_HOME" ]; then
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
' -u $PROFILE_HOME/.vimrc"
else
else
-
alias vim
="$vim"
+
VISUAL
="$vim"
fi
alias vi="vim"
fi
alias vi="vim"
+ alias vim="$VISUAL"
+ export VISUAL
fi
unset vim
fi
unset vim