X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=2d5c189365a39e08829b4920bc5ce03860b6e7af;hp=3b65a09120dbf621ab0ebef4fb530e7677a3bd06;hb=76ee162ea1c6efc0cea1014f31affb1697be6abb;hpb=ee6fa75b9f8ccec352dedb1c14ea9484cccb318d diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 3b65a09..2d5c189 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2156,9 +2156,11 @@ deswap() { # VIM_OPTIONS=( -p ) # This will cause vim to send every file given on the # commandline to be send to it's own tab (needs vim7). -vim() { - VIM_PLEASE_SET_TITLE='yes' command vim ${VIM_OPTIONS} "$@" -} +if check_com vim; then + vim() { + VIM_PLEASE_SET_TITLE='yes' command vim ${VIM_OPTIONS} "$@" + } +fi # make a backup of a file bk() {