[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

neovim and less



Hi all,

Neovim and/or less are not performing as I would like in one regard:
when invoked from nvim ex prompt the pager goes directly to the end of
input.  Thanks for any help.

Details:

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.


Script started on 2019-11-02 13:50:29-04:00 [TERM="xterm-256color" TTY="/dev/pts/3" COLUMNS="80" LINES="25"]
$
$ echo $PAGER
less
$
$ cat /etc/deb*v*
10.1
$
$ nvim -v
NVIM v0.3.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-RiUqEm/neovim-0.3.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-RiUqEm/neovim-0.3.4/build/config -I/build/neovim-RiUqEm/neovim-0.3.4/src -I/usr/include -I/build/neovim-RiUqEm/neovim-0.3.4/build/src/nvim/auto -I/build/neovim-RiUqEm/neovim-0.3.4/build/include
Compiled by team+vim@tracker.debian.org

Features: +acl +iconv -jemalloc +tui 
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
$
$ less -V
less 487 (GNU regular expressions)
Copyright (C) 1984-2016  Mark Nudelman

[...]

Script done on 2019-11-02 13:52:52-04:00 [COMMAND_EXIT_CODE="0"]

rir


Reply to: