fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian BoehmMake functions, completions and tests resilient to running on an embed-data fish329cd7d42

master
4.0 KiB68 linesraw
1complete -C"vim " &>/dev/null
2
3# Options shared with vim, copied from vim.fish
4complete -c nvim -s c -r -d 'Execute Ex command after the first file has been read'
5complete -c nvim -s S -r -d 'Source file after the first file has been read'
6complete -c nvim -l cmd -r -d 'Execute Ex command before loading any vimrc'
7complete -c nvim -s i -r -d 'Set the shada file location'
8complete -c nvim -s o -d 'Open horizontally split windows for each file'
9complete -c nvim -o o2 -d 'Open two horizontally split windows' # actually -o[N]
10complete -c nvim -s O -d 'Open vertically split windows for each file'
11complete -c nvim -o O2 -d 'Open two vertically split windows' # actually -O[N]
12complete -c nvim -s p -d 'Open tab pages for each file'
13complete -c nvim -o p2 -d 'Open two tab pages' # actually -p[N]
14complete -c nvim -s q -r -d 'Start in quickFix mode'
15complete -c nvim -s r -r -d 'Use swap files for recovery'
16complete -c nvim -s t -xa '(__fish_vim_tags)' -d 'Set the cursor to tag'
17complete -c nvim -s u -r -d 'Use alternative vimrc'
18complete -c nvim -s w -r -d 'Record all typed characters'
19complete -c nvim -s W -r -d 'Record all typed characters (overwrite file)'
20complete -c nvim -s A -d 'Start in Arabic mode'
21complete -c nvim -s b -d 'Start in binary mode'
22complete -c nvim -s d -d 'Start in diff mode'
23complete -c nvim -s D -d 'Debugging mode'
24complete -c nvim -s e -d 'Start in Ex mode, execute stdin as Ex commands'
25complete -c nvim -s E -d 'Start in Ex mode, read stdin as text into buffer 1'
26complete -c nvim -s h -d 'Print help message and exit'
27complete -c nvim -s H -d 'Start in Hebrew mode'
28complete -c nvim -s L -d 'List swap files'
29complete -c nvim -s m -d 'Disable file modification'
30complete -c nvim -s M -d 'Disable buffer modification'
31complete -c nvim -s n -d 'Don\'t use swap files'
32complete -c nvim -s R -d 'Read-only mode'
33complete -c nvim -s r -d 'List swap files'
34complete -c nvim -s V -d 'Start in verbose mode'
35complete -c nvim -s h -l help -d 'Print help message and exit'
36complete -c nvim -l noplugin -d 'Skip loading plugins'
37complete -c nvim -s v -l version -d 'Print version information and exit'
38complete -c nvim -l clean -d 'Factory defaults: skip vimrc, plugins, shada'
39complete -c nvim -l startuptime -r -d 'Write startup timing messages to <file>'
40
41# Options exclusive to nvim, see https://neovim.io/doc/user/starting.html
42complete -c nvim -s l -r -d 'Execute Lua script'
43complete -c nvim -s ll -r -d 'Execute Lua script in uninitialized editor'
44complete -c nvim -s es -d 'Start in Ex script mode, execute stdin as Ex commands'
45complete -c nvim -s Es -d 'Start in Ex script mode, read stdin as text into buffer 1'
46complete -c nvim -s s -r -d 'Execute script file as normal-mode input'
47
48# Server and API options
49complete -c nvim -l api-info -d 'Write msgpack-encoded API metadata to stdout'
50complete -c nvim -l embed -d 'Use stdin/stdout as a msgpack-rpc channel'
51complete -c nvim -l headless -d "Don't start a user interface"
52complete -c nvim -l listen -r -d 'Serve RPC API from this address (e.g. 127.0.0.1:6000)'
53complete -c nvim -l server -r -d 'Specify RPC server to send commands to'
54
55# Client options
56complete -c nvim -l remote -d 'Edit files on nvim server specified with --server'
57complete -c nvim -l remote-expr -d 'Evaluate expr on nvim server specified with --server'
58complete -c nvim -l remote-send -d 'Send keys to nvim server specified with --server'
59complete -c nvim -l remote-silent -d 'Edit files on nvim server specified with --server'
60
61# Unimplemented client/server options
62# Support for these options is planned, but they are not implemented yet (February 2023).
63# nvim currently prints either a helpful error message or a confusing one ("Garbage after option argument: ...")
64# Once they are supported, we can add them back in - see https://neovim.io/doc/user/remote.html for their status.
65# complete -c nvim -l remote-wait -d 'Edit files on nvim server'
66# complete -c nvim -l remote-wait-silent -d 'Edit files on nvim server'
67# complete -c nvim -l serverlist -d 'List all nvim servers that can be found'
68# complete -c nvim -l servername -d 'Set server name'