mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
af0ca25ba9
commit
399864dc28
@ -2,6 +2,10 @@
|
|||||||
" Language: man
|
" Language: man
|
||||||
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
||||||
|
|
||||||
|
if has('vim_starting') && &filetype !=# 'man'
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
|
Loading…
Reference in New Issue
Block a user