]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Don't complete unwanted files with Vim.
authorSimon Ruderich <simon@ruderich.org>
Sun, 31 Oct 2010 17:52:19 +0000 (18:52 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 31 Oct 2010 17:52:19 +0000 (18:52 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index f9b13b0d615e82fb7d7f03fdcd9fe9c24af3c7f6..6367ff4c8f218bd1a37748cc7e415e35f8853047 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -492,6 +492,11 @@ zstyle ':completion:*:(mv|cp):*' ignore-line no
 # simpler. Thanks to Nomexous in #zsh on Freenode (2010-03-16 01:54)
 zstyle ':completion:*:*:-command-:*' ignored-patterns './config.*'
 
+# Don't complete unwanted files with Vim. Thanks to Nomexous in #zsh on
+# Freenode (2010-06-06 04:54 CEST). See below to complete them.
+zstyle ':completion:*:*:vim:*:all-files' ignored-patterns '*.aux' '*.log' \
+                                                          '*.pdf' '*.class'
+
 # Provide a fallback completer which always completes files. Useful when Zsh's
 # completion is too "smart". Thanks to Frank Terbeck <ft@bewatermyfriend.org>
 # (http://www.zsh.org/mla/users/2009/msg01038.html).