Richard Hartmann: 26175: updates for vim completion.

This commit is contained in:
Clint Adams 2008-12-29 00:52:36 +00:00
parent 976cb71d6f
commit 4a2cd0410f
2 changed files with 21 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2008-12-29 Clint Adams <clint@zsh.org>
* Richard Hartmann: 26175: Completion/Unix/Command/_vim: updates
for vim completion.
2008-12-18 Peter Stephenson <pws@csr.com>
* Richard Hartmann: 26155: Doc/Zsh/builtins.yo,

View File

@ -15,18 +15,20 @@ _vim_files () {
local arguments
arguments=(
'( -e -s -d -y)-v[vi mode]'
'(-v -d -y)-e[ex mode]'
'(-v -e -s -y)-d[diff mode]'
'(-v -e -s -d )-y[easy mode]'
'( -e -E -s -d -y)-v[vi mode]'
'(-v -E -d -y)-e[ex mode]'
'(-v -e -d -y)-E[improved ex mode]'
'(-v -e -E -s -y)-d[diff mode]'
'(-v -e -E -s -d )-y[easy mode]'
'-R[readonly mode]'
'-Z[restricted mode]'
'-m[modifications (writing files) not allowed]'
'-M[modifications in text not allowed]'
'-b[binary mode]'
'-g[start with GUI]'
'-l[lisp mode]'
'-C[make vim compatible with vi]'
'-N[do not force compatibility with vi]'
'-C[start in compatible mode]'
'-N[start in incompatibile mode]'
'(--nofork -f)'{--nofork,-f}'[do not detach the GUI version from the shell]'
'-V-[verbosity level]::verbosity:((0\:"do not display any messages"
1\:"display when viminfo file is read or written"
@ -40,6 +42,7 @@ arguments=(
15\:"display every executed ex-command"))'
'-D[debugging mode]'
'-n[no swap file (memory only)]'
'-nb[start as NetBean server]'
{-r,-L}'[list swap files and exit or recover from a swap file]::swap file:_vim_files -g \*.sw\?'
'( -H -F)-A[start in Arabic mode]'
'(-A -F)-H[start in Hebrew mode]'
@ -48,15 +51,16 @@ arguments=(
'-u[use given vimrc file instead of default .vimrc]::rc file:_files'
'-U[use given gvimrc file instead of default .gvimrc]::rc file:_files'
'--noplugin[do not load plugin scripts]'
'-p-[number of tabs to open (default: one for each file)]::tab count: '
'-o-[number of windows to open (default: one for each file)]::window count: '
'-O-[number of windows to vertically split open (default is one for each file)]::window count: '
'-p-[number of tabs to open (default: one for each file)]::tab count: '
'-q-[quickfix file]:*:file:_vim_files'
'*--cmd[execute given command before loading any RC files]:command: '
'-c[executed given command after loading the first file]:command: '
'-S[source a session file after loading the first file]:session file:_files'
'-s[read normal-mode commands from script file]:script file:_files'
'-w[append all typed commands to given file]:output file:_files'
'-W[write all typed commands to given file]:output file:_files'
'-W[write all typed commands to given file, overwriting existing file]:output file:_files'
'-x[edit encrypted files]'
'-X[do not connect to X server]'
'--remote[edit given files in a vim server if possible]:*:file:_vim_files'
@ -66,8 +70,11 @@ arguments=(
'--remote-send[send given keys to vim server if possible]:keys: '
'--remote-tab[as --remote but open tab page for each file]:*:file:_vim_files'
'--remote-expr[evaluate given expression in a vim server and print result]:expression: '
'--echo-wid[echo window ID on STDOUT, GUI version only]'
'--literal[do not expand wildcards in arguments (this is useless with ZSH)]'
'(- *)--serverlist[list available vim servers and exit]'
'--servername[name of vim server to send to or name of server to become]:server name: '
'--socketid[run GVIM in another window]'
'-i[use given viminfo file instead of default .viminfo]:viminfo file:_files'
'(- *)'{-h,--help}'[print help and exit]'
'(- *)--version[print version information and exit]'