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