0

When I open vim in some terminals (on mac for example) and use the mouse scroll, I am able to see the terminal output again.

If my terminal window would look like this:

user@pc$ "I'm gonna start vim" 
user@pc$ "after this line"
user@pc$ vim

I would like to see all these lines if I scroll up with the mouse scroll (in vim).

Additional info if necessary: I'm using xfce4-terminal 0.6.3 on Xubuntu 14.04 with Vim 7.4.52

  • 1
    Have you tried :set mouse=a? – Ingo Karkat Feb 17 '15 at 16:25
  • yes, this only makes it possible to scroll down – Mehdi Nellen Feb 17 '15 at 19:03
0

Found out that this emulates the behavior

" Might as well use 'r' 'v' instead of 'a'
:set mouse=a
:map <ScrollWheelUp> :!<CR>    

The only downside is selecting with mouse, copy pasting does not work so use :! instead, if you don't want this.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.