blob: a053e6a7425da824f42883a8c900d912437bf775 [file] [log] [blame]
Bram Moolenaar2346a632021-06-13 19:02:49 +02001VIMDIFF(1) General Commands Manual VIMDIFF(1)
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4
Bram Moolenaar071d4272004-06-13 20:20:40 +00005NAME
Bram Moolenaar2346a632021-06-13 19:02:49 +02006 vimdiff - edit between two and eight versions of a file with Vim and
7 show differences
Bram Moolenaar071d4272004-06-13 20:20:40 +00008
9SYNOPSIS
Bram Moolenaar2346a632021-06-13 19:02:49 +020010 vimdiff [options] file1 file2 [file3 [file4 [file5 [file6 [file7
11 [file8]]]]]]
Bram Moolenaar071d4272004-06-13 20:20:40 +000012
13 gvimdiff
14
15DESCRIPTION
Bram Moolenaar2346a632021-06-13 19:02:49 +020016 Vimdiff starts Vim on two up to eight files. Each file gets its own
17 window. The differences between the files are highlighted. This is a
18 nice way to inspect changes and to move changes from one version to an
19 other version of the same file.
Bram Moolenaar071d4272004-06-13 20:20:40 +000020
21 See vim(1) for details about Vim itself.
22
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000023 When started as gvimdiff the GUI will be started, if available.
Bram Moolenaar071d4272004-06-13 20:20:40 +000024
Bram Moolenaar2346a632021-06-13 19:02:49 +020025 In each window the 'diff' option will be set, which causes the differ
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000026 ences to be highlighted.
27 The 'wrap' and 'scrollbind' options are set to make the text look good.
28 The 'foldmethod' option is set to "diff", which puts ranges of lines
29 without changes in a fold. 'foldcolumn' is set to two to make it easy
30 to spot the folds and open or close them.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031
32OPTIONS
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000033 Vertical splits are used to align the lines, as if the "-O" argument
Bram Moolenaar9c96f592005-06-30 21:52:39 +000034 was used. To use horizontal splits instead, use the "-o" argument.
Bram Moolenaar071d4272004-06-13 20:20:40 +000035
36 For all other arguments see vim(1).
37
38SEE ALSO
39 vim(1)
40
41AUTHOR
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000042 Most of Vim was made by Bram Moolenaar, with a lot of help from others.
43 See ":help credits" in Vim.
Bram Moolenaar071d4272004-06-13 20:20:40 +000044
45
46
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000047 2001 March 30 VIMDIFF(1)