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
Try to change to directory from which become was run.
[profile.git]
/
.profile.d
/
vim.bashrc
diff --git
a/.profile.d/vim.bashrc
b/.profile.d/vim.bashrc
index
4ee1bc0
..
bd9c826
100644
(file)
--- a/
.profile.d/vim.bashrc
+++ b/
.profile.d/vim.bashrc
@@
-1,3
+1,10
@@
vim=$(find_working vim 2>/dev/null)
vim=$(find_working vim 2>/dev/null)
-[ $? = 0 ] && alias vi="$vim"
+if [ $? = 0 ]; then
+ if [ -n "$PROFILE_HOME" ]; then
+ alias vim="$vim --cmd ':se rtp=$PROFILE_HOME/.vim,\$VIMRUNTIME' -u $PROFILE_HOME/.vimrc"
+ else
+ alias vim="$vim"
+ fi
+ alias vi="vim"
+fi
unset vim
unset vim