aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-09-25 21:49:44 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-09-25 22:04:45 -0400
commit399864dc28498496bb82cdeb7b4aeae935cd667d (patch)
treea9bbff0a65293d5c46f9e14deb5f7b1150a23fa1
parentaf0ca25ba9a87bdaa5e854a09094afc97ff964ef (diff)
downloadrneovim-399864dc28498496bb82cdeb7b4aeae935cd667d.tar.gz
rneovim-399864dc28498496bb82cdeb7b4aeae935cd667d.tar.bz2
rneovim-399864dc28498496bb82cdeb7b4aeae935cd667d.zip
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.
-rw-r--r--runtime/ftplugin/man.vim4
1 files changed, 4 insertions, 0 deletions
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 <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