Questions tagged [pager]

Using vi/vim as a pager, eg in lieu of `less`

Filter by
Sorted by
Tagged with
2 votes
1 answer
78 views

How do you exit a terminal buffer unless in a pager

In a terminal buffer, I want to auto-exit when I press "kk". Except for when I'm in some interactive session, like a pager (like the pager which is created when you git diff). To do that, I ...
user avatar
3 votes
2 answers
203 views

How to disable Ale if PAGER mode is enabled

I use both Ale and VIM pager plugins. But for obvious reasons I want to disable some Vim features and plugins in the "less" mode. But if I put as recommended this piece of code in my .vimrc it still ...
user avatar
9 votes
4 answers
6k views

How to use NeoVim as a pager?

I tried export PAGER="nvim -R", however it does not work for man page, so I export MANPAGER="nvim -c 'set ft=man' -" again, it works. However it still does not work for git log, it looks like below: ...
user avatar
  • 257
0 votes
1 answer
69 views

How to NOT create a view and session file when viewing man pages

I recently discovered the world of vim session files, and they are awesome for working with multi-file code projects. However, when opening a man page I don't need a session file created for viewing ...
user avatar
  • 1,559
2 votes
1 answer
344 views

Convert man page nroff overstrike text into highlight regions

Problem I want to view man-pages in colour, preserving nroff's bold and italic directives. How would I edit a buffer's text and setup highlight regions: manpage_bold: For all instances of X <...
user avatar
  • 2,281