Friday, April 27, 2012

Re: Can Vim remember modes when switching between tabs?

On Friday, April 27, 2012 4:45:29 PM UTC-5, Andrei Zmievski wrote:
> I originally noticed this in MacVim, but turns out this happens in the
> terminal as well. If you have two tabs open and enter the Insert mode
> in one, then switch to the other tab (by clicking on it in GUI, for
> example), the Insert mode is still active. This wreaks havoc when I'm
> editing something and want to quickly switch to the other tab to
> search/look up/etc, because the Normal mode keystrokes get inserted
> into the buffer.
>
> Any workarounds for this?

How about just always leaving insert mode when leaving the current tab page?

autocmd TabLeave * stopinsert

--
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

No comments: