Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.4k
Labels
Milestone
Description
Problem
When using neovim as a pager, nvim crashes when viewing man pages fromman.
$ MANPAGER="nvim --clean --noplugin -" man manE903: Process failed to start: permission denied:"/usr/local/bin/nvim"Failed to start Nvim server!man:command exited with status 1: sed -e'/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }'| LESS=-ix8RmPm Manual page man(1)?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press hforhelp or q to quit)$PM Manual page man(1)?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press hforhelp or q to quit)$ MAN_PN=man(1) nvim --clean --noplugin -
However, it works when piping into neovim
# this works perfect!$ MANPAGER=cat man man| nvim --clean --noplugin -
$ man --versionman 2.11.2$ build/bin/nvim -V1 -vNVIM v0.11.0-dev-714+g220b8aa6fBuild type: DebugLuaJIT 2.1.1724512491Compilation: /usr/bin/cc -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wimplicit-fallthrough -fdiagnostics-color=always -DNVIM_LOG_DEBUG -DUNIT_TESTING -DHAVE_UNIBILIUM -D_GNU_SOURCE -DINCLUDE_GENERATED_DECLARATIONS -DUTF8PROC_STATIC -I/home/max/workspace/github.com/neovim/neovim.git/.deps/usr/include/luajit-2.1 -I/home/max/workspace/github.com/neovim/neovim.git/.deps/usr/include -I/home/max/workspace/github.com/neovim/neovim.git/build/src/nvim/auto -I/home/max/workspace/github.com/neovim/neovim.git/build/include -I/home/max/workspace/github.com/neovim/neovim.git/build/cmake.config -I/home/max/workspace/github.com/neovim/neovim.git/src -I/usr/include system vimrc file:"$VIM/sysinit.vim" fall-backfor$VIM:"/usr/local/share/nvim"Run :checkhealthfor more info
Steps to reproduce
On my machine all I need to do is:
$ MANPAGER="nvim --clean --noplugin -" man manand it crashes every time
Expected behavior
Neovim should open the man page
Neovim version (nvim -v)
NVIM v0.11.0-dev-714+g220b8aa6f
Vim (not Nvim) behaves the same?
no
Operating system/version
Debian GNU/Linux 12 (bookworm)
Terminal name/version
urxvt,gnome-terminal
$TERM environment variable
xterm-256color
Installation
build from source