summaryrefslogtreecommitdiff
path: root/runtime/doc/filetype.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-30 15:13:38 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-30 15:13:38 +0200
commit06481427005a9dae39721087df94855f7d4d1feb (patch)
tree1fecc2ac5af171492d02dcc073671562ce6d121d /runtime/doc/filetype.txt
parent4cc39a527fecc96ad6639f10c9389c66af828cf1 (diff)
downloadvim-git-06481427005a9dae39721087df94855f7d4d1feb.tar.gz
Update runtime files.
Diffstat (limited to 'runtime/doc/filetype.txt')
-rw-r--r--runtime/doc/filetype.txt37
1 files changed, 36 insertions, 1 deletions
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt
index 11ccdc505..cc1e53ccb 100644
--- 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