blob: d19317d4dc0cba2061adfc3e90911f415a38d63d [file] [log] [blame]
Bram Moolenaar4c3f5362006-04-11 21:38:50 +00001.TH VIM 1 "2006 Apr 11"
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).
149Example: Vim "+set si" main.c
150.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\-S {file}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154{file} will be sourced after the first file has been read.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000155This is equivalent to \-c "source {file}".
156{file} cannot start with '\-'.
157If {file} is omitted "Session.vim" is used (only works when \-S is the last
Bram Moolenaar071d4272004-06-13 20:20:40 +0000158argument).
159.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000160\-\-cmd {command}
161Like using "\-c", but the command is executed just before
Bram Moolenaar071d4272004-06-13 20:20:40 +0000162processing any vimrc file.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000163You can use up to 10 of these commands, independently from "\-c" commands.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000164.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000165\-A
Bram Moolenaar071d4272004-06-13 20:20:40 +0000166If
167.B Vim
168has been compiled with ARABIC support for editing right-to-left
169oriented files and Arabic keyboard mapping, this option starts
170.B Vim
171in Arabic mode, i.e. 'arabic' is set. Otherwise an error
172message is given and
173.B Vim
174aborts.
175.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000176\-b
Bram Moolenaar071d4272004-06-13 20:20:40 +0000177Binary mode.
178A few options will be set that makes it possible to edit a binary or
179executable file.
180.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000181\-C
Bram Moolenaar071d4272004-06-13 20:20:40 +0000182Compatible. Set the 'compatible' option.
183This will make
184.B Vim
185behave mostly like Vi, even though a .vimrc file exists.
186.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000187\-d
Bram Moolenaar071d4272004-06-13 20:20:40 +0000188Start in diff mode.
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000189There should be two, three or four file name arguments.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000190.B Vim
191will open all the files and show differences between them.
192Works like vimdiff(1).
193.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000194\-d {device}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000195Open {device} for use as a terminal.
196Only on the Amiga.
197Example:
198"\-d con:20/30/600/150".
199.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000200\-D
Bram Moolenaar071d4272004-06-13 20:20:40 +0000201Debugging. Go to debugging mode when executing the first command from a
202script.
203.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000204\-e
Bram Moolenaar071d4272004-06-13 20:20:40 +0000205Start
206.B Vim
207in Ex mode, just like the executable was called "ex".
208.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000209\-E
Bram Moolenaar071d4272004-06-13 20:20:40 +0000210Start
211.B Vim
212in improved Ex mode, just like the executable was called "exim".
213.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000214\-f
Bram Moolenaar071d4272004-06-13 20:20:40 +0000215Foreground. For the GUI version,
216.B Vim
217will not fork and detach from the shell it was started in.
218On the Amiga,
219.B Vim
220is not restarted to open a new window.
221This option should be used when
222.B Vim
223is executed by a program that will wait for the edit
224session to finish (e.g. mail).
225On the Amiga the ":sh" and ":!" commands will not work.
226.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000227\-\-nofork
Bram Moolenaar071d4272004-06-13 20:20:40 +0000228Foreground. For the GUI version,
229.B Vim
230will not fork and detach from the shell it was started in.
231.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000232\-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000233If
234.B Vim
235has been compiled with FKMAP support for editing right-to-left
236oriented files and Farsi keyboard mapping, this option starts
237.B Vim
238in Farsi mode, i.e. 'fkmap' and 'rightleft' are set.
239Otherwise an error message is given and
240.B Vim
241aborts.
242.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000243\-g
Bram Moolenaar071d4272004-06-13 20:20:40 +0000244If
245.B Vim
246has been compiled with GUI support, this option enables the GUI.
247If no GUI support was compiled in, an error message is given and
248.B Vim
249aborts.
250.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000251\-h
Bram Moolenaar071d4272004-06-13 20:20:40 +0000252Give a bit of help about the command line arguments and options.
253After this
254.B Vim
255exits.
256.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000257\-H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000258If
259.B Vim
260has been compiled with RIGHTLEFT support for editing right-to-left
261oriented files and Hebrew keyboard mapping, this option starts
262.B Vim
263in Hebrew mode, i.e. 'hkmap' and 'rightleft' are set.
264Otherwise an error message is given and
265.B Vim
266aborts.
267.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000268\-i {viminfo}
Bram Moolenaar56c860c2019-08-17 20:09:31 +0200269Specifies the filename to use when reading or writing the viminfo file,
Bram Moolenaar071d4272004-06-13 20:20:40 +0000270instead of the default "~/.viminfo".
271This can also be used to skip the use of the .viminfo file, by giving the name
272"NONE".
273.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000274\-L
275Same as \-r.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000276.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000277\-l
Bram Moolenaar071d4272004-06-13 20:20:40 +0000278Lisp mode.
279Sets the 'lisp' and 'showmatch' options on.
280.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000281\-m
Bram Moolenaar071d4272004-06-13 20:20:40 +0000282Modifying files is disabled.
283Resets the 'write' option.
284You can still modify the buffer, but writing a file is not possible.
285.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000286\-M
Bram Moolenaar071d4272004-06-13 20:20:40 +0000287Modifications not allowed. The 'modifiable' and 'write' options will be unset,
288so that changes are not allowed and files can not be written. Note that these
289options can be set to enable making modifications.
290.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000291\-N
Bram Moolenaar56c860c2019-08-17 20:09:31 +0200292No-compatible mode. Resets the 'compatible' option.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000293This will make
294.B Vim
295behave a bit better, but less Vi compatible, even though a .vimrc file does
296not exist.
297.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000298\-n
Bram Moolenaar071d4272004-06-13 20:20:40 +0000299No swap file will be used.
300Recovery after a crash will be impossible.
301Handy if you want to edit a file on a very slow medium (e.g. floppy).
302Can also be done with ":set uc=0".
303Can be undone with ":set uc=200".
304.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000305\-nb
Bram Moolenaar071d4272004-06-13 20:20:40 +0000306Become an editor server for NetBeans. See the docs for details.
307.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000308\-o[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000309Open N windows stacked.
310When N is omitted, open one window for each file.
311.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000312\-O[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000313Open N windows side by side.
314When N is omitted, open one window for each file.
315.TP
Bram Moolenaarc17ef8e2006-03-25 21:48:58 +0000316\-p[N]
317Open N tab pages.
318When N is omitted, open one tab page for each file.
319.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000320\-R
Bram Moolenaar071d4272004-06-13 20:20:40 +0000321Read-only mode.
322The 'readonly' option will be set.
Bram Moolenaar03413f42016-04-12 21:07:15 +0200323You can still edit the buffer, but will be prevented from accidentally
Bram Moolenaar071d4272004-06-13 20:20:40 +0000324overwriting a file.
325If you do want to overwrite a file, add an exclamation mark to the Ex command,
326as in ":w!".
Bram Moolenaar24a98a02017-09-27 22:23:55 +0200327The \-R option also implies the \-n option (see above).
Bram Moolenaar071d4272004-06-13 20:20:40 +0000328The 'readonly' option can be reset with ":set noro".
329See ":help 'readonly'".
330.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000331\-r
Bram Moolenaar071d4272004-06-13 20:20:40 +0000332List swap files, with information about using them for recovery.
333.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000334\-r {file}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000335Recovery mode.
336The swap file is used to recover a crashed editing session.
337The swap file is a file with the same filename as the text file with ".swp"
338appended.
339See ":help recovery".
340.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000341\-s
342Silent mode. Only when started as "Ex" or when the "\-e" option was given
343before the "\-s" option.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000344.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000345\-s {scriptin}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000346The script file {scriptin} is read.
347The characters in the file are interpreted as if you had typed them.
348The same can be done with the command ":source! {scriptin}".
349If the end of the file is reached before the editor exits, further characters
350are read from the keyboard.
351.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000352\-T {terminal}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000353Tells
354.B Vim
355the name of the terminal you are using.
356Only required when the automatic way doesn't work.
Bram Moolenaarfd358112018-07-07 23:21:31 +0200357Should be a terminal known to
Bram Moolenaar071d4272004-06-13 20:20:40 +0000358.B Vim
359(builtin) or defined in the termcap or terminfo file.
360.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000361\-u {vimrc}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000362Use the commands in the file {vimrc} for initializations.
363All the other initializations are skipped.
364Use this to edit a special kind of files.
365It can also be used to skip all initializations by giving the name "NONE".
366See ":help initialization" within vim for more details.
367.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000368\-U {gvimrc}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000369Use the commands in the file {gvimrc} for GUI initializations.
370All the other GUI initializations are skipped.
371It can also be used to skip all GUI initializations by giving the name "NONE".
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000372See ":help gui\-init" within vim for more details.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000373.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000374\-V[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000375Verbose. Give messages about which files are sourced and for reading and
376writing a viminfo file. The optional number N is the value for 'verbose'.
377Default is 10.
378.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000379\-v
Bram Moolenaar071d4272004-06-13 20:20:40 +0000380Start
381.B Vim
382in Vi mode, just like the executable was called "vi". This only has effect
383when the executable is called "ex".
384.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000385\-w {scriptout}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000386All the characters that you type are recorded in the file
387{scriptout}, until you exit
388.B Vim.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000389This is useful if you want to create a script file to be used with "vim \-s" or
Bram Moolenaar071d4272004-06-13 20:20:40 +0000390":source!".
391If the {scriptout} file exists, characters are appended.
392.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000393\-W {scriptout}
394Like \-w, but an existing file is overwritten.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000395.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000396\-x
Bram Moolenaar009b2592004-10-24 19:18:58 +0000397Use encryption when writing files. Will prompt for a crypt key.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000398.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000399\-X
Bram Moolenaar071d4272004-06-13 20:20:40 +0000400Don't connect to the X server. Shortens startup time in a terminal, but the
401window title and clipboard will not be used.
402.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000403\-y
Bram Moolenaar071d4272004-06-13 20:20:40 +0000404Start
405.B Vim
406in easy mode, just like the executable was called "evim" or "eview".
407Makes
408.B Vim
409behave like a click-and-type editor.
410.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000411\-Z
Bram Moolenaar071d4272004-06-13 20:20:40 +0000412Restricted mode. Works like the executable starts with "r".
413.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000414\-\-
Bram Moolenaar071d4272004-06-13 20:20:40 +0000415Denotes the end of the options.
416Arguments after this will be handled as a file name.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000417This can be used to edit a filename that starts with a '\-'.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000418.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000419\-\-echo\-wid
Bram Moolenaar009b2592004-10-24 19:18:58 +0000420GTK GUI only: Echo the Window ID on stdout.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000421.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000422\-\-help
423Give a help message and exit, just like "\-h".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000424.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000425\-\-literal
Bram Moolenaar009b2592004-10-24 19:18:58 +0000426Take file name arguments literally, do not expand wildcards. This has no
427effect on Unix where the shell expands wildcards.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000428.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000429\-\-noplugin
430Skip loading plugins. Implied by \-u NONE.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000431.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000432\-\-remote
Bram Moolenaar071d4272004-06-13 20:20:40 +0000433Connect to a Vim server and make it edit the files given in the rest of the
434arguments. If no server is found a warning is given and the files are edited
435in the current Vim.
436.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000437\-\-remote\-expr {expr}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000438Connect to a Vim server, evaluate {expr} in it and print the result on stdout.
439.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000440\-\-remote\-send {keys}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000441Connect to a Vim server and send {keys} to it.
442.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000443\-\-remote\-silent
444As \-\-remote, but without the warning when no server is found.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000445.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000446\-\-remote\-wait
447As \-\-remote, but Vim does not exit until the files have been edited.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000448.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000449\-\-remote\-wait\-silent
450As \-\-remote\-wait, but without the warning when no server is found.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000451.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000452\-\-serverlist
Bram Moolenaar071d4272004-06-13 20:20:40 +0000453List the names of all Vim servers that can be found.
454.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000455\-\-servername {name}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000456Use {name} as the server name. Used for the current Vim, unless used with a
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000457\-\-remote argument, then it's the name of the server to connect to.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000458.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000459\-\-socketid {id}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000460GTK GUI only: Use the GtkPlug mechanism to run gvim in another window.
461.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000462\-\-version
Bram Moolenaar071d4272004-06-13 20:20:40 +0000463Print version information and exit.
464.SH ON-LINE HELP
465Type ":help" in
466.B Vim
467to get started.
468Type ":help subject" to get help on a specific subject.
469For example: ":help ZZ" to get help for the "ZZ" command.
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000470Use <Tab> and CTRL-D to complete subjects (":help cmdline\-completion").
Bram Moolenaar071d4272004-06-13 20:20:40 +0000471Tags are present to jump from one place to another (sort of hypertext links,
472see ":help").
473All documentation files can be viewed in this way, for example
474":help syntax.txt".
475.SH FILES
476.TP 15
477/usr/local/lib/vim/doc/*.txt
478The
479.B Vim
480documentation files.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000481Use ":help doc\-file\-list" to get the complete list.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000482.TP
483/usr/local/lib/vim/doc/tags
484The tags file used for finding information in the documentation files.
485.TP
486/usr/local/lib/vim/syntax/syntax.vim
487System wide syntax initializations.
488.TP
489/usr/local/lib/vim/syntax/*.vim
490Syntax files for various languages.
491.TP
492/usr/local/lib/vim/vimrc
493System wide
494.B Vim
495initializations.
496.TP
Bram Moolenaar05159a02005-02-26 23:04:13 +0000497~/.vimrc
498Your personal
499.B Vim
500initializations.
501.TP
Bram Moolenaar071d4272004-06-13 20:20:40 +0000502/usr/local/lib/vim/gvimrc
503System wide gvim initializations.
504.TP
Bram Moolenaar05159a02005-02-26 23:04:13 +0000505~/.gvimrc
506Your personal gvim initializations.
507.TP
Bram Moolenaar071d4272004-06-13 20:20:40 +0000508/usr/local/lib/vim/optwin.vim
509Script used for the ":options" command, a nice way to view and set options.
510.TP
511/usr/local/lib/vim/menu.vim
512System wide menu initializations for gvim.
513.TP
514/usr/local/lib/vim/bugreport.vim
515Script to generate a bug report. See ":help bugs".
516.TP
517/usr/local/lib/vim/filetype.vim
518Script to detect the type of a file by its name. See ":help 'filetype'".
519.TP
520/usr/local/lib/vim/scripts.vim
521Script to detect the type of a file by its contents. See ":help 'filetype'".
522.TP
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000523/usr/local/lib/vim/print/*.ps
Bram Moolenaar071d4272004-06-13 20:20:40 +0000524Files used for PostScript printing.
525.PP
526For recent info read the VIM home page:
527.br
528<URL:http://www.vim.org/>
529.SH SEE ALSO
530vimtutor(1)
531.SH AUTHOR
532Most of
533.B Vim
534was made by Bram Moolenaar, with a lot of help from others.
535See ":help credits" in
536.B Vim.
537.br
538.B Vim
539is based on Stevie, worked on by: Tim Thompson,
540Tony Andrews and G.R. (Fred) Walter.
541Although hardly any of the original code remains.
542.SH BUGS
543Probably.
544See ":help todo" for a list of known problems.
545.PP
546Note that a number of things that may be regarded as bugs by some, are in fact
547caused by a too-faithful reproduction of Vi's behaviour.
548And if you think other things are bugs "because Vi does it differently",
549you should take a closer look at the vi_diff.txt file (or type :help
550vi_diff.txt when in Vim).
551Also have a look at the 'compatible' and 'cpoptions' options.