summaryrefslogtreecommitdiff
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
parentdc804f6388ad2b5ba15043f75032a1cfdc13de2a (diff)
Set up vim plugins dir and symlink plugins that exist in usr
-rw-r--r--gitconfig2
-rw-r--r--zshrc9
2 files changed, 11 insertions, 0 deletions
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=""