ftplugin/man: Finish early if &filetype is not man

Many people have `runtime ftplugin/man.vim` in their init file, as was
required in Vim to have the `:Man` command generally available.
7a4d069b removed the &filetype check, which caused these setups to
always create a blank `man://` buffer.
This commit is contained in:
James McCoy
2016-12-03 21:12:31 -05:00
parent b025474258
commit 9337e98b16

View File

@@ -1,7 +1,7 @@
" Maintainer: Anmol Sethi <anmol@aubble.com>
" Previous Maintainer: SungHyun Nam <goweol@gmail.com>
if exists('b:did_ftplugin')
if exists('b:did_ftplugin') || &filetype !=# 'man'
finish
endif
let b:did_ftplugin = 1