]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
Added Vim aliases for zsh.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 7b0e7d24ac41708318b720f4c543b470440c7846..34c99556274dcb3543d72d76dbbf04d8fa7ae385 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -97,6 +97,16 @@ alias -g D='2>&1 | colordiff L'
 # Simplify calls to grep.
 alias -g G='| grep'
 
+# Multiple files given to Vim are opened in tabs.
+alias vim='vim -p'
+# Shortcuts for Vim.
+alias v='vim'
+alias vi='vim'
+
+# Exit binding like in Vim.
+alias :q='exit'
+
+
 # Improved ls which displays the files in columns (-C), visualises directories,
 # links and other special files (-F) and pages everything through less (L).
 #
@@ -123,5 +133,7 @@ function ll() {
 }
 
 
+# Load rc file for current OS.
+source_config ~/.zsh os rc $(uname) nolocal
 # Load rc file for current hostname (first part before a dot) or rc.local.
-source_config ~/.zsh "" rc ${$(hostname)//.*/}
+source_config ~/.zsh host rc ${$(hostname)//.*/}