]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Fix wrong handling of vi in title code.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index c0a453e4b01e026f6e10f4f4e95f567822d8c414..1d61d6e0090f06dbeac96db5b0c009cecfbe03c3 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -132,7 +132,8 @@ bindkey -a "^N" history-beginning-search-forward
 # Use colorized output, necessary for prompts and completions.
 autoload -U colors && colors
 
-# Some shortcuts for colors.
+# Some shortcuts for colors. The %{...%} tells zsh that the data in between
+# doesn't need any space, necessary for correct prompt draw.
 local red="%{${fg[red]}%}"
 local blue="%{${fg[blue]}%}"
 local green="%{${fg[green]}%}"
@@ -270,7 +271,7 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then
             m)
                 program_name=mutt
                 ;;
-            v|vi)
+            v)
                 program_name=vim
                 ;;
         esac