[EMAIL PROTECTED] wrote:
When i click the system exit button (x - cross) *or* I choose the system menu
entry "Exit", vim has the following behavior.

        Save changes to "Untitled"?
        [Y]es, (N)o, (C)ancel:

When I press Y or N, all is ok.
When I press C, the line
Save changes to "Untitled"? remains and there is no cursor anywhere,
until I then press ESC. Then the cursor appears in the buffer and the
command line completely disappears.

Pressing <Enter> at the [Y]es, (N)o, (C)ancel prompt makes vim write and
exit.

If I press Alt-F4 *directly*, the command line disappears and the cursor
immediately draws back in the buffer, as I am expecting.
VIM - Vi IMproved 7.0
MS-Windows 32 bit GUI version
Joachim
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/




The "proper" way to exit Vim is by means of one of the commands ":q[uit]", ":wq", ":x[it]", ":exi[t]" (if there is only one window), or ":qa[ll]", ":quita[ll]", ":wqa[ll]", ":xa[ll]" (regardless of the number of windows or buffers). All of these except those starting with :q imply that modified buffers will be written (if they have a name).

see
        :help write-quit
        :help window-exit

The "Cancel" reply (in Yes, No, Cancel) means you don't want to exit after all. It should let you go back to editing rather than hang. Try Ctrl-L to see if it might be a retrace problem. (The fact that Esc clears the command-line text is normal.)

Does the output of your ":version" command include (among the first 5 lines) a line starting with "Included patches:"? If it doesn't, then you're missing 168 bugfixes at last count, and in that case I recommend that you upgrade using Steve Hall's Vim distribution for Windows at https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721

The summary of the patches is found at http://ftp.vim.org/pub/vim/patches/7.0/README

If you want to save the output of ":version" (or of any other command) to a file or to a register (including the clipboard), see ":help :redir".


Best regards,
Tony.

Reply via email to