From 9337e98b1608d85994a0afccaf1c80fbd4732f24 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sat, 3 Dec 2016 21:12:31 -0500 Subject: [PATCH] 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. --- runtime/ftplugin/man.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index b8acd901a8..63bafa1925 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Maintainer: Anmol Sethi " Previous Maintainer: SungHyun Nam -if exists('b:did_ftplugin') +if exists('b:did_ftplugin') || &filetype !=# 'man' finish endif let b:did_ftplugin = 1