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.
This commit is contained in:
Justin M. Keyes 2015-09-25 21:49:44 -04:00
parent af0ca25ba9
commit 399864dc28

View File

@ -2,6 +2,10 @@
" Language: man
" Maintainer: SungHyun Nam <goweol@gmail.com>
if has('vim_starting') && &filetype !=# 'man'
finish
endif
" Only do this when not done yet for this buffer
if exists('b:did_ftplugin')
finish