On Mon, May 4, 2009 at 9:57 AM, John Beckett <[email protected]> wrote: > > Steven Woody wrote: >> Supposing I have two files opened in two separated buffers b1 >> and b2, and now I decide to compare b1 and b2 as if I open >> these file by 'vim -d f1 f2', how can vim help me accomplish >> this? Thanks. > > Usually I have exactly two windows open when I want to do this, > and the following command starts diff: > :windo diffthis > > After making some changes, you might want: > :windo diffupdate > > When finished, turn off: > :diffoff! >
Thanks, got it. > It's also handy to know that you can move the windows around: > Ctrl-W K (move current window up) > Ctrl-W L (move current window to right) > >> You can send me encrypted messages using my public key: >> ... > > For anyone reading this, PLEASE do not post long signatures or > similar stuff to a mailing list. Also, please bottom post when > replying (like this message). See our guidelines: > http://groups.google.com/group/vim_use/web/vim-information > Thank you for the tips! --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
