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 %)
:split with no arguments on a window with a modified buffer works fine
:split % in a modified buffer gives E37
: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

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.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui