Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Complete -t <tags> for _vim



Not exactly sure why you don't get to open multiple files and files with tags, but there you have it. Only multiple files or a single tag works.

diff --git a/Completion/Unix/Command/_vim b/Completion/Unix/Command/_vim
index 684e027..a79e0a0 100644
--- a/Completion/Unix/Command/_vim
+++ b/Completion/Unix/Command/_vim
@@ -71,7 +71,8 @@ arguments=(
'-i[use given viminfo file instead of default .viminfo]:viminfo file:_files'
   '(- *)'{-h,--help}'[print help and exit]'
   '(- *)--version[print version information and exit]'
-  '*:file:_vim_files'
+  '(*)-t[edit file where tag is defined]:tag:_complete_tag'
+  '(-t)*:file:_vim_files'
 )

 _arguments -S $arguments


--
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author