On 08/06/10 11:36, baza wrote:
Hello.
The main idea is described in message subject.
I'm using Vim 7.2 with win xp.
When I minimize Vim window to the task bar and then restore it - sometimes
it happents that modes switches between themselves. --INSERT-- to
--REPLACE-- or vice versa.
Interesting that it happens absolutely randomly. Maybe yes maybe no. And I
never know which mode will be.
I did not find any information regarding this issue.
Thanks.
Toggling between Insert and Replace is the function of the <Insert> key.
Are you sure you don't hit it, maybe unintentionally, just before
minimizing Vim, or just after waking it up?
You can disable the <Insert> key by adding the following to your vimrc:
:map <Insert> <Nop>
:map! <Insert> <Nop>
or maybe you'll prefer to use :imap instead of :map! if you want to
retain the ability to toggle between insert and overstrike on the Vim
command-line.
To minimize Vim, you can use :sus[pend], :st[op] or even Ctrl-Z (the
latter, which requires no <Enter>, should be far enough from the
<Insert> key).
See
:help <Insert>
:help i_<Insert>
:help c_<Insert>
:help map.txt
:help suspend
Best regards,
Tony.
--
Hatred, n.:
A sentiment appropriate to the occasion of another's
superiority.
-- Ambrose Bierce, "The Devil's Dictionary"
--
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