blob: 079aeeda83bb130279ea6972d13f25cce3ff0042 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001.TH VIMDIFF 1 "2001 March 30"
2.SH NAME
3vimdiff \- edit two or three versions of a file with Vim and show differences
4.SH SYNOPSIS
5.br
6.B vimdiff
7[options] file1 file2 [file3]
8.PP
9.B gvimdiff
10.SH DESCRIPTION
11.B Vimdiff
12starts
13.B Vim
14on two (or three) files.
15Each file gets its own window.
16The differences between the files are highlighted.
17This is a nice way to inspect changes and to move changes from one version
18to another version of the same file.
19.PP
20See vim(1) for details about Vim itself.
21.PP
22When started as
23.B gvimdiff
24the GUI will be started, if available.
25.PP
26In each window the 'diff' option will be set, which causes the differences
27to be highlighted.
28.br
29The 'wrap' and 'scrollbind' options are set to make the text look good.
30.br
31The 'foldmethod' option is set to "diff", which puts ranges of lines without
32changes in a fold. 'foldcolumn' is set to two to make it easy to spot the
33folds and open or close them.
34.SH OPTIONS
Bram Moolenaar2641f772005-03-25 21:58:17 +000035Vertical splits are used to align the lines, as if the "\-O" argument was used.
36To use horizontal splits intead, use the "\-o" argument.
Bram Moolenaar071d4272004-06-13 20:20:40 +000037.PP
38For all other arguments see vim(1).
39.SH SEE ALSO
40vim(1)
41.SH AUTHOR
42Most of
43.B Vim
44was made by Bram Moolenaar, with a lot of help from others.
45See ":help credits" in
46.B Vim.