Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vimdiff(1) [osx man page]

VIMDIFF(1)						      General Commands Manual							VIMDIFF(1)

NAME
vimdiff - edit two, three or four versions of a file with Vim and show differences SYNOPSIS
vimdiff [options] file1 file2 [file3 [file4]] gvimdiff DESCRIPTION
Vimdiff starts Vim on two (or three or four) files. Each file gets its own window. The differences between the files are highlighted. This is a nice way to inspect changes and to move changes from one version to another version of the same file. See vim(1) for details about Vim itself. When started as gvimdiff the GUI will be started, if available. In each window the 'diff' option will be set, which causes the differences to be highlighted. The 'wrap' and 'scrollbind' options are set to make the text look good. The 'foldmethod' option is set to "diff", which puts ranges of lines without changes in a fold. 'foldcolumn' is set to two to make it easy to spot the folds and open or close them. OPTIONS
Vertical splits are used to align the lines, as if the "-O" argument was used. To use horizontal splits instead, use the "-o" argument. For all other arguments see vim(1). SEE ALSO
vim(1) AUTHOR
Most of Vim was made by Bram Moolenaar, with a lot of help from others. See ":help credits" in Vim. 2001 March 30 VIMDIFF(1)

Check Out this Related Man Page

VIMDIFF(1)						      General Commands Manual							VIMDIFF(1)

NAME
vimdiff - edit two, three or four versions of a file with Vim and show differences SYNOPSIS
vimdiff [options] file1 file2 [file3 [file4]] gvimdiff DESCRIPTION
Vimdiff starts Vim on two (or three or four) files. Each file gets its own window. The differences between the files are highlighted. This is a nice way to inspect changes and to move changes from one version to another version of the same file. See vim(1) for details about Vim itself. When started as gvimdiff the GUI will be started, if available. In each window the 'diff' option will be set, which causes the differences to be highlighted. The 'wrap' and 'scrollbind' options are set to make the text look good. The 'foldmethod' option is set to "diff", which puts ranges of lines without changes in a fold. 'foldcolumn' is set to two to make it easy to spot the folds and open or close them. OPTIONS
Vertical splits are used to align the lines, as if the "-O" argument was used. To use horizontal splits instead, use the "-o" argument. For all other arguments see vim(1). SEE ALSO
vim(1) AUTHOR
Most of Vim was made by Bram Moolenaar, with a lot of help from others. See ":help credits" in Vim. 2001 March 30 VIMDIFF(1)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

vimdiff jump to other file or switch windows

This took me quite awhile to find so I wanted to share this with other people. To switch windows in vimdiff or to navigate windows in vimdiff or to change windows in vimdiff try the following: The ":vertical" command can be inserted before another command that splits a window. ... (0 Replies)
Discussion started by: cokedude
0 Replies

2. Shell Programming and Scripting

use vimdiff inside while read

Hi, I need to read a file name from a txt file, found the difference in two folders, then modify the file using vimdiff, while read file do diff src/$file dest/$file > /dev/null 2>&1 if ; then vimdiff src/$file dest/$file fi done < ./my_text_file since the stdin has been... (6 Replies)
Discussion started by: laopi
6 Replies

3. Shell Programming and Scripting

Vim : Match all bracket { and fold them (zf%)

Hello ! I'm using a lot the command zf% with the cursor on the first bracket of a function for example, to fold it. Ex : I put my cursor on the first bracket myfunction(){ # body } I type zf% It become : +-- 9 lines : myfunction()... (2 Replies)
Discussion started by: Purgator
2 Replies

4. UNIX for Beginners Questions & Answers

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (1 Reply)
Discussion started by: sudiptabhaskar
1 Replies

5. Shell Programming and Scripting

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window, vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (3 Replies)
Discussion started by: sudiptabhaskar
3 Replies