sponsor Vim development Vim logo Vim Book Ad

ViewOutput : scroll back and search [long] output of vim command

 script karma  Rating 20/13, Downloaded by 2137  Comments, bugs, improvements  Vim wiki

created by
Yakov Lerner
script type
If you want to scroll backward (and forward) and search within long output of the vim command (such as :au, :let), execute command with prefix VO.

VO (viewoutput) will place output of vim command in new buffer where you can search and view it using vim commands. Example:

      :VO au
      :VO let
install details
Drop viewoutput.vim into your ~/.vim/plugin directory.

To change the command that creates the preview window (the default is "new"),
you can edit definition of g:viewoutput_newbuffer variable at the beginning of

let g:viewoutput_newbuffer="5new"     | " create preview window 5 lines high
let g:viewoutput_newbuffer="bot 5new" | " bottom preview window 5 lines high

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
viewoutput.vim 2.0 2004-02-04 6.0 Yakov Lerner Fixed bug with 'VO map' (silent map produced output without newlines). Saving output to register rather than tempfile. Improvements thanks to Antony Scriven and Charles Campbell. Config variable  g:viewoutput_newbuffer added.
viewoutput.vim 1.0 2004-02-03 6.0 Yakov Lerner Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github