/usr/share/yash/completion/vim is in yash 2.43-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | # (C) 2010 magicant
# Completion script for the "vim" command.
# Supports Vim 7.3.
function completion/vim {
typeset OPTIONS ARGOPT PREFIX
OPTIONS=( #>#
"A; Arabic mode"
"b; binary mode"
"C; enable the compatible option"
"c:; specify a command to be executed after starting up"
"D; debug mode"
"d; diff mode"
"E; operate as the ex editor (improved Ex mode)"
"e; operate as the ex editor"
"F; Farsi mode"
"f --nofork; don't start a new process to execute the GUI"
"g; operate in GUI mode"
"H; Hebrew mode"
"h --help; print help"
"i:; specify the viminfo filename"
"l; lisp mode"
"M; disable the modifiable and write options"
"m; disable the write option"
"N; disable the compatible option"
"n; don't use any swap files"
"O::; specify the number of windows to open (vertical split)"
"o::; specify the number of windows to open"
"p::; specify the number of tab pages to open"
"q:; specify a quickfix error file to read"
"R; read-only mode"
"r L; recover unsaved files"
"S:; specify a file to be sourced after starting up"
"T:; specify the terminal type"
"t:; specify an identifier to jump"
"U:; specify the gvimrc filename"
"u:; specify the vimrc filename"
"V::; specify the value of the verbose option"
"v; operate as the vi editor"
"w:; specify the value of the window option"
"X; don't connect to the X server"
"x; enable encryption"
"y; easy mode"
"Z; restricted mode"
"--cmd:; specify a command to be executed before processing vimrc"
"--echo-wid; print GTK+ GUI window ID"
"--literal; don't expand wild card characters in filename arguments"
"--noplugin; don't load plug-ins"
"--remote; open files in the remote Vim server"
"--remote-silent; like --remote, but don't complain if there is no server"
"--remote-wait; like --remote, but wait for the editing to be finished"
"--remote-wait-silent; like --remote-wait and --remote-silent"
"--remote-tab; like --remote, but open each file in a new tab page"
"--remote-tab-silent; like --remote-tab and --remote-silent"
"--remote-tab-wait; like --remote-tab and --remote-wait"
"--remote-tab-wait-silent; like --remote-tab and --remote-wait-silent"
"--remote-expr:; specify an expression to be evaluated on the remote server"
"--remote-send:; specify a key sequence to send to the remote server"
"--role:; specify a role for GTK+ 2 GUI"
"--serverlist; print list of servers"
"--servername:; specify a server name to operate as or connect to"
"--startuptime:; specify a file to write timing messages while starting up"
"--version"
) #<#
case ${WORDS[1]##*/} in
(*ex*)
OPTIONS=("$OPTIONS" #>#
"s; non-interactive batch processing mode"
) #<#
;;
(*)
OPTIONS=("$OPTIONS" #>#
"s:; specify a file to be source!ed after starting up"
) #<#
;;
esac
command -f completion//parseoptions -es
case $ARGOPT in
(-)
command -f completion//completeoptions -e
;;
# ([cOopVw]|--cmd|--remote-expr|--remote-send|--role|--servername)
# ;;
([iSsUu]|--startuptime)
if [ "$PREFIX" ]; then
complete -P "$PREFIX" ""
else
complete -f
fi
;;
(q)
complete -P "$PREFIX" -f
;;
(T)
if [ "$PREFIX" ]; then
complete -P "$PREFIX" ""
else
typeset term desc
while read -r term desc; do
complete -D "$desc" -- "$term"
done 2>/dev/null <(toe -a || toe)
fi
;;
(t)
if [ -r tags ]; then
complete -P "$PREFIX" -R "!_TAG_*" -- \
$(cut -f 1 tags 2>/dev/null)
fi
;;
('')
complete -f
;;
esac
}
# vim: set ft=sh ts=8 sts=8 sw=8 noet:
|