Scroll to terminal while Vim is running


Mehdi Nellen

When I open vim in some terminal (like on a Mac) and scroll with the mouse, I am able to see the terminal output again.

If my terminal window looks like this:

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

If I scroll up using mouse scroll (in vim) I want to see all these lines.

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

Mehdi Nellen

found this to mimic the behavior

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

The only downside is selecting with the mouse, copy-paste doesn't work, so :!if you don't want that, use that instead.

Related


Scroll to terminal while Vim is running

Mehdi Nellen When I open vim in some terminal (like on a Mac) and scroll with the mouse, I am able to see the terminal output again. If my terminal window looks like this: user@pc$ "I'm gonna start vim" user@pc$ "after this line" user@pc$ vim If I scroll up

Send buffer to running terminal window in Vim 8

Stargroven Is it possible to send the contents of the buffer to a running terminal window. The window can run, for example, a REPL for python code. I mean the new terminal features of vim, not external plugins or previous versions. Peter Link You can term_send

Send buffer to running terminal window in Vim 8

Stargroven Is it possible to send the contents of the buffer to a running terminal window. The window can run, for example, a REPL for python code. I mean the new terminal features of vim, not external plugins or previous versions. Peter Link You can term_send

Send buffer to running terminal window in Vim 8

Stargroven Is it possible to send the contents of the buffer to a running terminal window. The window can run, for example, a REPL for python code. I mean the new terminal features of vim, not external plugins or previous versions. Peter Link You can term_send

Scroll through the user control while the timer is running

steven Whenever I click on the area of the user control, it highlights the combo box, so if I try to scroll to the bottom of the screen, it just scrolls the entire combo box. I try somelabel.focus()to add click event to user control. This kind of work. However

Scroll through the user control while the timer is running

steven Whenever I click on the area of the user control, it highlights the combo box, so if I try to scroll to the bottom of the screen, it just scrolls the entire combo box. I try somelabel.focus()to add click event to user control. This kind of work. However

Capture Windows Terminal close while running

Matt Joiner In a command prompt window, I have a running process. While the process was still executing, I clicked the (red) "X" in the corner of the command prompt window. The command prompt window closes and the running process is terminated. On Linux, closi

Is there a way to clear the terminal screen while running?

Member of Parliament for Aditya For example, I am running tail -f someLogFile. My screen is full and only the last row is changing. I'm going to clear the screen now; but the usual Ctrl+ does Ln't work and just shows me the output ^L. null pointer Using Ctrl+

Capture Windows Terminal close while running

Matt Joiner In a command prompt window, I have a running process. While the process was still executing, I clicked the (red) "X" in the corner of the command prompt window. The command prompt window closes and the running process is terminated. On Linux, closi

Terminal and Vim

Benjamin I open a terminal and then Vim. Then I worked on the source code, but unfortunately I clicked the close button of the terminal title bar and my work was lost. Is it possible to configure Vim to tell me when I try to close the terminal without closing

Terminal and Vim

Benjamin I open a terminal and then Vim. Then I worked on the source code, but unfortunately I clicked the close button of the terminal title bar and my work was lost. Is it possible to configure Vim to tell me when I try to close the terminal without closing

Can't use terminal while gedit command is running

Hussein Hussein Wande I recently installed 12.04. When I try to edit a file with gedit , I can't use the terminal unless I close the edit file or have to open a new terminal. But I don't think 11.04 has this problem, but I'm not sure. Is there anyway to avoid

Can't use terminal while gedit command is running

Hussein Hussein Wande I recently installed 12.04. When I try to edit a file with gedit , I can't use the terminal unless I close the edit file or have to open a new terminal. But I don't think 11.04 has this problem, but I'm not sure. Is there anyway to avoid

How can I keep using the terminal while qlmanage is running?

Paul Springer I'm using the command qlmanage -p (file) >/dev/null 2>/dev/nullto open quicklook with a file and send both stdout and stderr to /dev/null. I would like to keep the state of quicklook while continuing to use the terminal, however, the terminal can

Can't use terminal while gedit command is running

Hussein Hussein Wande I recently installed 12.04. When I try to edit a file with gedit , I can't use the terminal unless I close the edit file or have to open a new terminal. But I don't think 11.04 has this problem, but I'm not sure. Is there anyway to avoid

How to scroll messages on terminal?

username I'm trying to write a program to act as a subtitle, which is used curses.h libraryto create a side scrolling display. What should happen is that my message "Hello" should appear to scroll character by character from the right side of the terminal to t

output scroll down terminal

cd127 I've currently decided to test my dual monitors in a vertical configuration, but have encountered a problem I've never had: the input lines on the terminal are too far from the screen! I'm wondering if there is a way to scroll the output down so that the