blob: efef7bb7cc93b47618deec1c63bc7c39ebc2aaa6 [file] [log] [blame]
RestorerZ81b62dd2024-08-15 21:39:33 +02001.TH VIM 1 "2024 Aug 12"
Bram Moolenaar071d4272004-06-13 20:20:40 +00002.SH NAME
Bram Moolenaar1ccd8ff2017-08-11 19:50:37 +02003vim \- Vi IMproved, a programmer's text editor
Bram Moolenaar071d4272004-06-13 20:20:40 +00004.SH SYNOPSIS
5.br
6.B vim
7[options] [file ..]
8.br
9.B vim
Bram Moolenaar4317d9b2005-03-18 20:25:31 +000010[options] \-
Bram Moolenaar071d4272004-06-13 20:20:40 +000011.br
12.B vim
13[options] \-t tag
14.br
15.B vim
16[options] \-q [errorfile]
17.PP
18.br
19.B ex
20.br
21.B view
22.br
23.B gvim
24.B gview
25.B evim
26.B eview
27.br
28.B rvim
29.B rview
30.B rgvim
31.B rgview
32.SH DESCRIPTION
33.B Vim
34is a text editor that is upwards compatible to Vi.
35It can be used to edit all kinds of plain text.
36It is especially useful for editing programs.
37.PP
38There are a lot of enhancements above Vi: multi level undo,
39multi windows and buffers, syntax highlighting, command line
40editing, filename completion, on-line help, visual selection, etc..
41See ":help vi_diff.txt" for a summary of the differences between
42.B Vim
43and Vi.
44.PP
45While running
46.B Vim
47a lot of help can be obtained from the on-line help system, with the ":help"
48command.
49See the ON-LINE HELP section below.
50.PP
51Most often
52.B Vim
53is started to edit a single file with the command
54.PP
55 vim file
56.PP
57More generally
58.B Vim
59is started with:
60.PP
61 vim [options] [filelist]
62.PP
63If the filelist is missing, the editor will start with an empty buffer.
64Otherwise exactly one out of the following four may be used to choose one or
65more files to be edited.
66.TP 12
67file ..
68A list of filenames.
69The first one will be the current file and read into the buffer.
70The cursor will be positioned on the first line of the buffer.
71You can get to the other files with the ":next" command.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +000072To edit a file that starts with a dash, precede the filelist with "\-\-".
Bram Moolenaar071d4272004-06-13 20:20:40 +000073.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +000074\-
Bram Moolenaar071d4272004-06-13 20:20:40 +000075The file to edit is read from stdin. Commands are read from stderr, which
76should be a tty.
77.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +000078\-t {tag}
Bram Moolenaar071d4272004-06-13 20:20:40 +000079The file to edit and the initial cursor position depends on a "tag", a sort
80of goto label.
81{tag} is looked up in the tags file, the associated file becomes the current
82file and the associated command is executed.
83Mostly this is used for C programs, in which case {tag} could be a function
84name.
85The effect is that the file containing that function becomes the current file
86and the cursor is positioned on the start of the function.
Bram Moolenaar3991dab2006-03-27 17:01:56 +000087See ":help tag\-commands".
Bram Moolenaar071d4272004-06-13 20:20:40 +000088.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +000089\-q [errorfile]
Bram Moolenaar071d4272004-06-13 20:20:40 +000090Start in quickFix mode.
91The file [errorfile] is read and the first error is displayed.
92If [errorfile] is omitted, the filename is obtained from the 'errorfile'
93option (defaults to "AztecC.Err" for the Amiga, "errors.err" on other
94systems).
95Further errors can be jumped to with the ":cn" command.
96See ":help quickfix".
97.PP
98.B Vim
99behaves differently, depending on the name of the command (the executable may
100still be the same file).
101.TP 10
102vim
103The "normal" way, everything is default.
104.TP
105ex
106Start in Ex mode.
107Go to Normal mode with the ":vi" command.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000108Can also be done with the "\-e" argument.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000109.TP
110view
Bram Moolenaarfd358112018-07-07 23:21:31 +0200111Start in read-only mode. You will be protected from writing the files.
112Can also be done with the "\-R" argument.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000113.TP
114gvim gview
115The GUI version.
116Starts a new window.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000117Can also be done with the "\-g" argument.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000118.TP
119evim eview
120The GUI version in easy mode.
121Starts a new window.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000122Can also be done with the "\-y" argument.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000123.TP
124rvim rview rgvim rgview
125Like the above, but with restrictions. It will not be possible to start shell
126commands, or suspend
127.B Vim.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000128Can also be done with the "\-Z" argument.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000129.SH OPTIONS
130The options may be given in any order, before or after filenames.
131Options without an argument can be combined after a single dash.
132.TP 12
133+[num]
134For the first file the cursor will be positioned on line "num".
135If "num" is missing, the cursor will be positioned on the last line.
136.TP
137+/{pat}
Bram Moolenaar8a94d872015-01-25 13:02:57 +0100138For the first file the cursor will be positioned in the line with the
Bram Moolenaar071d4272004-06-13 20:20:40 +0000139first occurrence of {pat}.
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000140See ":help search\-pattern" for the available search patterns.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000141.TP
142+{command}
143.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000144\-c {command}
Bram Moolenaarfd358112018-07-07 23:21:31 +0200145{command} will be executed after the first file has been read.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000146{command} is interpreted as an Ex command.
147If the {command} contains spaces it must be enclosed in double quotes (this
148depends on the shell that is used).
Bram Moolenaar2547aa92020-07-26 17:00:44 +0200149Example: vim "+set si" main.c
Bram Moolenaar071d4272004-06-13 20:20:40 +0000150.br
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000151Note: You can use up to 10 "+" or "\-c" commands.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000152.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000153\-A
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154If
155.B Vim
156has been compiled with ARABIC support for editing right-to-left
157oriented files and Arabic keyboard mapping, this option starts
158.B Vim
159in Arabic mode, i.e. 'arabic' is set. Otherwise an error
160message is given and
161.B Vim
162aborts.
163.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000164\-b
Bram Moolenaar071d4272004-06-13 20:20:40 +0000165Binary mode.
166A few options will be set that makes it possible to edit a binary or
167executable file.
168.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000169\-C
Bram Moolenaar071d4272004-06-13 20:20:40 +0000170Compatible. Set the 'compatible' option.
171This will make
172.B Vim
173behave mostly like Vi, even though a .vimrc file exists.
174.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000175\-d
Bram Moolenaar071d4272004-06-13 20:20:40 +0000176Start in diff mode.
Bram Moolenaar2346a632021-06-13 19:02:49 +0200177There should between two to eight file name arguments.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178.B Vim
179will open all the files and show differences between them.
180Works like vimdiff(1).
181.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200182\-d {device}, \-dev {device}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000183Open {device} for use as a terminal.
184Only on the Amiga.
185Example:
186"\-d con:20/30/600/150".
187.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000188\-D
Bram Moolenaar071d4272004-06-13 20:20:40 +0000189Debugging. Go to debugging mode when executing the first command from a
190script.
191.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000192\-e
Bram Moolenaar071d4272004-06-13 20:20:40 +0000193Start
194.B Vim
195in Ex mode, just like the executable was called "ex".
196.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000197\-E
Bram Moolenaar071d4272004-06-13 20:20:40 +0000198Start
199.B Vim
200in improved Ex mode, just like the executable was called "exim".
201.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000202\-f
Bram Moolenaar071d4272004-06-13 20:20:40 +0000203Foreground. For the GUI version,
204.B Vim
205will not fork and detach from the shell it was started in.
206On the Amiga,
207.B Vim
208is not restarted to open a new window.
209This option should be used when
210.B Vim
211is executed by a program that will wait for the edit
212session to finish (e.g. mail).
213On the Amiga the ":sh" and ":!" commands will not work.
214.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000215\-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000216If
217.B Vim
218has been compiled with FKMAP support for editing right-to-left
219oriented files and Farsi keyboard mapping, this option starts
220.B Vim
221in Farsi mode, i.e. 'fkmap' and 'rightleft' are set.
222Otherwise an error message is given and
223.B Vim
224aborts.
RestorerZ81b62dd2024-08-15 21:39:33 +0200225.br
226Note: Farsi support has been removed in patch 8.1.0932.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000227.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000228\-g
Bram Moolenaar071d4272004-06-13 20:20:40 +0000229If
230.B Vim
231has been compiled with GUI support, this option enables the GUI.
232If no GUI support was compiled in, an error message is given and
233.B Vim
234aborts.
235.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000236\-H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000237If
238.B Vim
239has been compiled with RIGHTLEFT support for editing right-to-left
240oriented files and Hebrew keyboard mapping, this option starts
241.B Vim
242in Hebrew mode, i.e. 'hkmap' and 'rightleft' are set.
243Otherwise an error message is given and
244.B Vim
245aborts.
246.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000247\-i {viminfo}
Bram Moolenaar56c860c2019-08-17 20:09:31 +0200248Specifies the filename to use when reading or writing the viminfo file,
Bram Moolenaar071d4272004-06-13 20:20:40 +0000249instead of the default "~/.viminfo".
250This can also be used to skip the use of the .viminfo file, by giving the name
251"NONE".
252.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000253\-l
Bram Moolenaar071d4272004-06-13 20:20:40 +0000254Lisp mode.
255Sets the 'lisp' and 'showmatch' options on.
256.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200257\-L
258Same as \-r.
259.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000260\-m
Bram Moolenaar071d4272004-06-13 20:20:40 +0000261Modifying files is disabled.
262Resets the 'write' option.
263You can still modify the buffer, but writing a file is not possible.
264.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000265\-M
Bram Moolenaar071d4272004-06-13 20:20:40 +0000266Modifications not allowed. The 'modifiable' and 'write' options will be unset,
267so that changes are not allowed and files can not be written. Note that these
268options can be set to enable making modifications.
269.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000270\-n
Bram Moolenaar071d4272004-06-13 20:20:40 +0000271No swap file will be used.
272Recovery after a crash will be impossible.
273Handy if you want to edit a file on a very slow medium (e.g. floppy).
274Can also be done with ":set uc=0".
275Can be undone with ":set uc=200".
276.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200277\-N
278No-compatible mode. Resets the 'compatible' option.
279This will make
280.B Vim
281behave a bit better, but less Vi compatible, even though a .vimrc file does
282not exist.
283.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000284\-nb
Bram Moolenaar071d4272004-06-13 20:20:40 +0000285Become an editor server for NetBeans. See the docs for details.
286.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000287\-o[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000288Open N windows stacked.
289When N is omitted, open one window for each file.
290.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000291\-O[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000292Open N windows side by side.
293When N is omitted, open one window for each file.
294.TP
Bram Moolenaarc17ef8e2006-03-25 21:48:58 +0000295\-p[N]
296Open N tab pages.
297When N is omitted, open one tab page for each file.
298.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200299\-P {parent-title}
300Win32 GUI only: Specify the title of the parent application. When possible, Vim
301will run in an MDI window inside the application. {parent-title} must appear in
302the window title of the parent application. Make sure that it is specific
303enough. Note that the implementation is still primitive. It won't work with
304all applications and the menu doesn't work.
305.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200306\-r
307List swap files, with information about using them for recovery.
308.TP
309\-r {file}
310Recovery mode.
311The swap file is used to recover a crashed editing session.
312The swap file is a file with the same filename as the text file with ".swp"
313appended.
314See ":help recovery".
315.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000316\-R
Bram Moolenaar071d4272004-06-13 20:20:40 +0000317Read-only mode.
318The 'readonly' option will be set.
Bram Moolenaar03413f42016-04-12 21:07:15 +0200319You can still edit the buffer, but will be prevented from accidentally
Bram Moolenaar071d4272004-06-13 20:20:40 +0000320overwriting a file.
321If you do want to overwrite a file, add an exclamation mark to the Ex command,
322as in ":w!".
Bram Moolenaar24a98a02017-09-27 22:23:55 +0200323The \-R option also implies the \-n option (see above).
Bram Moolenaar071d4272004-06-13 20:20:40 +0000324The 'readonly' option can be reset with ":set noro".
325See ":help 'readonly'".
326.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000327\-s
328Silent mode. Only when started as "Ex" or when the "\-e" option was given
329before the "\-s" option.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000330.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000331\-s {scriptin}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000332The script file {scriptin} is read.
333The characters in the file are interpreted as if you had typed them.
334The same can be done with the command ":source! {scriptin}".
335If the end of the file is reached before the editor exits, further characters
336are read from the keyboard.
337.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200338\-S {file}
339{file} will be sourced after the first file has been read.
340This is equivalent to \-c "source {file}".
341{file} cannot start with '\-'.
342If {file} is omitted "Session.vim" is used (only works when \-S is the last
343argument).
344.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000345\-T {terminal}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000346Tells
347.B Vim
348the name of the terminal you are using.
349Only required when the automatic way doesn't work.
Bram Moolenaarfd358112018-07-07 23:21:31 +0200350Should be a terminal known to
Bram Moolenaar071d4272004-06-13 20:20:40 +0000351.B Vim
352(builtin) or defined in the termcap or terminfo file.
353.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000354\-u {vimrc}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000355Use the commands in the file {vimrc} for initializations.
356All the other initializations are skipped.
357Use this to edit a special kind of files.
358It can also be used to skip all initializations by giving the name "NONE".
359See ":help initialization" within vim for more details.
360.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000361\-U {gvimrc}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000362Use the commands in the file {gvimrc} for GUI initializations.
363All the other GUI initializations are skipped.
364It can also be used to skip all GUI initializations by giving the name "NONE".
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000365See ":help gui\-init" within vim for more details.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000366.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200367\-v
368Start
369.B Vim
370in Vi mode, just like the executable was called "vi". This only has effect
371when the executable is called "ex".
372.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000373\-V[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000374Verbose. Give messages about which files are sourced and for reading and
375writing a viminfo file. The optional number N is the value for 'verbose'.
376Default is 10.
377.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200378\-V[N]{filename}
379Like \-V and set 'verbosefile' to {filename}. The result is that messages are
380not displayed but written to the file {filename}. {filename} must not start
381with a digit.
382.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200383\-w{number}
384Set the 'window' option to {number}.
385.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000386\-w {scriptout}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000387All the characters that you type are recorded in the file
388{scriptout}, until you exit
389.B Vim.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000390This is useful if you want to create a script file to be used with "vim \-s" or
Bram Moolenaar071d4272004-06-13 20:20:40 +0000391":source!".
392If the {scriptout} file exists, characters are appended.
393.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000394\-W {scriptout}
395Like \-w, but an existing file is overwritten.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000396.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000397\-x
Christian Brabandt15141202024-08-03 15:40:19 +0200398If
399.B Vim
400has been compiled with encryption support, use encryption when writing files.
401Will prompt for a crypt key.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000402.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000403\-X
Bram Moolenaar071d4272004-06-13 20:20:40 +0000404Don't connect to the X server. Shortens startup time in a terminal, but the
405window title and clipboard will not be used.
406.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000407\-y
Bram Moolenaar071d4272004-06-13 20:20:40 +0000408Start
409.B Vim
410in easy mode, just like the executable was called "evim" or "eview".
411Makes
412.B Vim
413behave like a click-and-type editor.
414.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000415\-Z
Bram Moolenaar071d4272004-06-13 20:20:40 +0000416Restricted mode. Works like the executable starts with "r".
417.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000418\-\-
Bram Moolenaar071d4272004-06-13 20:20:40 +0000419Denotes the end of the options.
420Arguments after this will be handled as a file name.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000421This can be used to edit a filename that starts with a '\-'.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000422.TP
Bram Moolenaar56994d22021-04-17 16:31:09 +0200423\-\-clean
424Do not use any personal configuration (vimrc, plugins, etc.). Useful to see if
425a problem reproduces with a clean Vim setup.
426.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200427\-\-cmd {command}
428Like using "\-c", but the command is executed just before
429processing any vimrc file.
430You can use up to 10 of these commands, independently from "\-c" commands.
431.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000432\-\-echo\-wid
Bram Moolenaar009b2592004-10-24 19:18:58 +0000433GTK GUI only: Echo the Window ID on stdout.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000434.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200435\-\-gui\-dialog\-file {name}
436When using the GUI, instead of showing a dialog, write the title and message of
437the dialog to file {name}. The file is created or appended to. Only useful
438for testing, to avoid that the test gets stuck on a dialog that can't be seen.
439Without the GUI the argument is ignored.
440.TP
441\-\-help, \-h, \-?
442Give a bit of help about the command line arguments and options.
443After this
444.B Vim
445exits.
446.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000447\-\-literal
Bram Moolenaar009b2592004-10-24 19:18:58 +0000448Take file name arguments literally, do not expand wildcards. This has no
449effect on Unix where the shell expands wildcards.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000450.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200451\-\-log {filename}
452If
453.B Vim
454has been compiled with eval and channel feature, start logging and write
455entries to {filename}. This works like calling
456.I ch_logfile({filename}, 'ao')
457very early during startup.
458.TP
459\-\-nofork
460Foreground. For the GUI version,
461.B Vim
462will not fork and detach from the shell it was started in.
463.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000464\-\-noplugin
465Skip loading plugins. Implied by \-u NONE.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000466.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200467\-\-not\-a\-term
468Tells
469.B Vim
470that the user knows that the input and/or output is not connected to a
471terminal. This will avoid the warning and the two second delay that would
472happen.
473.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000474\-\-remote
Bram Moolenaar071d4272004-06-13 20:20:40 +0000475Connect to a Vim server and make it edit the files given in the rest of the
476arguments. If no server is found a warning is given and the files are edited
477in the current Vim.
478.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000479\-\-remote\-expr {expr}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000480Connect to a Vim server, evaluate {expr} in it and print the result on stdout.
481.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000482\-\-remote\-send {keys}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000483Connect to a Vim server and send {keys} to it.
484.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000485\-\-remote\-silent
486As \-\-remote, but without the warning when no server is found.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000487.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000488\-\-remote\-wait
489As \-\-remote, but Vim does not exit until the files have been edited.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000490.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000491\-\-remote\-wait\-silent
492As \-\-remote\-wait, but without the warning when no server is found.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000493.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000494\-\-serverlist
Bram Moolenaar071d4272004-06-13 20:20:40 +0000495List the names of all Vim servers that can be found.
496.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000497\-\-servername {name}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000498Use {name} as the server name. Used for the current Vim, unless used with a
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000499\-\-remote argument, then it's the name of the server to connect to.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000500.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000501\-\-socketid {id}
RestorerZ81b62dd2024-08-15 21:39:33 +0200502GTK GUI only: Use the GtkPlug mechanism to run gVim in another window.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000503.TP
Bram Moolenaar3132cdd2020-11-05 20:41:49 +0100504\-\-startuptime {file}
505During startup write timing messages to the file {fname}.
506.TP
RestorerZ81b62dd2024-08-15 21:39:33 +0200507\-\-ttyfail
508When stdin or stdout is not a a terminal (tty) then exit right away.
509.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000510\-\-version
Bram Moolenaar071d4272004-06-13 20:20:40 +0000511Print version information and exit.
Christian Brabandtce6fe842024-06-04 21:58:32 +0200512.TP
513\-\-windowid {id}
RestorerZ81b62dd2024-08-15 21:39:33 +0200514Win32 GUI only: Make gVim try to use the window {id} as a parent, so that it
Christian Brabandtce6fe842024-06-04 21:58:32 +0200515runs inside that window.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000516.SH ON-LINE HELP
517Type ":help" in
518.B Vim
519to get started.
520Type ":help subject" to get help on a specific subject.
521For example: ":help ZZ" to get help for the "ZZ" command.
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000522Use <Tab> and CTRL-D to complete subjects (":help cmdline\-completion").
Bram Moolenaar071d4272004-06-13 20:20:40 +0000523Tags are present to jump from one place to another (sort of hypertext links,
524see ":help").
525All documentation files can be viewed in this way, for example
526":help syntax.txt".
527.SH FILES
528.TP 15
Christian Brabandtce6fe842024-06-04 21:58:32 +0200529/usr/local/share/vim/vim??/doc/*.txt
Bram Moolenaar071d4272004-06-13 20:20:40 +0000530The
531.B Vim
532documentation files.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000533Use ":help doc\-file\-list" to get the complete list.
Christian Brabandtce6fe842024-06-04 21:58:32 +0200534.br
535.I vim??
536is short version number, like vim91 for
537.B Vim 9.1
Bram Moolenaar071d4272004-06-13 20:20:40 +0000538.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200539/usr/local/share/vim/vim??/doc/tags
Bram Moolenaar071d4272004-06-13 20:20:40 +0000540The tags file used for finding information in the documentation files.
541.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200542/usr/local/share/vim/vim??/syntax/syntax.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000543System wide syntax initializations.
544.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200545/usr/local/share/vim/vim??/syntax/*.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000546Syntax files for various languages.
547.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200548/usr/local/share/vim/vimrc
Bram Moolenaar071d4272004-06-13 20:20:40 +0000549System wide
550.B Vim
551initializations.
552.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200553~/.vimrc, ~/.vim/vimrc, $XDG_CONFIG_HOME/vim/vimrc
Bram Moolenaar05159a02005-02-26 23:04:13 +0000554Your personal
555.B Vim
Christian Brabandtce6fe842024-06-04 21:58:32 +0200556initializations (first one found is used).
Bram Moolenaar05159a02005-02-26 23:04:13 +0000557.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200558/usr/local/share/vim/gvimrc
Bram Moolenaar071d4272004-06-13 20:20:40 +0000559System wide gvim initializations.
560.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200561~/.gvimrc, ~/.vim/gvimrc, $XDG_CONFIG_HOME/vim/gvimrc
RestorerZ81b62dd2024-08-15 21:39:33 +0200562Your personal
563.B gVim
564initializations (first one found is used).
Bram Moolenaar05159a02005-02-26 23:04:13 +0000565.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200566/usr/local/share/vim/vim??/optwin.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000567Script used for the ":options" command, a nice way to view and set options.
568.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200569/usr/local/share/vim/vim??/menu.vim
RestorerZ81b62dd2024-08-15 21:39:33 +0200570System wide menu initializations for
571.B gVim.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000572.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200573/usr/local/share/vim/vim??/bugreport.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000574Script to generate a bug report. See ":help bugs".
575.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200576/usr/local/share/vim/vim??/filetype.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000577Script to detect the type of a file by its name. See ":help 'filetype'".
578.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200579/usr/local/share/vim/vim??/scripts.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +0000580Script to detect the type of a file by its contents. See ":help 'filetype'".
581.TP
Christian Brabandtce6fe842024-06-04 21:58:32 +0200582/usr/local/share/vim/vim??/print/*.ps
Bram Moolenaar071d4272004-06-13 20:20:40 +0000583Files used for PostScript printing.
584.PP
585For recent info read the VIM home page:
586.br
587<URL:http://www.vim.org/>
588.SH SEE ALSO
589vimtutor(1)
590.SH AUTHOR
591Most of
592.B Vim
593was made by Bram Moolenaar, with a lot of help from others.
594See ":help credits" in
595.B Vim.
596.br
597.B Vim
598is based on Stevie, worked on by: Tim Thompson,
599Tony Andrews and G.R. (Fred) Walter.
600Although hardly any of the original code remains.
601.SH BUGS
602Probably.
603See ":help todo" for a list of known problems.
604.PP
605Note that a number of things that may be regarded as bugs by some, are in fact
606caused by a too-faithful reproduction of Vi's behaviour.
607And if you think other things are bugs "because Vi does it differently",
608you should take a closer look at the vi_diff.txt file (or type :help
609vi_diff.txt when in Vim).
610Also have a look at the 'compatible' and 'cpoptions' options.