Re: BUG vim 7.0-204?: autocmd CusorMoved vs select/visual mode vs :behave mswin vs norm!

2007-03-25 Thread Thomas
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 t

Re: BUG vim 7.0-204?: autocmd CusorMoved vs select/visual mode vs :behave mswin vs norm!

2007-03-25 Thread Bram Moolenaar
Thomas wrote: > > ":behave mswin" only sets a few options, but it is often used in > > conjunction with ":source $VIMRUNTIME/mswin.vim", which sets a lot of > > potentially dangerous mappings. > I only have behave mswin in my vimrc. > > This happens with gvim -u NONE --noplugin. > > > When yo

Re: BUG vim 7.0-204?: autocmd CusorMoved vs select/visual mode vs :behave mswin vs norm!

2007-03-25 Thread Thomas
":behave mswin" only sets a few options, but it is often used in conjunction with ":source $VIMRUNTIME/mswin.vim", which sets a lot of potentially dangerous mappings. I only have behave mswin in my vimrc. This happens with gvim -u NONE --noplugin. When you do ":behave mswin" the shifted cur

Re: BUG vim 7.0-204?: autocmd CusorMoved vs select/visual mode vs :behave mswin vs norm!

2007-03-25 Thread Bram Moolenaar
Thomas wrote: > When I use the following command (for demonstration purposes): > > au CursorMoved * norm! zz > > When I now press or , 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 or

Re: BUG vim 7.0-204?: autocmd CusorMoved vs select/visual mode vs :behave mswin vs norm!

2007-03-25 Thread A.J.Mechelynck
Thomas wrote: Hi, When I use the following command (for demonstration purposes): au CursorMoved * norm! zz When I now press or , 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 or zz gets inserted.

BUG vim 7.0-204?: autocmd CusorMoved vs select/visual mode vs :behave mswin vs norm!

2007-03-25 Thread Thomas
Hi, When I use the following command (for demonstration purposes): au CursorMoved * norm! zz When I now press or , 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 or zz gets inserted. Is there a wo