> Hello,
>
> when I execute with the bang (e.g. :!perl %) I always get less paging program
> that does not allow me to scroll up. It only accepts any key and goes a page
> down.
I don't see any paging when I execute a shell command, e.g., ls -l.
I just see all but the last screenfull of output from the command go
scrolling off the top of the screen, and then see Vim's "Press ENTER
or type command to continue" prompt at the bottom.
Do you get the same results if you start vim without any
configuration files, as
$ vim -N -u NONE -i NONE
?
> Is there any way to set a different paging program? I guess this is not a GNU
> less but Vim internal less.
Vim has an internal pager, but unless things have changed recently,
the internal pager is not used for shell commands.
> Solution could be also to define some command that would open an xterm and put
> "Please press Enter" to the end of the output. Does anybody have such a
> command? :-)
We should try to find out more about the problem you're seeing and
see if we can fix that, or at least explain it. In the mean time,
though, one solution would be to pipe the output of your shell
commands to a pager such as 'less' explicitly, like this:
:!perl % | less
If you want to run the command in a new xterm, you could do it like
this:
:!xterm -e 'sh -c "ls -l; read -p \"Please press Enter\""' &
Regards,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment