changeset 124:474a8dbb1ac5

Ignore certain filetypes when completing for (m)vim
author zegervdv <zegervdv@me.com>
date Mon, 29 Sep 2014 21:42:23 +0200
parents a9197f1b1638
children 18db7404aaf2
files zshrc
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/zshrc	Mon Sep 29 20:46:02 2014 +0200
+++ b/zshrc	Mon Sep 29 21:42:23 2014 +0200
@@ -42,6 +42,7 @@
 setopt nobeep
 setopt notify
 REPORTTIME=5
+
 # GRML style completion
 # activate color-completion
 zstyle ':completion:*:default'         list-colors ${(s.:.)LS_COLORS}
@@ -97,8 +98,10 @@
                                            /usr/X11R6/bin
 
 # provide .. as a completion
-zstyle ':completion:*' special-dirs ..
+zstyle ':completion:*' specal-dirs ..
 
+
+zstyle ':completion::*:(m|)vim:*' ignored-patterns '*.(o|hex|elf|pyc)'
 # Customize to your needs...
 export PATH=$PATH:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/local/sbin
 export PATH="/usr/local/bin:$PATH"
@@ -139,8 +142,8 @@
 
 # Disable Autocorrections
 alias tmux='nocorrect tmux'
-alias mvim="reattach-to-user-namespace mvim"
-alias vim="reattach-to-user-namespace vim"
+# alias mvim="reattach-to-user-namespace mvim"
+# alias vim="reattach-to-user-namespace vim"
 # alias ag="ag --color"
 alias dot="cd ~/.dotfiles"
 alias ranger="EDITOR=mvim ranger"
@@ -153,6 +156,7 @@
 }
 
 compdef _ag ag
+
 compctl -g '~/.teamocil/*(:t:r)' teamocil
 
 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
@@ -168,3 +172,4 @@
     _z "$@"
   fi
 }
+