What is a way to read man pages in vim without using temporary files

前端 未结 11 1305
萌比男神i
萌比男神i 2020-12-12 19:36

I want to be able to read man pages in vim. For some reason, it seems that vim isn\'t able to read the output of programs through piping (i.e \'(man ls) | vi\' doesn\'t seem

11条回答
  •  伪装坚强ぢ
    2020-12-12 20:03

    A lot of good answers, with respect to plugins it's worth to add that vim-man* provides a set of convenience functions to open and read man pages:

    Viewing man pages, as per docs.

    • :Man printf - open printf(1) man page in a split
    • :Vman 3 putc - open putc(3) man page in a vertical split
    • :Man pri - command completion for man page names

    * Available on GitHub: https://github.com/vim-utils/vim-man.

提交回复
热议问题