aitjcize / cppman

C++ 98/11/14 manual pages for Linux/MacOS
GNU General Public License v3.0
1.27k stars 79 forks source link

cppman vim/nvim pager incompatible with vim plugin bogado/file-line #121

Open Frydac opened 3 years ago

Frydac commented 3 years ago

Hi,

I just noticed that when using cppman with vim/nvim as pager and when using https://github.com/bogado/file-line as a plugin (it opens a file on a line if the filename is formatted as /file/name.ext:<line_nr>) then the resulting vim/nvim buffer is empty.

I tend to use https://github.com/gauteh/vim-cppman which doesn't have an issue with this. Just to let you know, maybe there is an easy workaround or something.

NobodyXu commented 3 years ago

You can try this to view cppman inside vim/nvim while using file-line:

#!/bin/sh
cppman “$1” -p less | cat >/tmp/cppman-output-“$1
vim /tmp/cppman-output-“$1”

On Thu, 7 Jan 2021 at 04:09, Emile Vrijdags notifications@github.com wrote:

Hi,

I just noticed that when using cppman with vim/nvim as pager and when using https://github.com/bogado/file-line as a plugin (it opens a file on a line if the filename is formatted as /file/name.ext:) then the resulting vim/nvim buffer is empty.

I tend to use https://github.com/gauteh/vim-cppman which doesn't have an issue with this. Just to let you know, maybe there is an easy workaround or something.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aitjcize/cppman/issues/121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIGZK56AGO4ELSRQ6T5IBTSYSKNRANCNFSM4VXZ6N7Q .