" Vim plugin for using Vim as manpager. " Maintainer: Enno Nagel <ennonagel+vim@gmail.com> " Last Change: 2018 Feb 04 command! -nargs=0 MANPAGER call s:ManPager() | delcommand MANPAGER function! s:ManPager() set nocompatible if exists('+viminfofile') set viminfofile=NONE endif set noswapfile setlocal ft=man runtime ftplugin/man.vim setlocal buftype=nofile bufhidden=hide iskeyword+=: modifiable " Emulate 'col -b' silent keepj keepp %s/\v(.)\b\ze\1?//ge " Remove empty lines above the header call cursor(1, 1) let n = search(".*(.*)", "c") if n > 1 exe "1," . n-1 . "d" endif setlocal nomodified readonly syntax on endfunction
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
README.txt | File | 976 B | 0644 |
|
getscriptPlugin.vim | File | 1.36 KB | 0644 |
|
gzip.vim | File | 2.44 KB | 0644 |
|
logiPat.vim | File | 10.03 KB | 0644 |
|
manpager.vim | File | 676 B | 0644 |
|
matchparen.vim | File | 6.91 KB | 0644 |
|
netrwPlugin.vim | File | 9.67 KB | 0644 |
|
rrhelper.vim | File | 1.38 KB | 0644 |
|
spellfile.vim | File | 499 B | 0644 |
|
tarPlugin.vim | File | 2.22 KB | 0644 |
|
tohtml.vim | File | 10.22 KB | 0644 |
|
vimballPlugin.vim | File | 2.83 KB | 0644 |
|
zipPlugin.vim | File | 2.45 KB | 0644 |
|