diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-26 08:45:34 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-26 08:45:34 +0100 |
commit | 740a60811c4647eecf3e2f82a24dccc1abbd686a (patch) | |
tree | bbd2f09772ccdbb9ee846522ac14779477917b53 /ftdetect | |
parent | 28388008327aacfc48db3c31f415564d93cd983f (diff) | |
download | vim-polyglot-740a60811c4647eecf3e2f82a24dccc1abbd686a.tar.gz vim-polyglot-740a60811c4647eecf3e2f82a24dccc1abbd686a.zip |
Use nroff filetype for man pages, closes #611
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 19d459ca..22839535 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -145,10 +145,6 @@ if !has_key(g:polyglot_is_disabled, 'xpm') au BufNewFile,BufRead *.xpm setf xpm endif -if !has_key(g:polyglot_is_disabled, 'man') - au BufNewFile,BufRead *.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc setf man -endif - if !has_key(g:polyglot_is_disabled, 'xf86conf') au BufNewFile,BufRead */xorg.conf.d/*.conf,xorg.conf,xorg.conf-4 setf xf86conf au BufNewFile,BufRead XF86Config-4* call s:StarSetf('xf86conf') @@ -866,6 +862,7 @@ if !has_key(g:polyglot_is_disabled, 'nqc') endif if !has_key(g:polyglot_is_disabled, 'nroff') + au BufNewFile,BufRead *.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc setf nroff au BufNewFile,BufRead *.mom,*.nr,*.roff,*.tmac,*.tr setf nroff au BufNewFile,BufRead tmac.* call s:StarSetf('nroff') endif |