@@ -147,6 +147,7 @@ can be used to overrule the filetype used for certain extensions:
147
147
*.w g:filetype_w | ft-cweb-syntax |
148
148
*.i g:filetype_i | ft-progress-syntax |
149
149
*.p g:filetype_p | ft-pascal-syntax |
150
+ *.pp g:filetype_pp | ft-pascal-syntax |
150
151
*.sh g:bash_is_sh | ft-sh-syntax |
151
152
*.tex g:tex_flavor | ft-tex-plugin |
152
153
@@ -563,16 +564,15 @@ Local mappings:
563
564
564
565
MAN *ft-man-plugin* *:Man* *man.vim*
565
566
566
- Displays a manual page in a nice way. Also see the user manual
567
- | find-manpage | .
568
-
569
- To start using the ":Man" command before any manual page was loaded, source
570
- this script from your startup vimrc file: >
567
+ This plugin displays a manual page in a nice way. See | find-manpage | in the
568
+ user manual for more information.
571
569
570
+ To start using the | :Man | command before any manual page has been loaded,
571
+ source this script from your startup | vimrc | file: >
572
572
runtime ftplugin/man.vim
573
573
574
574
Options:
575
- 'iskeyword' the '.' character is added to be able to use CTRL-] on the
575
+ 'iskeyword' The '.' character is added to support the use of CTRL-] on the
576
576
manual page name.
577
577
578
578
Commands:
@@ -582,24 +582,25 @@ Man {number} {name}
582
582
583
583
Global mapping:
584
584
<Leader> K Displays the manual page for the word under the cursor.
585
- <Plug> ManPreGetPage idem, allows for using a mapping: >
586
- nmap <F1> <Plug>ManPreGetPage<CR>
585
+ <Plug> ManPreGetPage
586
+ idem, allows for using a mapping: >
587
+ nmap <F1> <Plug>ManPreGetPage
587
588
588
589
Local mappings:
589
590
CTRL-] Jump to the manual page for the word under the cursor.
590
591
CTRL-T Jump back to the previous manual page.
591
- q Same as " :quit"
592
+ q Same as the | :quit | command.
592
593
593
594
To use a vertical split instead of horizontal: >
594
595
let g:ft_man_open_mode = 'vert'
595
596
To use a new tab: >
596
597
let g:ft_man_open_mode = 'tab'
597
598
598
- To enable folding use this: >
599
- let g:ft_man_folding_enable = 1
600
- If you do not like the default folding, use an autocommand to add your desired
599
+ To enable | folding | , use this: >
600
+ let g:ft_man_folding_enable = 1
601
+ If you do not like the default folding, use an | autocommand | to add your desired
601
602
folding style instead. For example: >
602
- autocmd FileType man setlocal foldmethod=indent foldenable
603
+ autocmd FileType man setlocal foldmethod=indent foldenable
603
604
604
605
If you would like :Man {number} {name} to behave like man {number} {name} by
605
606
not running man {name} if no page is found, then use this: >
@@ -612,7 +613,7 @@ page in a Vim window: >
612
613
613
614
MANPAGER *manpager.vim*
614
615
615
- The :Man command allows you to turn Vim into a manpager (that syntax highlights
616
+ The | :Man | command allows you to turn Vim into a manpager (that syntax highlights
616
617
manpages and follows linked manpages on hitting CTRL-] ).
617
618
618
619
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
0 commit comments