Ben Fritz wrote:

> See this thread for a full discussion and examples:
> http://groups.google.com/group/vim_use/browse_thread/thread/1178b18781e998f0/486bad753c500aa9
> 
> Summary:
> 
> :split with no arguments does not fire a BufWinEnter event
> :split with _any_ argument _does_ fire a BufWinEnter event
> (even :split %)

Because the buffer is loaded with the file specified by the argument.

> :split with no arguments on a window with a modified buffer works fine
> :split % in a modified buffer gives E37

Because you are trying to reload while there are changes.

> :split file.b in a modified buffer (file.b is unmodified) works fine
> :split file.a in an unmodified buffer (file.a is modified) works fine

Because this uses the existing buffer.

> I think that the behavior of :split should be fixed to be consistent
> with and without arguments, but at the very least the help docs should
> mention/explain this strange behavior.

It works the way it works.  What documentation should be updated?

-- 
I AM THANKFUL...
...for the piles of laundry and ironing because it means I
have plenty of clothes to wear.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Raspunde prin e-mail lui