Hi Bram and other gurus, I noticed this behaviour when my plug-in cost me data loss, and would like to have your comment.
Operations: 1. Open a file in the first Vim tab, and make some edits 2. Open another with tabedit 3. Click the top-right corner, or press Alt-F4, to close Vim 4. Click on Cancel, when I found there are unsaved edits Expected behaviour: * Everything returns to before I try to close the Vim window. What happens really: * The second file is closed, and the first file I edit is displayed in the second tab. By the way, my data loss was caused by my BufWinEnter script, which assumes that it is only triggered when the file is opened. Since this is obviously wrong, my side-question is: * Is there a way to trigger the Vim script after modeline is executed on file loading, and only then? I am using gvim 7.3.141 on Win32. Best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/ -- You received this message from the "vim_use" 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
