-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvim.completor.bash
166 lines (122 loc) · 5.89 KB
/
nvim.completor.bash
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
output=nvim-completion.bash
version=0.8.0
maintainers=('ADoyle (adoyle.h@gmail.com)')
cmd=nvim
# These options come from `man nvim`
cmd_opts=(
-
# Finds tag in the tags file, the associated file becomes the current file and the associated command is executed.
# Cursor is positioned at the tag location in the file. :help tag-commands
-t:@hold # -t tag
# QuickFix mode. Display the first error in errorfile. If errorfile is omitted,
# the value of the 'errorfile' option is used (defaults to errors.err).
# Further errors can be jumped to with the :cnext command. :help quickfix
-q:@files # -q [errorfile]
# End of options. Remaining arguments are treated as literal file names,
# including filenames starting with hyphen (‘-’).
--
# Ex mode, reading stdin as Ex commands. :help Ex-mode
-e
# Ex mode, reading stdin as text. :help Ex-mode
-E
# Silent (non-interactive) Ex mode, reading stdin as Ex commands.
# Useful for scripting because it does NOT start a UI, unlike -e. :help silent-mode
-es
# Silent (non-interactive) Ex mode, reading stdin as text.
# Useful for scripting because it does NOT start a UI, unlike -E. :help silent-mode
-Es
# Diff mode. Show the difference between two to eight files, similar to sdiff(1). :help diff
-d
# Read-only mode. Sets the 'readonly' option. Implies -n.
# Buffers can still be edited, but cannot be written to disk if already associated with a file.
# To overwrite a file, add an exclamation mark to the relevant Ex command, such as :w!.
# :help 'readonly'
-R
# Resets the 'write' option, to disable file modifications.
# Writing to a file is disabled, but buffers can still be modified.
-m
# Resets the 'write' and 'modifiable' options, to disable file and buffer modifications.
-M
# Binary mode. :help edit-binary
-b
# Lisp mode. Sets the 'lisp' and 'showmatch' options.
-l
# Arabic mode. Sets the 'arabic' option.
-A
# Hebrew mode. Sets the 'hkmap' and 'rightleft' options.
-H
# Verbose mode. Prints debug messages. N is the 'verbose' level, defaults to 10. If file is specified,
# append messages to file instead of printing them. :help 'verbose'
-V:@files # -V[N][file]
# Debug mode for VimL (Vim script). Started when executing the first command from a script.
# :help debug-mode
-D
# Disable the use of swap files. Sets the 'updatecount' option to 0.
# Can be useful for editing files on a slow medium.
-n
# -r [file] Recovery mode. If file is omitted then list swap files with recovery information. Otherwise the swap
# file file is used to recover a crashed session. The swap file has the same name as the file it's
# associated with, but with ‘.swp’ appended. :help recovery
-r:@files
# -L [file] Alias for -r.
-L:@files
# -u vimrc Use vimrc instead of the default ~/.config/nvim/init.vim. If vimrc is NORC, do not load any
# initialization files (except plugins). If vimrc is NONE, loading plugins is also skipped. :help
# initialization
-u:@files
# -i shada Use shada instead of the default ~/.local/state/nvim/shada/main.shada. If shada is NONE, do not read or
# write a ShaDa file. :help shada
-i:@files
# Skip loading plugins. Implied by -u NONE.
--noplugin
# Start Nvim with "factory defaults" (no user config and plugins, no shada). :help --clean
--clean
# -o[N] Open N windows stacked horizontally. If N is omitted, open one window for each file. If N is less than
# the number of file arguments, allocate windows for the first N files and hide the rest.
-o
# -O[N] Like -o, but tile windows vertically.
-O
# -p[N] Like -o, but for tab pages.
-p
# +[linenum] For the first file, position the cursor on line linenum. If linenum is omitted, position the cursor on
# the last line of the file. +5 and -c 5 on the command-line are equivalent to :5 inside nvim.
+
# +/[pattern]
# For the first file, position the cursor on the first occurrence of pattern. If pattern is omitted, the
# most recent search pattern is used (if any). +/foo and -c /foo on the command-line are equivalent to
# /foo and :/foo inside nvim. :help search-pattern
+/
# +command, -c command
# Execute command after reading the first file. Up to 10 instances allowed. "+foo" and -c "foo" are
# equivalent.
-c:@hold
# Like -c, but execute command before processing any vimrc. Up to 10 instances of these can be used
# independently from instances of -c.
--cmd:@hold # --cmd command
# Source session after the first file argument has been read. Equivalent to -c "source session".
# session cannot start with a hyphen (‘-’). If session is omitted then Session.vim is used, if found.
# :help session-file
-S # -S [session]
# Read normal mode commands from scriptin. The same can be done with the command :source! scriptin.
# If the end of the file is reached before nvim exits, further characters are read from the keyboard.
-s:@hold # -s scriptin
# Append all typed characters to scriptout. Can be used for creating a script to be used with -s or :source!.
-w:@files # -w scriptout
# Like -w, but truncate scriptout.
-W:@files # -W scriptout
# During startup, append timing messages to file. Can be used to diagnose slow startup times.
--startuptime:@files # --startuptime file
# Dump API metadata serialized to msgpack and exit.
--api-info
# Use standard input and standard output as a msgpack-rpc channel. :help --embed
--embed
# Do not start a UI. When supplied with --embed this implies that the embedding application does not
# intend to (immediately) start a UI. Also useful for "scraping" messages in a pipe. :help --headless
--headless
# Start RPC server on this pipe or TCP socket.
--listen:@files # --listen address
# Print usage information and exit.
-h --help
# Print version information and exit.
-v --version
)