How to scroll up to view system command output in Vim

I really like to run some system command in vim, for example

:!rspec 

but it’s annoying that I can’t scroll up to see the exit information

enter image description here

I am using Macvim on Mac 10.9, does anyone know how to do this?

+2
source share
1 answer

As far as I know, you cannot scroll the output coming from an external source.

Messages have a simple scroll, but only for messages for which Vim has full control. See :h messages .

If you look at your screenshot, I can tell you that you are doing it wrong. Running RSpec through :!rspec inefficient. Vim has an RSpec compiler at runtime.

 :compiler rspec :make 

RSpec output is now parsed and populated into a quick list for easy navigation.

For even greater RSpec power, such as asynchronous test runs, check dispatch.vim .

+1
source

Source: https://habr.com/ru/post/957375/


All Articles