Ian Kelling wrote:
> Doing vimdiff, then :tabe %, I find that the new window still has that
> left the foldcolumn, and the folding doesn't work in the original
> window where the file is diffed.
> 
> It does work right if I open regular vim and do :tabe %, and
> then :diffsplit.

I think it's because the :tabe command works like :edit, it reloads the
file and loses its 'diff' settings. Try executing :diffthis in the
original window and :diffoff in the new tab to get it sorted out. I
think it will probably work.

:help :diffthis
:help :diffoff

Alternatively, perhaps <C-W>s<C-W>T would be a way to get a file into a
new tab without ':edit'ing it; that might not mess up the options in the
first place.

:help CTRL-W_s
:help CTRL-W_T

> How can I make it the way I would expect from a vimdiff?

If you're expecting to have diff working between two tab pages, then
you're out of luck; scrolling down a bit at :help diff you can find this
comment:

> Diffs are local to the current tab page |tab-page|.  You can't see diffs with
> a window in another tab page.  This does make it possible to have several
> diffs at the same time, each in their own tab page.

Cheers,

Ben.




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

Reply via email to