Charles Cooper wrote:

> The diffoff! and diffoff commands both reset options in the window
> they are called from without checking the value of &diff. The options
> which the commands reset are: diff, scrollbind, cursorbind, scrollopt,
> wrap, foldmethod, foldcolumn.  Here are 2 examples using the wrap
> option, after starting with  
>   vim -n -u NONE -U NONE -i NONE --noplugin
> 
> set nowrap
> set wrap ? | echon " " bufnr("%")
> diffoff
> set wrap ? | echon " " bufnr("%")
> 
> set nowrap
> silent edit a | silent diffsplit b | silent split c
> set wrap ? | echon " " bufnr("%")
> diffoff!
> set wrap ? | echon " " bufnr("%")
> 
> 
> patch inline and attached

I would say the current behavior is intended.  If you reset 'diff', but
then realize it doesn't look right, you can use :diffoff to reset the
other side effects of :diffthis.

If you don't want to change options, then why would you type :diffoff?

-- 
"The amigos also appear to be guilty of not citing the work of others who had
gone before them.  Even worse, they have a chapter about modeling time and
space without making a single reference to Star Trek!"
                        (Scott Ambler, reviewing the UML User Guide)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui