Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 1 | VIMDIFF(1) General Commands Manual VIMDIFF(1) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
| 3 | |
| 4 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5 | NAME |
Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 6 | vimdiff - edit between two and eight versions of a file with Vim and |
| 7 | show differences |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | |
| 9 | SYNOPSIS |
Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 10 | vimdiff [options] file1 file2 [file3 [file4 [file5 [file6 [file7 |
| 11 | [file8]]]]]] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12 | |
| 13 | gvimdiff |
| 14 | |
| 15 | DESCRIPTION |
Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 16 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 20 | |
| 21 | See vim(1) for details about Vim itself. |
| 22 | |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 23 | When started as gvimdiff the GUI will be started, if available. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 24 | |
Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 25 | In each window the 'diff' option will be set, which causes the differ‐ |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 26 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 31 | |
| 32 | OPTIONS |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 33 | Vertical splits are used to align the lines, as if the "-O" argument |
Bram Moolenaar | 9c96f59 | 2005-06-30 21:52:39 +0000 | [diff] [blame] | 34 | was used. To use horizontal splits instead, use the "-o" argument. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 35 | |
| 36 | For all other arguments see vim(1). |
| 37 | |
| 38 | SEE ALSO |
| 39 | vim(1) |
| 40 | |
| 41 | AUTHOR |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 42 | Most of Vim was made by Bram Moolenaar, with a lot of help from others. |
| 43 | See ":help credits" in Vim. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | |
| 45 | |
| 46 | |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 47 | 2001 March 30 VIMDIFF(1) |