Skip to content

Issue with PAGER and MANPAGER #6

@dpo

Description

@dpo

Hi. Thanks for a great plugin! I really enjoy all your tmux plugins!

I'm having an issue with Shift-K that I believe may be more due to Vim itself than to your plugin, but you'll probably be able to tell. I have overridden PAGER and MANPAGER in my ~/.bashrc (to use Vim actually) like so:

export PAGER=/Users/dpo/bin/Less.sh  # this basically just calls macros/less.vim
export MANPAGER="col -bx | view -c 'set ft=man nomod nolist' -c 'runtime! macros/less.vim' -"

If I hit Shift-K in my ~/.tmux.conf, I get the error

Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal
^M
?1000h?1049h?1h27m23mm94m100mH2J?25l24;1H"-stdin-" [readonly] 1763L, 101104C1;24r?12;25h?12l?25h27m23mm94m100mH2J?1000lVim:    Reading from stdin...
?1000h94m100m24;1H?1000lm94m100m39;49m?1l?12l?25h?1049lVim: Error reading input, exiting...
Vim: Reading from stdin...
Vim: Finished.
24;1H27m23mm94m100m39;49m

I believe this isn't related to your plugin because if I open any file in Vim, and execute

:runtime! ftplugin/man.vim
:Man tmux

I get the same error.

Now I see this bit in ftplugin/man.vim:

  if exists("$MANPAGER")
      let $MANPAGER = ""
  endif

The man page for man says that it first checks for MANPAGER, and if not set, it then checks for PAGER. So I added

  if exists("$PAGER")
      let $PAGER = ""
  endif

and all goes well. Is that an omission of man.vim? Or did I miss something in the configuration steps?

I'm using vim 7.4.712 on OSX.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions