Mercurial > vim
diff runtime/doc/filetype.txt @ 9041:34c45ee4210d
commit https://github.com/vim/vim/commit/06481427005a9dae39721087df94855f7d4d1feb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 30 15:13:38 2016 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Apr 2016 15:15:06 +0200 |
parents | aea5ebf352c4 |
children | bc38030aec7d |
line wrap: on
line diff
--- a/runtime/doc/filetype.txt +++ b/runtime/doc/filetype.txt @@ -1,4 +1,4 @@ -*filetype.txt* For Vim version 7.4. Last change: 2015 Dec 06 +*filetype.txt* For Vim version 7.4. Last change: 2016 Apr 30 VIM REFERENCE MANUAL by Bram Moolenaar @@ -586,6 +586,41 @@ folding style instead. For example: > autocmd FileType man setlocal foldmethod=indent foldenable +MANPAGER *manpager.vim* + +The :Man command allows you to turn Vim into a manpager (that syntax highlights +manpages and follows linked manpages on hitting CTRL-]). + +Works on: + + - Linux + - Mac OS + - FreeBSD + - Cygwin + - Win 10 under Bash + +Untested: + + - Amiga OS + - BeOS + - OS/2 + +For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...) + + export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -" + +For (t)csh by adding to the config file + + setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -" + +For fish by adding to the config file + + set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -" + +If man sets the $MAN_PN environment variable, like man-db, the most common +implementation on Linux and Mac OS, then the "env MAN_PN=1 " part above is +superfluous. + PDF *ft-pdf-plugin* Two maps, <C-]> and <C-T>, are provided to simulate a tag stack for navigating