mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 06:32:33 +00: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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user