Vim/MacVim: when I scroll with mouse, the text cursor moves too! -
i've been getting used vim/macvim last few weeks. 1 of main problems seem having when scroll around using mouse (especially when i'm trying select large portions of text) text insertion cursor moves , doesn't stay (like in textmate example). means i've selected large piece of text, when scroll review selection cursor move messes selection i've made.
i realise should used text selection visual mode, , 1 bit of time, it's best tool use mouse.
is there way of fixing behaviour?
:help scrolling
tells you:
these commands move contents of window. if cursor position moved off of window, cursor moved onto window (with 'scrolloff' screen lines around it).
so not possible leave cursor when scrolling. cursor visible in window, , therefore visual selection extend.
probably xnoremap <scrollwheelup> <esc><scrollwheelup>
, same scrollwheeldown. use gv
restore selection.
Comments
Post a Comment