Thomas wrote:

> When I use the following command (for demonstration purposes):
> 
> au CursorMoved * norm! zz
> 
> When I now press <s-c-left> or <s-c-right>, zz get inserted in the buffer.
> 
> These cursor key seem to be set by :behave mswin.
> 
> In summary:
> :au CursorMoved * norm! zz
> :behave mswin
> Press <s-c-left> or <s-c-right>
> zz gets inserted.
> 
> Is there a work-around?

When you do ":behave mswin" the shifted cursor keys start Select mode.
What you type then replaces the selected text.

Have a look at what ":behave" does, you can also set individual options.

-- 
Q: Why does /dev/null accept only integers?
A: You can't sink a float.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to