Questions tagged [manpages]

For questions about viewing manpages in vim.

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

How can I turn off syntax highlighting for man pages?

I open man pages in vim, per export MANPAGER="vim -M +MANPAGER -" in my zshrc. However, vim has syntax highlighting enabled when it opens a man page. Is there a way to ensure man pages ...
user avatar
1 vote
1 answer
67 views

how to change <shift-K> to lookup python3 keyword instead of python2.7

I love that when working in python I can hover my cursor over a keyword a (e.g. math) and see docs in a less format to briefly read the api and then go back to writing. I noticed in python, vim is ...
user avatar
1 vote
0 answers
36 views

Save :Man window in session

TL;DR: I want to persist :Man windows in sessions I am obsessed with sessions, and use tpope's vim-obsession for managing them. Coupled with a scripted tmux, sessions make for a perfect "quit, go ...
user avatar
  • 21.5k
0 votes
2 answers
435 views

How to match autocmd pattern for unique file

I'm trying to make autocommands that will run only when the buffer is a man page (:Man), but I can't get the right pattern as I'm not too familiar with regex and globs. Here's what I've tried so far: ...
user avatar
4 votes
2 answers
557 views

Using vim as manpager: works on Linux, fails on macOS

:h manpager describes how to use vim as a manpager: Works on: - Linux - Mac OS - FreeBSD - Cygwin - Win 10 under Bash Untested: - Amiga OS - BeOS - OS/2 For bash,zsh,ksh or dash ...
user avatar
  • 861
20 votes
4 answers
4k views

How can I suppress the "reading from STDIN" message from within Vim?

When using Vim to read from stdin, it prints a informative message: $ echo foo | vim - Vim: Reading from stdin... $ This is just an example. The actual use doesn't allow shell constructs. vim <(...
user avatar
  • 23.9k