On Sat, Nov 02, 2019 at 02:27:19PM -0400, R Ransbottom wrote:
Issuing a ex command like
:! perldoc -f close
or
:! cat some_file | less
brings me directly to the end of the file output, leaving me with
the nvim message:
Press ENTER or type command to continue
requiring me to navigate to the start of the output. Less does not
do this when invoked from bash.
Side-stepping the issue a little, but you could consider opening a new
scratch buffer and then reading the output of your shell command into
it, then just navigating that buffer in nvim directly, rather than using
an external pager. E.g.
:ene
:r! perldoc -f close
Or more simply for your cat|less example, simply open the file in nvim
directly, in a new pane if you wish
:sp
:e some_file