Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | .TH VIMDIFF 1 "2001 March 30" |
| 2 | .SH NAME |
| 3 | vimdiff \- 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 |
| 12 | starts |
| 13 | .B Vim |
| 14 | on two (or three) files. |
| 15 | Each file gets its own window. |
| 16 | The differences between the files are highlighted. |
| 17 | This is a nice way to inspect changes and to move changes from one version |
| 18 | to another version of the same file. |
| 19 | .PP |
| 20 | See vim(1) for details about Vim itself. |
| 21 | .PP |
| 22 | When started as |
| 23 | .B gvimdiff |
| 24 | the GUI will be started, if available. |
| 25 | .PP |
| 26 | In each window the 'diff' option will be set, which causes the differences |
| 27 | to be highlighted. |
| 28 | .br |
| 29 | The 'wrap' and 'scrollbind' options are set to make the text look good. |
| 30 | .br |
| 31 | The 'foldmethod' option is set to "diff", which puts ranges of lines without |
| 32 | changes in a fold. 'foldcolumn' is set to two to make it easy to spot the |
| 33 | folds and open or close them. |
| 34 | .SH OPTIONS |
Bram Moolenaar | 2641f77 | 2005-03-25 21:58:17 +0000 | [diff] [blame] | 35 | Vertical splits are used to align the lines, as if the "\-O" argument was used. |
Bram Moolenaar | 0e6830e | 2005-05-27 20:23:44 +0000 | [diff] [blame] | 36 | To use horizontal splits instead, use the "\-o" argument. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 37 | .PP |
| 38 | For all other arguments see vim(1). |
| 39 | .SH SEE ALSO |
| 40 | vim(1) |
| 41 | .SH AUTHOR |
| 42 | Most of |
| 43 | .B Vim |
| 44 | was made by Bram Moolenaar, with a lot of help from others. |
| 45 | See ":help credits" in |
| 46 | .B Vim. |