blob: 820caa24f5ee6bfbe979b8d3244a4c674698478a [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
3vim \- Vi IMproved, a programmers text editor
4.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
111Start in read-only mode. You will be protected from writing the files. Can
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000112also 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}
138For the first file the cursor will be positioned on the
139first 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 Moolenaar071d4272004-06-13 20:20:40 +0000145{command} will be executed after the
146first file has been read.
147{command} is interpreted as an Ex command.
148If the {command} contains spaces it must be enclosed in double quotes (this
149depends on the shell that is used).
150Example: Vim "+set si" main.c
151.br
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000152Note: You can use up to 10 "+" or "\-c" commands.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000153.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000154\-S {file}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000155{file} will be sourced after the first file has been read.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000156This is equivalent to \-c "source {file}".
157{file} cannot start with '\-'.
158If {file} is omitted "Session.vim" is used (only works when \-S is the last
Bram Moolenaar071d4272004-06-13 20:20:40 +0000159argument).
160.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000161\-\-cmd {command}
162Like using "\-c", but the command is executed just before
Bram Moolenaar071d4272004-06-13 20:20:40 +0000163processing any vimrc file.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000164You can use up to 10 of these commands, independently from "\-c" commands.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000165.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000166\-A
Bram Moolenaar071d4272004-06-13 20:20:40 +0000167If
168.B Vim
169has been compiled with ARABIC support for editing right-to-left
170oriented files and Arabic keyboard mapping, this option starts
171.B Vim
172in Arabic mode, i.e. 'arabic' is set. Otherwise an error
173message is given and
174.B Vim
175aborts.
176.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000177\-b
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178Binary mode.
179A few options will be set that makes it possible to edit a binary or
180executable file.
181.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000182\-C
Bram Moolenaar071d4272004-06-13 20:20:40 +0000183Compatible. Set the 'compatible' option.
184This will make
185.B Vim
186behave mostly like Vi, even though a .vimrc file exists.
187.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000188\-d
Bram Moolenaar071d4272004-06-13 20:20:40 +0000189Start in diff mode.
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000190There should be two, three or four file name arguments.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000191.B Vim
192will open all the files and show differences between them.
193Works like vimdiff(1).
194.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000195\-d {device}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000196Open {device} for use as a terminal.
197Only on the Amiga.
198Example:
199"\-d con:20/30/600/150".
200.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000201\-D
Bram Moolenaar071d4272004-06-13 20:20:40 +0000202Debugging. Go to debugging mode when executing the first command from a
203script.
204.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000205\-e
Bram Moolenaar071d4272004-06-13 20:20:40 +0000206Start
207.B Vim
208in Ex mode, just like the executable was called "ex".
209.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000210\-E
Bram Moolenaar071d4272004-06-13 20:20:40 +0000211Start
212.B Vim
213in improved Ex mode, just like the executable was called "exim".
214.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000215\-f
Bram Moolenaar071d4272004-06-13 20:20:40 +0000216Foreground. For the GUI version,
217.B Vim
218will not fork and detach from the shell it was started in.
219On the Amiga,
220.B Vim
221is not restarted to open a new window.
222This option should be used when
223.B Vim
224is executed by a program that will wait for the edit
225session to finish (e.g. mail).
226On the Amiga the ":sh" and ":!" commands will not work.
227.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000228\-\-nofork
Bram Moolenaar071d4272004-06-13 20:20:40 +0000229Foreground. For the GUI version,
230.B Vim
231will not fork and detach from the shell it was started in.
232.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000233\-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000234If
235.B Vim
236has been compiled with FKMAP support for editing right-to-left
237oriented files and Farsi keyboard mapping, this option starts
238.B Vim
239in Farsi mode, i.e. 'fkmap' and 'rightleft' are set.
240Otherwise an error message is given and
241.B Vim
242aborts.
243.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000244\-g
Bram Moolenaar071d4272004-06-13 20:20:40 +0000245If
246.B Vim
247has been compiled with GUI support, this option enables the GUI.
248If no GUI support was compiled in, an error message is given and
249.B Vim
250aborts.
251.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000252\-h
Bram Moolenaar071d4272004-06-13 20:20:40 +0000253Give a bit of help about the command line arguments and options.
254After this
255.B Vim
256exits.
257.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000258\-H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000259If
260.B Vim
261has been compiled with RIGHTLEFT support for editing right-to-left
262oriented files and Hebrew keyboard mapping, this option starts
263.B Vim
264in Hebrew mode, i.e. 'hkmap' and 'rightleft' are set.
265Otherwise an error message is given and
266.B Vim
267aborts.
268.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000269\-i {viminfo}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000270When using the viminfo file is enabled, this option sets the filename to use,
271instead of the default "~/.viminfo".
272This can also be used to skip the use of the .viminfo file, by giving the name
273"NONE".
274.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000275\-L
276Same as \-r.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000277.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000278\-l
Bram Moolenaar071d4272004-06-13 20:20:40 +0000279Lisp mode.
280Sets the 'lisp' and 'showmatch' options on.
281.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000282\-m
Bram Moolenaar071d4272004-06-13 20:20:40 +0000283Modifying files is disabled.
284Resets the 'write' option.
285You can still modify the buffer, but writing a file is not possible.
286.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000287\-M
Bram Moolenaar071d4272004-06-13 20:20:40 +0000288Modifications not allowed. The 'modifiable' and 'write' options will be unset,
289so that changes are not allowed and files can not be written. Note that these
290options can be set to enable making modifications.
291.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000292\-N
Bram Moolenaar071d4272004-06-13 20:20:40 +0000293No-compatible mode. Reset the 'compatible' option.
294This will make
295.B Vim
296behave a bit better, but less Vi compatible, even though a .vimrc file does
297not exist.
298.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000299\-n
Bram Moolenaar071d4272004-06-13 20:20:40 +0000300No swap file will be used.
301Recovery after a crash will be impossible.
302Handy if you want to edit a file on a very slow medium (e.g. floppy).
303Can also be done with ":set uc=0".
304Can be undone with ":set uc=200".
305.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000306\-nb
Bram Moolenaar071d4272004-06-13 20:20:40 +0000307Become an editor server for NetBeans. See the docs for details.
308.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000309\-o[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000310Open N windows stacked.
311When N is omitted, open one window for each file.
312.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000313\-O[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000314Open N windows side by side.
315When N is omitted, open one window for each file.
316.TP
Bram Moolenaarc17ef8e2006-03-25 21:48:58 +0000317\-p[N]
318Open N tab pages.
319When N is omitted, open one tab page for each file.
320.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000321\-R
Bram Moolenaar071d4272004-06-13 20:20:40 +0000322Read-only mode.
323The 'readonly' option will be set.
324You can still edit the buffer, but will be prevented from accidently
325overwriting a file.
326If you do want to overwrite a file, add an exclamation mark to the Ex command,
327as in ":w!".
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000328The \-R option also implies the \-n option (see below).
Bram Moolenaar071d4272004-06-13 20:20:40 +0000329The 'readonly' option can be reset with ":set noro".
330See ":help 'readonly'".
331.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000332\-r
Bram Moolenaar071d4272004-06-13 20:20:40 +0000333List swap files, with information about using them for recovery.
334.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000335\-r {file}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000336Recovery mode.
337The swap file is used to recover a crashed editing session.
338The swap file is a file with the same filename as the text file with ".swp"
339appended.
340See ":help recovery".
341.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000342\-s
343Silent mode. Only when started as "Ex" or when the "\-e" option was given
344before the "\-s" option.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000345.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000346\-s {scriptin}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000347The script file {scriptin} is read.
348The characters in the file are interpreted as if you had typed them.
349The same can be done with the command ":source! {scriptin}".
350If the end of the file is reached before the editor exits, further characters
351are read from the keyboard.
352.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000353\-T {terminal}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000354Tells
355.B Vim
356the name of the terminal you are using.
357Only required when the automatic way doesn't work.
358Should be a terminal known
359to
360.B Vim
361(builtin) or defined in the termcap or terminfo file.
362.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000363\-u {vimrc}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000364Use the commands in the file {vimrc} for initializations.
365All the other initializations are skipped.
366Use this to edit a special kind of files.
367It can also be used to skip all initializations by giving the name "NONE".
368See ":help initialization" within vim for more details.
369.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000370\-U {gvimrc}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000371Use the commands in the file {gvimrc} for GUI initializations.
372All the other GUI initializations are skipped.
373It can also be used to skip all GUI initializations by giving the name "NONE".
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000374See ":help gui\-init" within vim for more details.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000375.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000376\-V[N]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000377Verbose. Give messages about which files are sourced and for reading and
378writing a viminfo file. The optional number N is the value for 'verbose'.
379Default is 10.
380.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000381\-v
Bram Moolenaar071d4272004-06-13 20:20:40 +0000382Start
383.B Vim
384in Vi mode, just like the executable was called "vi". This only has effect
385when the executable is called "ex".
386.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000387\-w {scriptout}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000388All the characters that you type are recorded in the file
389{scriptout}, until you exit
390.B Vim.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000391This is useful if you want to create a script file to be used with "vim \-s" or
Bram Moolenaar071d4272004-06-13 20:20:40 +0000392":source!".
393If the {scriptout} file exists, characters are appended.
394.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000395\-W {scriptout}
396Like \-w, but an existing file is overwritten.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000397.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000398\-x
Bram Moolenaar009b2592004-10-24 19:18:58 +0000399Use encryption when writing files. Will prompt for a crypt key.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000400.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000401\-X
Bram Moolenaar071d4272004-06-13 20:20:40 +0000402Don't connect to the X server. Shortens startup time in a terminal, but the
403window title and clipboard will not be used.
404.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000405\-y
Bram Moolenaar071d4272004-06-13 20:20:40 +0000406Start
407.B Vim
408in easy mode, just like the executable was called "evim" or "eview".
409Makes
410.B Vim
411behave like a click-and-type editor.
412.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000413\-Z
Bram Moolenaar071d4272004-06-13 20:20:40 +0000414Restricted mode. Works like the executable starts with "r".
415.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000416\-\-
Bram Moolenaar071d4272004-06-13 20:20:40 +0000417Denotes the end of the options.
418Arguments after this will be handled as a file name.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000419This can be used to edit a filename that starts with a '\-'.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000420.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000421\-\-echo\-wid
Bram Moolenaar009b2592004-10-24 19:18:58 +0000422GTK GUI only: Echo the Window ID on stdout.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000423.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000424\-\-help
425Give a help message and exit, just like "\-h".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000426.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000427\-\-literal
Bram Moolenaar009b2592004-10-24 19:18:58 +0000428Take file name arguments literally, do not expand wildcards. This has no
429effect on Unix where the shell expands wildcards.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000430.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000431\-\-noplugin
432Skip loading plugins. Implied by \-u NONE.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000433.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000434\-\-remote
Bram Moolenaar071d4272004-06-13 20:20:40 +0000435Connect to a Vim server and make it edit the files given in the rest of the
436arguments. If no server is found a warning is given and the files are edited
437in the current Vim.
438.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000439\-\-remote\-expr {expr}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000440Connect to a Vim server, evaluate {expr} in it and print the result on stdout.
441.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000442\-\-remote\-send {keys}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000443Connect to a Vim server and send {keys} to it.
444.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000445\-\-remote\-silent
446As \-\-remote, but without the warning when no server is found.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000447.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000448\-\-remote\-wait
449As \-\-remote, but Vim does not exit until the files have been edited.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000450.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000451\-\-remote\-wait\-silent
452As \-\-remote\-wait, but without the warning when no server is found.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000453.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000454\-\-serverlist
Bram Moolenaar071d4272004-06-13 20:20:40 +0000455List the names of all Vim servers that can be found.
456.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000457\-\-servername {name}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000458Use {name} as the server name. Used for the current Vim, unless used with a
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000459\-\-remote argument, then it's the name of the server to connect to.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000460.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000461\-\-socketid {id}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000462GTK GUI only: Use the GtkPlug mechanism to run gvim in another window.
463.TP
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000464\-\-version
Bram Moolenaar071d4272004-06-13 20:20:40 +0000465Print version information and exit.
466.SH ON-LINE HELP
467Type ":help" in
468.B Vim
469to get started.
470Type ":help subject" to get help on a specific subject.
471For example: ":help ZZ" to get help for the "ZZ" command.
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000472Use <Tab> and CTRL-D to complete subjects (":help cmdline\-completion").
Bram Moolenaar071d4272004-06-13 20:20:40 +0000473Tags are present to jump from one place to another (sort of hypertext links,
474see ":help").
475All documentation files can be viewed in this way, for example
476":help syntax.txt".
477.SH FILES
478.TP 15
479/usr/local/lib/vim/doc/*.txt
480The
481.B Vim
482documentation files.
Bram Moolenaar4317d9b2005-03-18 20:25:31 +0000483Use ":help doc\-file\-list" to get the complete list.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000484.TP
485/usr/local/lib/vim/doc/tags
486The tags file used for finding information in the documentation files.
487.TP
488/usr/local/lib/vim/syntax/syntax.vim
489System wide syntax initializations.
490.TP
491/usr/local/lib/vim/syntax/*.vim
492Syntax files for various languages.
493.TP
494/usr/local/lib/vim/vimrc
495System wide
496.B Vim
497initializations.
498.TP
Bram Moolenaar05159a02005-02-26 23:04:13 +0000499~/.vimrc
500Your personal
501.B Vim
502initializations.
503.TP
Bram Moolenaar071d4272004-06-13 20:20:40 +0000504/usr/local/lib/vim/gvimrc
505System wide gvim initializations.
506.TP
Bram Moolenaar05159a02005-02-26 23:04:13 +0000507~/.gvimrc
508Your personal gvim initializations.
509.TP
Bram Moolenaar071d4272004-06-13 20:20:40 +0000510/usr/local/lib/vim/optwin.vim
511Script used for the ":options" command, a nice way to view and set options.
512.TP
513/usr/local/lib/vim/menu.vim
514System wide menu initializations for gvim.
515.TP
516/usr/local/lib/vim/bugreport.vim
517Script to generate a bug report. See ":help bugs".
518.TP
519/usr/local/lib/vim/filetype.vim
520Script to detect the type of a file by its name. See ":help 'filetype'".
521.TP
522/usr/local/lib/vim/scripts.vim
523Script to detect the type of a file by its contents. See ":help 'filetype'".
524.TP
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000525/usr/local/lib/vim/print/*.ps
Bram Moolenaar071d4272004-06-13 20:20:40 +0000526Files used for PostScript printing.
527.PP
528For recent info read the VIM home page:
529.br
530<URL:http://www.vim.org/>
531.SH SEE ALSO
532vimtutor(1)
533.SH AUTHOR
534Most of
535.B Vim
536was made by Bram Moolenaar, with a lot of help from others.
537See ":help credits" in
538.B Vim.
539.br
540.B Vim
541is based on Stevie, worked on by: Tim Thompson,
542Tony Andrews and G.R. (Fred) Walter.
543Although hardly any of the original code remains.
544.SH BUGS
545Probably.
546See ":help todo" for a list of known problems.
547.PP
548Note that a number of things that may be regarded as bugs by some, are in fact
549caused by a too-faithful reproduction of Vi's behaviour.
550And if you think other things are bugs "because Vi does it differently",
551you should take a closer look at the vi_diff.txt file (or type :help
552vi_diff.txt when in Vim).
553Also have a look at the 'compatible' and 'cpoptions' options.