💻 Software
How can I change the scroll wheel behavior in vim, so that it scrolls instead of moving the cursor?
Fresh5 days ago
Mar 15, 20268088 viewsConfidence Score0%
0%
Problem
I would like scrolling up to be equivalent to , and scrolling down to be equivalent to . The documentation here seems to suggest that this should already be the case, or I can work around it by putting this in my : Neither of these solutions seem to work. I am using from the terminal in Ubuntu 11.1…
Error Output
map <ScrollWheelUp> <C-Y> map <S-ScrollWheelUp> <C-U> map <ScrollWheelDown> <C-E> map <S-ScrollWheelDown> <C-D>
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I change the scroll wheel behavior in vim, so that it scrolls instead of moving the cursor?
Low Risk
Sorry you had to struggle with this one. It's actually very simple. Just add the following line to your ~/.vimrc: With this turned on, you won't be able (in *nix) to copy stuff out of vim by simply selecting it with the mouse; but if you hold down S…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix