blob: 4ce444ec78781772a07fe75edfaf9e3d8d929549 [file] [log] [blame]
Bram Moolenaar86ae7202015-07-10 19:31:35 +02001VIM(1) General Commands Manual VIM(1)
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4
5NAME
Bram Moolenaarc572da52017-08-27 16:52:01 +02006 vim - Vi IMproved, a programmer's text editor
Bram Moolenaar071d4272004-06-13 20:20:40 +00007
8SYNOPSIS
9 vim [options] [file ..]
10 vim [options] -
11 vim [options] -t tag
12 vim [options] -q [errorfile]
13
14 ex
15 view
16 gvim gview evim eview
17 rvim rview rgvim rgview
18
19DESCRIPTION
20 Vim is a text editor that is upwards compatible to Vi. It can be used
21 to edit all kinds of plain text. It is especially useful for editing
22 programs.
23
Bram Moolenaar86ae7202015-07-10 19:31:35 +020024 There are a lot of enhancements above Vi: multi level undo, multi win‐
Bram Moolenaar071d4272004-06-13 20:20:40 +000025 dows and buffers, syntax highlighting, command line editing, filename
26 completion, on-line help, visual selection, etc.. See ":help
27 vi_diff.txt" for a summary of the differences between Vim and Vi.
28
29 While running Vim a lot of help can be obtained from the on-line help
Bram Moolenaar86ae7202015-07-10 19:31:35 +020030 system, with the ":help" command. See the ON-LINE HELP section below.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031
32 Most often Vim is started to edit a single file with the command
33
34 vim file
35
36 More generally Vim is started with:
37
38 vim [options] [filelist]
39
40 If the filelist is missing, the editor will start with an empty buffer.
Bram Moolenaar86ae7202015-07-10 19:31:35 +020041 Otherwise exactly one out of the following four may be used to choose
Bram Moolenaar071d4272004-06-13 20:20:40 +000042 one or more files to be edited.
43
Bram Moolenaar86ae7202015-07-10 19:31:35 +020044 file .. A list of filenames. The first one will be the current
45 file and read into the buffer. The cursor will be posi‐
Bram Moolenaar071d4272004-06-13 20:20:40 +000046 tioned on the first line of the buffer. You can get to the
Bram Moolenaar86ae7202015-07-10 19:31:35 +020047 other files with the ":next" command. To edit a file that
Bram Moolenaar071d4272004-06-13 20:20:40 +000048 starts with a dash, precede the filelist with "--".
49
Bram Moolenaar86ae7202015-07-10 19:31:35 +020050 - The file to edit is read from stdin. Commands are read
Bram Moolenaar071d4272004-06-13 20:20:40 +000051 from stderr, which should be a tty.
52
53 -t {tag} The file to edit and the initial cursor position depends on
Bram Moolenaar86ae7202015-07-10 19:31:35 +020054 a "tag", a sort of goto label. {tag} is looked up in the
Bram Moolenaar071d4272004-06-13 20:20:40 +000055 tags file, the associated file becomes the current file and
Bram Moolenaar86ae7202015-07-10 19:31:35 +020056 the associated command is executed. Mostly this is used
57 for C programs, in which case {tag} could be a function
Bram Moolenaar071d4272004-06-13 20:20:40 +000058 name. The effect is that the file containing that function
Bram Moolenaar86ae7202015-07-10 19:31:35 +020059 becomes the current file and the cursor is positioned on
Bram Moolenaar071d4272004-06-13 20:20:40 +000060 the start of the function. See ":help tag-commands".
61
62 -q [errorfile]
Bram Moolenaar86ae7202015-07-10 19:31:35 +020063 Start in quickFix mode. The file [errorfile] is read and
64 the first error is displayed. If [errorfile] is omitted,
Bram Moolenaar06fe74a2019-08-31 16:20:32 +020065 the filename is obtained from the 'errorfile' option (de‐
66 faults to "AztecC.Err" for the Amiga, "errors.err" on other
67 systems). Further errors can be jumped to with the ":cn"
68 command. See ":help quickfix".
Bram Moolenaar071d4272004-06-13 20:20:40 +000069
Bram Moolenaar86ae7202015-07-10 19:31:35 +020070 Vim behaves differently, depending on the name of the command (the exe‐
Bram Moolenaar071d4272004-06-13 20:20:40 +000071 cutable may still be the same file).
72
73 vim The "normal" way, everything is default.
74
Bram Moolenaar86ae7202015-07-10 19:31:35 +020075 ex Start in Ex mode. Go to Normal mode with the ":vi" command.
Bram Moolenaar071d4272004-06-13 20:20:40 +000076 Can also be done with the "-e" argument.
77
Bram Moolenaar86ae7202015-07-10 19:31:35 +020078 view Start in read-only mode. You will be protected from writing
Bram Moolenaar071d4272004-06-13 20:20:40 +000079 the files. Can also be done with the "-R" argument.
80
81 gvim gview
82 The GUI version. Starts a new window. Can also be done with
83 the "-g" argument.
84
85 evim eview
86 The GUI version in easy mode. Starts a new window. Can also
87 be done with the "-y" argument.
88
89 rvim rview rgvim rgview
Bram Moolenaar86ae7202015-07-10 19:31:35 +020090 Like the above, but with restrictions. It will not be possi‐
91 ble to start shell commands, or suspend Vim. Can also be
Bram Moolenaar071d4272004-06-13 20:20:40 +000092 done with the "-Z" argument.
93
94OPTIONS
Bram Moolenaar06fe74a2019-08-31 16:20:32 +020095 The options may be given in any order, before or after filenames. Op‐
96 tions without an argument can be combined after a single dash.
Bram Moolenaar071d4272004-06-13 20:20:40 +000097
Bram Moolenaar86ae7202015-07-10 19:31:35 +020098 +[num] For the first file the cursor will be positioned on line
99 "num". If "num" is missing, the cursor will be positioned
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100 on the last line.
101
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200102 +/{pat} For the first file the cursor will be positioned in the
103 line with the first occurrence of {pat}. See ":help
104 search-pattern" for the available search patterns.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000105
106 +{command}
107
108 -c {command}
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200109 {command} will be executed after the first file has been
110 read. {command} is interpreted as an Ex command. If the
111 {command} contains spaces it must be enclosed in double
112 quotes (this depends on the shell that is used). Example:
Bram Moolenaar2547aa92020-07-26 17:00:44 +0200113 vim "+set si" main.c
Bram Moolenaar071d4272004-06-13 20:20:40 +0000114 Note: You can use up to 10 "+" or "-c" commands.
115
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200116 -S {file} {file} will be sourced after the first file has been read.
117 This is equivalent to -c "source {file}". {file} cannot
Bram Moolenaar071d4272004-06-13 20:20:40 +0000118 start with '-'. If {file} is omitted "Session.vim" is used
119 (only works when -S is the last argument).
120
121 --cmd {command}
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200122 Like using "-c", but the command is executed just before
123 processing any vimrc file. You can use up to 10 of these
Bram Moolenaar071d4272004-06-13 20:20:40 +0000124 commands, independently from "-c" commands.
125
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200126 -A If Vim has been compiled with ARABIC support for editing
127 right-to-left oriented files and Arabic keyboard mapping,
128 this option starts Vim in Arabic mode, i.e. 'arabic' is
Bram Moolenaar071d4272004-06-13 20:20:40 +0000129 set. Otherwise an error message is given and Vim aborts.
130
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200131 -b Binary mode. A few options will be set that makes it pos‐
Bram Moolenaar071d4272004-06-13 20:20:40 +0000132 sible to edit a binary or executable file.
133
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200134 -C Compatible. Set the 'compatible' option. This will make
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200135 Vim behave mostly like Vi, even though a .vimrc file ex‐
136 ists.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000137
Bram Moolenaar2346a632021-06-13 19:02:49 +0200138 -d Start in diff mode. There should between two to eight file
139 name arguments. Vim will open all the files and show dif‐
140 ferences between them. Works like vimdiff(1).
Bram Moolenaar071d4272004-06-13 20:20:40 +0000141
Christian Brabandtce6fe842024-06-04 21:58:32 +0200142 -d {device}, -dev {device}
143 Open {device} for use as a terminal. Only on the Amiga.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000144 Example: "-d con:20/30/600/150".
145
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200146 -D Debugging. Go to debugging mode when executing the first
Bram Moolenaar071d4272004-06-13 20:20:40 +0000147 command from a script.
148
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200149 -e Start Vim in Ex mode, just like the executable was called
Bram Moolenaar071d4272004-06-13 20:20:40 +0000150 "ex".
151
152 -E Start Vim in improved Ex mode, just like the executable was
153 called "exim".
154
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200155 -f Foreground. For the GUI version, Vim will not fork and de‐
156 tach from the shell it was started in. On the Amiga, Vim
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200157 is not restarted to open a new window. This option should
158 be used when Vim is executed by a program that will wait
159 for the edit session to finish (e.g. mail). On the Amiga
Bram Moolenaar071d4272004-06-13 20:20:40 +0000160 the ":sh" and ":!" commands will not work.
161
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200162 --nofork Foreground. For the GUI version, Vim will not fork and de‐
163 tach from the shell it was started in.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000164
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200165 -F If Vim has been compiled with FKMAP support for editing
166 right-to-left oriented files and Farsi keyboard mapping,
167 this option starts Vim in Farsi mode, i.e. 'fkmap' and
Bram Moolenaar071d4272004-06-13 20:20:40 +0000168 'rightleft' are set. Otherwise an error message is given
169 and Vim aborts.
170
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200171 -g If Vim has been compiled with GUI support, this option en‐
172 ables the GUI. If no GUI support was compiled in, an error
173 message is given and Vim aborts.
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200174
Christian Brabandtce6fe842024-06-04 21:58:32 +0200175 --gui-dialog-file {name}
176 When using the GUI, instead of showing a dialog, write the
177 title and message of the dialog to file {name}. The file
178 is created or appended to. Only useful for testing, to
179 avoid that the test gets stuck on a dialog that can't be
180 seen. Without the GUI the argument is ignored.
181
182 --help, -h, -?
183 Give a bit of help about the command line arguments and op‐
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200184 tions. After this Vim exits.
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200185
186 -H If Vim has been compiled with RIGHTLEFT support for editing
187 right-to-left oriented files and Hebrew keyboard mapping,
188 this option starts Vim in Hebrew mode, i.e. 'hkmap' and
189 'rightleft' are set. Otherwise an error message is given
190 and Vim aborts.
191
Bram Moolenaar071d4272004-06-13 20:20:40 +0000192 -i {viminfo}
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200193 Specifies the filename to use when reading or writing the
194 viminfo file, instead of the default "~/.viminfo". This
195 can also be used to skip the use of the .viminfo file, by
196 giving the name "NONE".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000197
198 -L Same as -r.
199
200 -l Lisp mode. Sets the 'lisp' and 'showmatch' options on.
201
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200202 -m Modifying files is disabled. Resets the 'write' option.
203 You can still modify the buffer, but writing a file is not
Bram Moolenaar071d4272004-06-13 20:20:40 +0000204 possible.
205
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200206 -M Modifications not allowed. The 'modifiable' and 'write'
207 options will be unset, so that changes are not allowed and
208 files can not be written. Note that these options can be
Bram Moolenaar071d4272004-06-13 20:20:40 +0000209 set to enable making modifications.
210
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200211 -N No-compatible mode. Resets the 'compatible' option. This
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200212 will make Vim behave a bit better, but less Vi compatible,
Bram Moolenaar071d4272004-06-13 20:20:40 +0000213 even though a .vimrc file does not exist.
214
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200215 -n No swap file will be used. Recovery after a crash will be
216 impossible. Handy if you want to edit a file on a very
217 slow medium (e.g. floppy). Can also be done with ":set
Bram Moolenaar071d4272004-06-13 20:20:40 +0000218 uc=0". Can be undone with ":set uc=200".
219
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200220 -nb Become an editor server for NetBeans. See the docs for de‐
221 tails.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000222
223 -o[N] Open N windows stacked. When N is omitted, open one window
224 for each file.
225
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200226 -O[N] Open N windows side by side. When N is omitted, open one
Bram Moolenaar071d4272004-06-13 20:20:40 +0000227 window for each file.
228
Bram Moolenaar1a14c2c2006-03-25 21:52:34 +0000229 -p[N] Open N tab pages. When N is omitted, open one tab page for
230 each file.
231
Christian Brabandtce6fe842024-06-04 21:58:32 +0200232 -P {parent-title}
233 Win32 GUI only: Specify the title of the parent applica‐
234 tion. When possible, Vim will run in an MDI window inside
235 the application. {parent-title} must appear in the window
236 title of the parent application. Make sure that it is spe‐
237 cific enough. Note that the implementation is still primi‐
238 tive. It won't work with all applications and the menu
239 doesn't work.
240
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200241 -R Read-only mode. The 'readonly' option will be set. You
242 can still edit the buffer, but will be prevented from acci‐
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200243 dentally overwriting a file. If you do want to overwrite a
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200244 file, add an exclamation mark to the Ex command, as in
245 ":w!". The -R option also implies the -n option (see
Bram Moolenaar24a98a02017-09-27 22:23:55 +0200246 above). The 'readonly' option can be reset with ":set
Bram Moolenaar071d4272004-06-13 20:20:40 +0000247 noro". See ":help 'readonly'".
248
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200249 -r List swap files, with information about using them for re‐
250 covery.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000251
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200252 -r {file} Recovery mode. The swap file is used to recover a crashed
253 editing session. The swap file is a file with the same
Bram Moolenaar071d4272004-06-13 20:20:40 +0000254 filename as the text file with ".swp" appended. See ":help
255 recovery".
256
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200257 -s Silent mode. Only when started as "Ex" or when the "-e"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000258 option was given before the "-s" option.
259
260 -s {scriptin}
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200261 The script file {scriptin} is read. The characters in the
262 file are interpreted as if you had typed them. The same
Bram Moolenaar071d4272004-06-13 20:20:40 +0000263 can be done with the command ":source! {scriptin}". If the
264 end of the file is reached before the editor exits, further
265 characters are read from the keyboard.
266
267 -T {terminal}
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200268 Tells Vim the name of the terminal you are using. Only re‐
269 quired when the automatic way doesn't work. Should be a
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200270 terminal known to Vim (builtin) or defined in the termcap
Bram Moolenaar071d4272004-06-13 20:20:40 +0000271 or terminfo file.
272
Christian Brabandtce6fe842024-06-04 21:58:32 +0200273 --not-a-term
274 Tells Vim that the user knows that the input and/or output
275 is not connected to a terminal. This will avoid the warn‐
276 ing and the two second delay that would happen.
277
278 --ttyfail When stdin or stdout is not a a terminal (tty) then exit
279 right away.
280
281 -u {vimrc} Use the commands in the file {vimrc} for initializations.
282 All the other initializations are skipped. Use this to
283 edit a special kind of files. It can also be used to skip
284 all initializations by giving the name "NONE". See ":help
Bram Moolenaar071d4272004-06-13 20:20:40 +0000285 initialization" within vim for more details.
286
Christian Brabandtce6fe842024-06-04 21:58:32 +0200287 -U {gvimrc} Use the commands in the file {gvimrc} for GUI initializa‐
288 tions. All the other GUI initializations are skipped. It
289 can also be used to skip all GUI initializations by giving
290 the name "NONE". See ":help gui-init" within vim for more
Bram Moolenaar071d4272004-06-13 20:20:40 +0000291 details.
292
Christian Brabandtce6fe842024-06-04 21:58:32 +0200293 -V[N] Verbose. Give messages about which files are sourced and
294 for reading and writing a viminfo file. The optional num‐
Bram Moolenaar071d4272004-06-13 20:20:40 +0000295 ber N is the value for 'verbose'. Default is 10.
296
Christian Brabandtce6fe842024-06-04 21:58:32 +0200297 -V[N]{filename}
298 Like -V and set 'verbosefile' to {filename}. The result is
299 that messages are not displayed but written to the file
300 {filename}. {filename} must not start with a digit.
301
302 --log {filename}
303 If Vim has been compiled with eval and channel feature,
304 start logging and write entries to {filename}. This works
305 like calling ch_logfile({filename}, 'ao') very early during
306 startup.
307
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200308 -v Start Vim in Vi mode, just like the executable was called
309 "vi". This only has effect when the executable is called
Bram Moolenaar071d4272004-06-13 20:20:40 +0000310 "ex".
311
Christian Brabandtce6fe842024-06-04 21:58:32 +0200312 -w{number} Set the 'window' option to {number}.
313
Bram Moolenaar071d4272004-06-13 20:20:40 +0000314 -w {scriptout}
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200315 All the characters that you type are recorded in the file
316 {scriptout}, until you exit Vim. This is useful if you
317 want to create a script file to be used with "vim -s" or
Bram Moolenaar071d4272004-06-13 20:20:40 +0000318 ":source!". If the {scriptout} file exists, characters are
319 appended.
320
321 -W {scriptout}
322 Like -w, but an existing file is overwritten.
323
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000324 -x Use encryption when writing files. Will prompt for a crypt
325 key.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000326
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200327 -X Don't connect to the X server. Shortens startup time in a
328 terminal, but the window title and clipboard will not be
Bram Moolenaar071d4272004-06-13 20:20:40 +0000329 used.
330
331 -y Start Vim in easy mode, just like the executable was called
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200332 "evim" or "eview". Makes Vim behave like a click-and-type
Bram Moolenaar071d4272004-06-13 20:20:40 +0000333 editor.
334
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200335 -Z Restricted mode. Works like the executable starts with
Bram Moolenaar071d4272004-06-13 20:20:40 +0000336 "r".
337
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200338 -- Denotes the end of the options. Arguments after this will
339 be handled as a file name. This can be used to edit a
Bram Moolenaar071d4272004-06-13 20:20:40 +0000340 filename that starts with a '-'.
341
Bram Moolenaar56994d22021-04-17 16:31:09 +0200342 --clean Do not use any personal configuration (vimrc, plugins,
343 etc.). Useful to see if a problem reproduces with a clean
344 Vim setup.
345
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000346 --echo-wid GTK GUI only: Echo the Window ID on stdout.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000347
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200348 --literal Take file name arguments literally, do not expand wild‐
349 cards. This has no effect on Unix where the shell expands
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000350 wildcards.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000351
352 --noplugin Skip loading plugins. Implied by -u NONE.
353
354 --remote Connect to a Vim server and make it edit the files given in
355 the rest of the arguments. If no server is found a warning
356 is given and the files are edited in the current Vim.
357
358 --remote-expr {expr}
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200359 Connect to a Vim server, evaluate {expr} in it and print
Bram Moolenaar071d4272004-06-13 20:20:40 +0000360 the result on stdout.
361
362 --remote-send {keys}
363 Connect to a Vim server and send {keys} to it.
364
365 --remote-silent
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200366 As --remote, but without the warning when no server is
Bram Moolenaar071d4272004-06-13 20:20:40 +0000367 found.
368
369 --remote-wait
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200370 As --remote, but Vim does not exit until the files have
Bram Moolenaar071d4272004-06-13 20:20:40 +0000371 been edited.
372
373 --remote-wait-silent
374 As --remote-wait, but without the warning when no server is
375 found.
376
377 --serverlist
378 List the names of all Vim servers that can be found.
379
380 --servername {name}
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200381 Use {name} as the server name. Used for the current Vim,
Bram Moolenaar071d4272004-06-13 20:20:40 +0000382 unless used with a --remote argument, then it's the name of
383 the server to connect to.
384
385 --socketid {id}
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200386 GTK GUI only: Use the GtkPlug mechanism to run gvim in an‐
387 other window.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000388
Bram Moolenaar3132cdd2020-11-05 20:41:49 +0100389 --startuptime {file}
390 During startup write timing messages to the file {fname}.
391
Bram Moolenaar071d4272004-06-13 20:20:40 +0000392 --version Print version information and exit.
393
Christian Brabandtce6fe842024-06-04 21:58:32 +0200394 --windowid {id}
395 Win32 GUI only: Make gvim try to use the window {id} as a
396 parent, so that it runs inside that window.
397
Bram Moolenaar071d4272004-06-13 20:20:40 +0000398ON-LINE HELP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200399 Type ":help" in Vim to get started. Type ":help subject" to get help
400 on a specific subject. For example: ":help ZZ" to get help for the
401 "ZZ" command. Use <Tab> and CTRL-D to complete subjects (":help cmd‐
402 line-completion"). Tags are present to jump from one place to another
Bram Moolenaar071d4272004-06-13 20:20:40 +0000403 (sort of hypertext links, see ":help"). All documentation files can be
404 viewed in this way, for example ":help syntax.txt".
405
406FILES
Christian Brabandtce6fe842024-06-04 21:58:32 +0200407 /usr/local/share/vim/vim??/doc/*.txt
408 The Vim documentation files. Use ":help doc-file-list"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000409 to get the complete list.
Christian Brabandtce6fe842024-06-04 21:58:32 +0200410 vim?? is short version number, like vim91 for Vim 9.1
Bram Moolenaar071d4272004-06-13 20:20:40 +0000411
Christian Brabandtce6fe842024-06-04 21:58:32 +0200412 /usr/local/share/vim/vim??/doc/tags
413 The tags file used for finding information in the docu‐
Bram Moolenaar071d4272004-06-13 20:20:40 +0000414 mentation files.
415
Christian Brabandtce6fe842024-06-04 21:58:32 +0200416 /usr/local/share/vim/vim??/syntax/syntax.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000417 System wide syntax initializations.
418
Christian Brabandtce6fe842024-06-04 21:58:32 +0200419 /usr/local/share/vim/vim??/syntax/*.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000420 Syntax files for various languages.
421
Christian Brabandtce6fe842024-06-04 21:58:32 +0200422 /usr/local/share/vim/vimrc
Bram Moolenaar071d4272004-06-13 20:20:40 +0000423 System wide Vim initializations.
424
Christian Brabandtce6fe842024-06-04 21:58:32 +0200425 ~/.vimrc, ~/.vim/vimrc, $XDG_CONFIG_HOME/vim/vimrc
426 Your personal Vim initializations (first one found is
427 used).
Bram Moolenaar05159a02005-02-26 23:04:13 +0000428
Christian Brabandtce6fe842024-06-04 21:58:32 +0200429 /usr/local/share/vim/gvimrc
Bram Moolenaar071d4272004-06-13 20:20:40 +0000430 System wide gvim initializations.
431
Christian Brabandtce6fe842024-06-04 21:58:32 +0200432 ~/.gvimrc, ~/.vim/gvimrc, $XDG_CONFIG_HOME/vim/gvimrc
433 Your personal gvim initializations (first one found is
434 used).
Bram Moolenaar05159a02005-02-26 23:04:13 +0000435
Christian Brabandtce6fe842024-06-04 21:58:32 +0200436 /usr/local/share/vim/vim??/optwin.vim
437 Script used for the ":options" command, a nice way to
Bram Moolenaar071d4272004-06-13 20:20:40 +0000438 view and set options.
439
Christian Brabandtce6fe842024-06-04 21:58:32 +0200440 /usr/local/share/vim/vim??/menu.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000441 System wide menu initializations for gvim.
442
Christian Brabandtce6fe842024-06-04 21:58:32 +0200443 /usr/local/share/vim/vim??/bugreport.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000444 Script to generate a bug report. See ":help bugs".
445
Christian Brabandtce6fe842024-06-04 21:58:32 +0200446 /usr/local/share/vim/vim??/filetype.vim
447 Script to detect the type of a file by its name. See
Bram Moolenaar071d4272004-06-13 20:20:40 +0000448 ":help 'filetype'".
449
Christian Brabandtce6fe842024-06-04 21:58:32 +0200450 /usr/local/share/vim/vim??/scripts.vim
451 Script to detect the type of a file by its contents.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000452 See ":help 'filetype'".
453
Christian Brabandtce6fe842024-06-04 21:58:32 +0200454 /usr/local/share/vim/vim??/print/*.ps
Bram Moolenaar071d4272004-06-13 20:20:40 +0000455 Files used for PostScript printing.
456
457 For recent info read the VIM home page:
458 <URL:http://www.vim.org/>
459
460SEE ALSO
461 vimtutor(1)
462
463AUTHOR
464 Most of Vim was made by Bram Moolenaar, with a lot of help from others.
465 See ":help credits" in Vim.
Christian Brabandtce6fe842024-06-04 21:58:32 +0200466 Vim is based on Stevie, worked on by: Tim Thompson, Tony Andrews and
Bram Moolenaar86ae7202015-07-10 19:31:35 +0200467 G.R. (Fred) Walter. Although hardly any of the original code remains.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000468
469BUGS
470 Probably. See ":help todo" for a list of known problems.
471
Christian Brabandtce6fe842024-06-04 21:58:32 +0200472 Note that a number of things that may be regarded as bugs by some, are
473 in fact caused by a too-faithful reproduction of Vi's behaviour. And
474 if you think other things are bugs "because Vi does it differently",
475 you should take a closer look at the vi_diff.txt file (or type :help
476 vi_diff.txt when in Vim). Also have a look at the 'compatible' and
Bram Moolenaar071d4272004-06-13 20:20:40 +0000477 'cpoptions' options.
478
479
480
Christian Brabandtce6fe842024-06-04 21:58:32 +0200481 2024 Jun 04 VIM(1)