mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Fix vi* completions
I forgot a "-c".
This commit is contained in:
parent
54d1d98e39
commit
be51fe944d
|
@ -8,18 +8,17 @@
|
|||
if vi --version > /dev/null ^ /dev/null
|
||||
complete -c vi -w vim
|
||||
else
|
||||
complete vi -s s --description 'Suppress all interactive user feedback'
|
||||
complete vi -s C --description 'Encrypt/decrypt text'
|
||||
complete vi -s l --description 'Set up for editing LISP programs'
|
||||
complete vi -s L --description 'List saved file names after crash'
|
||||
complete vi -s R --description 'Read-only mode'
|
||||
complete vi -s S --description 'Use linear search for tags if tag file not sorted'
|
||||
complete vi -s v --description 'Start in display editing state'
|
||||
complete vi -s V --description 'Verbose mode'
|
||||
complete vi -s x --description 'Encrypt/decrypt text'
|
||||
|
||||
complete vi -r -s r --description 'Recover file after crash'
|
||||
complete vi -r -s t --description 'Edit the file containing a tag'
|
||||
complete vi -r -c t --description 'Begin editing by executing the specified editor command'
|
||||
complete -c vi -s s --description 'Suppress all interactive user feedback'
|
||||
complete -c vi -s C --description 'Encrypt/decrypt text'
|
||||
complete -c vi -s l --description 'Set up for editing LISP programs'
|
||||
complete -c vi -s L --description 'List saved file names after crash'
|
||||
complete -c vi -s R --description 'Read-only mode'
|
||||
complete -c vi -s S --description 'Use linear search for tags if tag file not sorted'
|
||||
complete -c vi -s v --description 'Start in display editing state'
|
||||
complete -c vi -s V --description 'Verbose mode'
|
||||
complete -c vi -s x --description 'Encrypt/decrypt text'
|
||||
complete -c vi -r -s r --description 'Recover file after crash'
|
||||
complete -c vi -r -s t --description 'Edit the file containing a tag'
|
||||
complete -c vi -r -c t --description 'Begin editing by executing the specified editor command'
|
||||
end
|
||||
|
||||
|
|
|
@ -5,67 +5,63 @@
|
|||
# +[num] : Position the cursor on line number
|
||||
# +/{pat} : Position the cursor on the first occurence of {pat}
|
||||
# +{command} : Execute Ex command after the first file has been read
|
||||
complete vim -s c -r --description 'Execute Ex command after the first file has been read'
|
||||
complete vim -s S -r --description 'Source file after the first file has been read'
|
||||
complete vim -l cmd -r --description 'Execute Ex command before loading any vimrc'
|
||||
complete vim -s d -r --description 'Use device as terminal (Amiga only)'
|
||||
complete vim -s i -r --description 'Set the viminfo file location'
|
||||
complete vim -s o -r --description 'Open stacked windows for each file'
|
||||
complete vim -s O -r --description 'Open side by side windows for each file'
|
||||
complete vim -s p -r --description 'Open tab pages for each file'
|
||||
complete vim -s q -r --description 'Start in quickFix mode'
|
||||
complete vim -s r -r --description 'Use swap files for recovery'
|
||||
complete vim -s s -r --description 'Source and execute script file'
|
||||
complete vim -s t -r --description 'Set the cursor to tag'
|
||||
complete vim -s T -r --description 'Terminal name'
|
||||
complete vim -s u -r --description 'Use alternative vimrc'
|
||||
complete vim -s U -r --description 'Use alternative vimrc in GUI mode'
|
||||
complete vim -s w -r --description 'Record all typed characters'
|
||||
complete vim -s W -r --description 'Record all typed characters (overwrite file)'
|
||||
|
||||
complete vim -s A --description 'Start in Arabic mode'
|
||||
complete vim -s b --description 'Start in binary mode'
|
||||
complete vim -s C --description 'Behave mostly like vi'
|
||||
complete vim -s d --description 'Start in diff mode'
|
||||
complete vim -s D --description 'Debugging mode'
|
||||
complete vim -s e --description 'Start in Ex mode'
|
||||
complete vim -s E --description 'Start in improved Ex mode'
|
||||
complete vim -s f --description 'Start in foreground mode'
|
||||
complete vim -s F --description 'Start in Farsi mode'
|
||||
complete vim -s g --description 'Start in GUI mode'
|
||||
complete vim -s h --description 'Print help message and exit'
|
||||
complete vim -s H --description 'Start in Hebrew mode'
|
||||
complete vim -s L --description 'List swap files'
|
||||
complete vim -s l --description 'Start in lisp mode'
|
||||
complete vim -s m --description 'Disable file modification'
|
||||
complete vim -s M --description 'Disallow file modification'
|
||||
complete vim -s N --description 'Reset compatibility mode'
|
||||
complete vim -s n --description 'Don\'t use swap files'
|
||||
complete vim -s R --description 'Read only mode'
|
||||
complete vim -s r --description 'List swap files'
|
||||
complete vim -s s --description 'Start in silent mode'
|
||||
complete vim -s V --description 'Start in verbose mode'
|
||||
complete vim -s v --description 'Start in vi mode'
|
||||
complete vim -s x --description 'Use encryption when writing files'
|
||||
complete vim -s X --description 'Don\'t connect to X server'
|
||||
complete vim -s y --description 'Start in easy mode'
|
||||
complete vim -s Z --description 'Start in restricted mode'
|
||||
|
||||
complete vim -o nb --description 'Become an editor server for NetBeans'
|
||||
|
||||
complete vim -l no-fork --description 'Start in foreground mode'
|
||||
complete vim -l echo-wid --description 'Echo the Window ID on stdout (GTK GUI only)'
|
||||
complete vim -l help --description 'Print help message and exit'
|
||||
complete vim -l literal --description 'Do not expand wildcards'
|
||||
complete vim -l noplugin --description 'Skip loading plugins'
|
||||
complete vim -l remote --description 'Edit files on Vim server'
|
||||
complete vim -l remote-expr --description 'Evaluate expr on Vim server'
|
||||
complete vim -l remote-send --description 'Send keys to Vim server'
|
||||
complete vim -l remote-silent --description 'Edit files on Vim server'
|
||||
complete vim -l remote-wait --description 'Edit files on Vim server'
|
||||
complete vim -l remote-wait-silent --description 'Edit files on Vim server'
|
||||
complete vim -l serverlist --description 'List all Vim servers that can be found'
|
||||
complete vim -l servername --description 'Set server name'
|
||||
complete vim -l version --description 'Print version information and exit'
|
||||
|
||||
complete vim -l socketid -r --description 'Run gvim in another window (GTK GUI only)'
|
||||
complete -c vim -s c -r --description 'Execute Ex command after the first file has been read'
|
||||
complete -c vim -s S -r --description 'Source file after the first file has been read'
|
||||
complete -c vim -l cmd -r --description 'Execute Ex command before loading any vimrc'
|
||||
complete -c vim -s d -r --description 'Use device as terminal (Amiga only)'
|
||||
complete -c vim -s i -r --description 'Set the viminfo file location'
|
||||
complete -c vim -s o -r --description 'Open stacked windows for each file'
|
||||
complete -c vim -s O -r --description 'Open side by side windows for each file'
|
||||
complete -c vim -s p -r --description 'Open tab pages for each file'
|
||||
complete -c vim -s q -r --description 'Start in quickFix mode'
|
||||
complete -c vim -s r -r --description 'Use swap files for recovery'
|
||||
complete -c vim -s s -r --description 'Source and execute script file'
|
||||
complete -c vim -s t -r --description 'Set the cursor to tag'
|
||||
complete -c vim -s T -r --description 'Terminal name'
|
||||
complete -c vim -s u -r --description 'Use alternative vimrc'
|
||||
complete -c vim -s U -r --description 'Use alternative vimrc in GUI mode'
|
||||
complete -c vim -s w -r --description 'Record all typed characters'
|
||||
complete -c vim -s W -r --description 'Record all typed characters (overwrite file)'
|
||||
complete -c vim -s A --description 'Start in Arabic mode'
|
||||
complete -c vim -s b --description 'Start in binary mode'
|
||||
complete -c vim -s C --description 'Behave mostly like vi'
|
||||
complete -c vim -s d --description 'Start in diff mode'
|
||||
complete -c vim -s D --description 'Debugging mode'
|
||||
complete -c vim -s e --description 'Start in Ex mode'
|
||||
complete -c vim -s E --description 'Start in improved Ex mode'
|
||||
complete -c vim -s f --description 'Start in foreground mode'
|
||||
complete -c vim -s F --description 'Start in Farsi mode'
|
||||
complete -c vim -s g --description 'Start in GUI mode'
|
||||
complete -c vim -s h --description 'Print help message and exit'
|
||||
complete -c vim -s H --description 'Start in Hebrew mode'
|
||||
complete -c vim -s L --description 'List swap files'
|
||||
complete -c vim -s l --description 'Start in lisp mode'
|
||||
complete -c vim -s m --description 'Disable file modification'
|
||||
complete -c vim -s M --description 'Disallow file modification'
|
||||
complete -c vim -s N --description 'Reset compatibility mode'
|
||||
complete -c vim -s n --description 'Don\'t use swap files'
|
||||
complete -c vim -s R --description 'Read only mode'
|
||||
complete -c vim -s r --description 'List swap files'
|
||||
complete -c vim -s s --description 'Start in silent mode'
|
||||
complete -c vim -s V --description 'Start in verbose mode'
|
||||
complete -c vim -s v --description 'Start in vi mode'
|
||||
complete -c vim -s x --description 'Use encryption when writing files'
|
||||
complete -c vim -s X --description 'Don\'t connect to X server'
|
||||
complete -c vim -s y --description 'Start in easy mode'
|
||||
complete -c vim -s Z --description 'Start in restricted mode'
|
||||
complete -c vim -o nb --description 'Become an editor server for NetBeans'
|
||||
complete -c vim -l no-fork --description 'Start in foreground mode'
|
||||
complete -c vim -l echo-wid --description 'Echo the Window ID on stdout (GTK GUI only)'
|
||||
complete -c vim -l help --description 'Print help message and exit'
|
||||
complete -c vim -l literal --description 'Do not expand wildcards'
|
||||
complete -c vim -l noplugin --description 'Skip loading plugins'
|
||||
complete -c vim -l remote --description 'Edit files on Vim server'
|
||||
complete -c vim -l remote-expr --description 'Evaluate expr on Vim server'
|
||||
complete -c vim -l remote-send --description 'Send keys to Vim server'
|
||||
complete -c vim -l remote-silent --description 'Edit files on Vim server'
|
||||
complete -c vim -l remote-wait --description 'Edit files on Vim server'
|
||||
complete -c vim -l remote-wait-silent --description 'Edit files on Vim server'
|
||||
complete -c vim -l serverlist --description 'List all Vim servers that can be found'
|
||||
complete -c vim -l servername --description 'Set server name'
|
||||
complete -c vim -l version --description 'Print version information and exit'
|
||||
complete -c vim -l socketid -r --description 'Run gvim in another window (GTK GUI only)'
|
||||
|
|
Loading…
Reference in New Issue
Block a user