You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using neovim as manpager (as described in :h man -> MANPAGER='nvim +Man!') and while it works great, I ran into an issue using fish-shells' Alt+h/F1 functionality. This shortcut jumps directly into the man page of the command under the cursor. Using it, neovim flashes up and it seems it tries to execute a lot of commands (they're all failing with E21: Cannot make changes, 'modifiable' is off, which is expected with +Man!).
After looking at the fish function I pinned it down to using man with a redirection: man ls 2>/dev/null, or more generally: echo "foo" | nvim -u NORC 2>/dev/null.
stderr of man ls 2>./log:
Vim: Error reading input, exiting...
Vim: Finished.
man: command exited with status 1: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=ls(1) nvim +Man!
Hey there!
I'm using neovim as manpager (as described in
:h man
->MANPAGER='nvim +Man!'
) and while it works great, I ran into an issue using fish-shells'Alt+h
/F1
functionality. This shortcut jumps directly into the man page of the command under the cursor. Using it, neovim flashes up and it seems it tries to execute a lot of commands (they're all failing withE21: Cannot make changes, 'modifiable' is off
, which is expected with+Man!
).After looking at the fish function I pinned it down to using
man
with a redirection:man ls 2>/dev/null
, or more generally:echo "foo" | nvim -u NORC 2>/dev/null
.stderr of
man ls 2>./log
:stderr of
echo "foo" | nvim -u NORC 2>./log
:With vim as manpager (
MANPAGER="vim -M +MANPAGER -"
) it behaves more or less the same, but outputs some errors/warnings to stdout, too.nvim --version
: NVIM v0.5.0-dev+1055-g8950f4e94vim -u DEFAULTS
(version: 8.2) behaves differently? very similar$TERM
: tmux-256colorSteps to reproduce
Actual behaviour
E21: Cannot make changes, 'modifiable' is off
Expected behaviour
The text was updated successfully, but these errors were encountered: