From 399864dc28498496bb82cdeb7b4aeae935cd667d Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 25 Sep 2015 21:49:44 -0400 Subject: [PATCH] man.vim: Prevent sourcing in startup. It is common practice for Vim users to :runtime! ftplugin/man.vim in order to get the :Man command. That will cause weird settings for non-man files. --- runtime/ftplugin/man.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 38b55e6a83..133a28e626 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -2,6 +2,10 @@ " Language: man " Maintainer: SungHyun Nam +if has('vim_starting') && &filetype !=# 'man' + finish +endif + " Only do this when not done yet for this buffer if exists('b:did_ftplugin') finish