How do I get the mouse wheel to work with vim for windows?

After using VIM on Mac OS X Marvericks which has mouse scrolling support installed by default and is now a Windows 8.1 user, I am trying to enable mouse wheel scrolling support on Vim 7.4 for Windows, which launches it from PowerShell, but failed working solution ...

Considering what I have found so far, I set in my c: \ Users \ .vimrc the line:

set mouse=a

      

So good so far that I read from some answer on the forum that I needed to set the following mappings:

map <Esc>Oa <C-Y>
map <Esc>Ob <C-E>
map <Esc>[1;2a <PageUp>
map <Esc>[1;2b <PageDown>
map! <Esc>Oa <C-X><C-Y>
map! <Esc>Ob <C-X><C-E>
map! <Esc>[1;2a <PageUp>
map! <Esc>[1;2b <PageDown>

      

I'm not an advanced VIM user, just using the basics for coding, so I would appreciate it if someone could guide me through a step by step solution.

+3


source to share





All Articles