X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=80d9255357f2f47e1d422a8d6389dfb15cbc605c;hb=bc37cee39c352813cf3aa420eec5ae25dc77d9fd;hp=aed180c0ce9b4d826f5f5bcc82640e4be9d42feb;hpb=42ce151d8d932e740b6478698552f5185e69048c;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index aed180c..80d9255 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2844,6 +2844,17 @@ minimal-shell() { exec env -i ENV="/etc/minimal-shellrc" HOME="$HOME" TERM="$TERM" ksh } +# a wrapper for vim, that deals with title setting +# VIM_OPTIONS +# set this array to a set of options to vim you always want +# to have set when calling vim (in .zshrc.local), like: +# 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} "$@" +} + # make a backup of a file bk() { cp -a "$1" "${1}_$(date --iso-8601=seconds)"