Dedicated to all BASH newbies and Linux one liner lovers. Useful AWK,SED,BASH one liners.

Tuesday, July 7, 2009

Close all windows in vimdiff - vi tip

vimdiff
a powerful file comparison tool (edit two or three versions of a file with Vim and show differences)

Two important window commands to close windows while performing vimdiff on multiple files. (Also applicable when you open multiple files using :split or :vsplit)

ctrl-w c - Close this window
ctrl-w o - close all Other windows (mnemonic - Only)

Two of vimdiff important commands:

do - (diff-obtain) obtain differences from other window into this one
dp - (diff-put) push differences in current window to the other window

0 comments:

UNIX BASH scripting Headlines

© Jadu Saikia http://unstableme.blogspot.com