File: man.vim

package info (click to toggle)
neovim 0.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 46,716 kB
  • sloc: ansic: 199,586; python: 2,931; sh: 1,837; awk: 704; perl: 374; makefile: 317; xml: 27; ruby: 6
file content (15 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Maintainer: Anmol Sethi <anmol@aubble.com>

if exists('g:loaded_man')
  finish
endif
let g:loaded_man = 1

command! -bang -bar -range=0 -complete=customlist,man#complete -nargs=* Man
      \ if <bang>0 | set ft=man |
      \ else | call man#open_page(v:count, v:count1, <q-mods>, <f-args>) | endif

augroup man
  autocmd!
  autocmd BufReadCmd man://* call man#read_page(matchstr(expand('<amatch>'), 'man://\zs.*'))
augroup END