On Jun 8, 9:57 am, Ben Fritz <[email protected]> wrote:
> I find myself wondering if the problem is that <S-Right> and friends
> all enter selection mode (something I never use). :help Select-mode
> (actually :help v_CTRL-G) says that "printable characters will cause
> the selection to be deleted, and Vim enters Insert mode." Perhaps the
> CursorMoved autocmd fires after entering selection mode, and simply
> feeds the (printable) zz sequence in, causing the text to be deleted
> and zz inserted?
I'm almost certain this is the cause, because here is a fix:
autocmd CursorMoved * if mode() ==# 'n' | exec 'normal zz' | endif
I'd still like to figure out a way to verify this however.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---