summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2014-10-11 09:19:48 +0200
committerPeter Palfrader <peter@palfrader.org>2014-10-11 09:19:48 +0200
commitdbccc26814a96aab792722bff71ea084a8235cf6 (patch)
tree2fb380d6c7474db41e17ca7fb46f14040ad9cfb2 /zshrc
parentdc804f6388ad2b5ba15043f75032a1cfdc13de2a (diff)
Set up vim plugins dir and symlink plugins that exist in usr
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc9
1 files changed, 9 insertions, 0 deletions
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=""