22 ms·
Nice! Until now I've been using imap <silent> <Down> <C-o>gj imap <silent> <Up> <C-o>gk nmap <silent> <Down> gj nmap <silent> <Up> gk in my .v
by sdrothrock 13y ago
Nice! Until now I've been using
imap <silent> <Down> <C-o>gj
imap <silent> <Up> <C-o>gk
nmap <silent> <Down> gj
nmap <silent> <Up> gk
in my .vimrc to give me mousewheel scrolling in vim.
The advantage of putting it in my .vimrc is that I have mousewheel scrolling on the server no matter what computer I log in from.
The disadvantage is that I'm locked into vim and it won't work for someone using, say, emacs.
- weslly 13y ago"set mouse=a" works better
- sdrothrock 13y agoI have that set... and that's what I meant to copy/paste instead of wrapped line navigation. Oops.
- markus2012 13y agoThank you for posting that. I can now use my mouse wheel on my mac to scroll through documents in vim. I can also SSH into a Linux box from my mac and the mouse wheel works in the same way.