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 --- gitconfig | 2 ++ zshrc | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/gitconfig b/gitconfig index 37a2be9..ffe2dc5 100644 --- a/gitconfig +++ b/gitconfig @@ -25,3 +25,5 @@ excludesfile = ~/.gitignore #[push] # default = simple +[push] + default = simple 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