> 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.

> " file1 has diff set
> :<C-F>
> "Opens the cmdwindow and I can see the differences to file1. WTF? ;)
> :sbn
> "vim automatically sets diff for file2, that is inconvenient,
> "because I don't intend to diff file1 and file2.
> "I am now editing file2.
> :verbose set diff?
>       diff
> "Must be set internally ?
> :set nodiff
> "Now file 1 has diff set, file2 not and I can split and hide the
> "buffers as much as I like, vim leaves me alone with
> "automatically setting this option. That is the inconsistent part.


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