X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=88eb6b4f546c7c9e0fbb80ef6300e0340264db31;hb=d6b57a3d60648fecb848a223e4cdcee6cfdb8eb5;hp=a505a4e719f87e13b56df7ade9802bf1f1de2cf9;hpb=93efa29b0ab79b6552e9865d2e16c541dfca0e20;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index a505a4e..88eb6b4 100644 --- a/zsh/rc +++ b/zsh/rc @@ -205,8 +205,10 @@ alias diff='diff -u' # Display all files and use human readable sizes. alias du='du -sh' -# Multiple files given to Vim are opened in tabs. -alias vim='vim -p' +# Multiple files given to Vim are opened in tabs, supported since Vim 7. +if [[ ${${${(f)"$(vim --version)"}[1]#VIM - Vi IMproved }%% *} == 7* ]]; then + alias vim='vim -p' +fi # Shortcuts for often used programs. alias e='elinks'