Hi,
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
Thomas wrote:
Hi,
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
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
When in Select mode you are still in sort-of Normal mode. Your
autocommand will have to take care of mode stuff by itself. You can use
CTRL-\ CTRN-N to make sure you are in Normal mode.
Okay, I now wrapped the norm! commands in a function and check via
mode() if we are in select mode and