diff options
author | Peter Palfrader <peter@palfrader.org> | 2014-10-11 09:19:48 +0200 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2014-10-11 09:19:48 +0200 |
commit | dbccc26814a96aab792722bff71ea084a8235cf6 (patch) | |
tree | 2fb380d6c7474db41e17ca7fb46f14040ad9cfb2 /zshrc | |
parent | dc804f6388ad2b5ba15043f75032a1cfdc13de2a (diff) |
Set up vim plugins dir and symlink plugins that exist in usr
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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="" |