From dbccc26814a96aab792722bff71ea084a8235cf6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 11 Oct 2014 09:19:48 +0200 Subject: Set up vim plugins dir and symlink plugins that exist in usr --- zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 2d96a3e..82e91f1 100644 --- a/zshrc +++ b/zshrc @@ -368,6 +368,15 @@ function init-prompt() { safe-restore-ssh-agent-socket init-prompt +# improve vim setup if possible +[ -d "$HOME/.vim/plugin" ] || mkdir -v -p "$HOME/.vim/plugin" +( + cd "$HOME/.vim/plugin" + for p in detectindent minibufexpl taglist; do + ! [ -e "$p.vim" ] && [ -e /usr/share/vim-scripts/plugin/"$p".vim ] && ln -v -s /usr/share/vim-scripts/plugin/"$p".vim + done +) + [ -x /usr/bin/ddate ] && /usr/bin/ddate && echo if [ -x /usr/games/fortune ]; then FORTUNE_PATH="" -- cgit v1.2.3