Ben Schmidt wrote:
>> Hello everybody !
>>
>> I find the automatic setting of the 'diff' option a bit inconsistent
>> and inconvenient :
>>
>> vim -u NONE -U NONE file1 file2
>>
>> :set cp
>> :syn on
>> :set diff
> 
> If you don't want it to be set as the global option which is the default for 
> newly 
> opened buffers, you should use setlocal, not set. See
> 
> :help local-options
> 
> Ben.

And if you're not familiar with it, the :diffthis command is also helpful 
specifically for diffing, and I believe does all its magic locally without 
touching global options.

Ben.




Send instant messages to your online friends http://au.messenger.yahoo.com 


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

Raspunde prin e-mail lui