{"action":"opened","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/5474","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/5474/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/5474/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/5474/events","html_url":"https://github.com/neovim/neovim/issues/5474","id":182632101,"number":5474,"title":"ftplugin/man.vim gives prompt when redirecting input","user":{"login":"cmcaine","id":6000761,"avatar_url":"https://avatars.githubusercontent.com/u/6000761?v=3","gravatar_id":"","url":"https://api.github.com/users/cmcaine","html_url":"https://github.com/cmcaine","followers_url":"https://api.github.com/users/cmcaine/followers","following_url":"https://api.github.com/users/cmcaine/following{/other_user}","gists_url":"https://api.github.com/users/cmcaine/gists{/gist_id}","starred_url":"https://api.github.com/users/cmcaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmcaine/subscriptions","organizations_url":"https://api.github.com/users/cmcaine/orgs","repos_url":"https://api.github.com/users/cmcaine/repos","events_url":"https://api.github.com/users/cmcaine/events{/privacy}","received_events_url":"https://api.github.com/users/cmcaine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T20:56:47Z","updated_at":"2016-10-12T20:56:47Z","closed_at":null,"body":"- `nvim --version`:\r\n`````\r\nNVIM 0.1.5\r\nBuild type: RelWithDebInfo\r\nCompilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.5/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include\r\nCompiled by builduser\r\n\r\nOptional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      \r\n`````\r\n- Vim (version: ) behaves differently?\r\nYes, man.vim distributed with vim 8 works as expected.\r\n- Operating system/version:\r\nArch\r\n- Terminal name/version: `rxvt-unicode-256color`\r\n\r\n### Actual behaviour\r\n\r\nI'm trying to use nvim as a man page reader: `MANPAGER='bash -c \"nvim -c \\\"set ft=man\\\" -u NORC </dev/tty <(col -bx)\"' man vim`\r\n\r\nThis is an unusual construction to avoid the remarks nvim makes when reading from stdin when you use a more conventional piped expression:\r\n````\r\n$ MANPAGER='sh -c \"col -bx | nvim -c \\\"set ft=man\\\" -\"' man vim\r\nNvim: Reading from stdin...\r\n\"-stdin-\" 304L, 17185C\"-stdin-\" 304L, 17185C\r\n````\r\nWith the `</dev/tty <(col -bx)` construction, nvim clears the screen and outputs these lines at the bottom of the screen:\r\n````\r\n\"/dev/fd/63\" [fifo/socket] 304L, 17185C\r\n\"man://vim(1)\" [Not edited] line 1 of 304 --0%-- col 1\r\nPress ENTER or type command to continue\r\n````\r\nPressing enter gives the man page as expected.\r\n\r\n### Expected behaviour\r\n\r\nnvim should go straight to the man page without a Press ENTER prompt.\r\n\r\nWith vim 8 (using the default vimrc to source man.vim): `MANPAGER='bash -c \"vim -c \\\"set ft=man\\\" </dev/tty <(col -bx)\"' man vim`. This version gives no \"Press ENTER\" prompt and goes straight to the man page.\r\n\r\nAfter `sudo swap /usr/share/nvim/runtime/ftplugin/man.vim /usr/share/vim/vim80/ftplugin/man.vim`, nvim gives the expected result and vim the bad result. `swap` just swaps two files [[source]](https://gist.github.com/cmcaine/1b5fab9e9e958877166742f42d5b831d).\r\n\r\n### Steps to reproduce using `nvim -u NORC`\r\n\r\n`MANPAGER='bash -c \"nvim -c \\\"set ft=man\\\" -u NORC </dev/tty <(col -bx)\"' man nvim`\r\n"}}
{"actor":{"display_login":"cmcaine"}}