On 12/05/09 16:15, Gary Johnson wrote:
>
> On 2009-05-12, John Beckett wrote:
>> reuven wrote:
>>> I'm using vim -d to diff files, vim opens the second file in
>>> a narrow buffer, is there a way to split the side-by-side
>>> buffers equally be default?
>>
>> I don't think there is an easy option, but just press Ctrl-w =
>> to make the two windows the same width (vertical split), or the
>> same height (horizontal split).
>
> That's what I would do, too, but I wonder why the windows aren't
> equal to start with.  The windows are always equal in width when I
> use "vim -d" or vimdiff.  What happens if you use "vim -d -u NONE"
> to diff the files?
>
> Regards,
> Gary

...or, Reuven, to get a "better-looking" but still standardized (and 
'nocompatible') set of options,

        vimdiff -u '$VIMRUNTIME/vimrc_example.vim' file1 file2

?

If you are on Windows (including Cygwin), you may also want to replace 
"vimdiff" in the above command by either "vim.exe -d" or "gvim.exe -d" 
with the .exe extension in order to bypass any *.bat wrappers. The 
single quotes are essential on Unix-like shells (including Cygwin bash), 
to make sure that $VIMRUNTIME is passed to Vim as-is without any 
conversion by the shell.


Best regards,
Tony.
-- 
Kiss me twice.  I'm schizophrenic.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to