mirror of
https://github.com/neovim/neovim.git
synced 2025-12-05 22:22:44 +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
|
||||
" 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
|
||||
|
||||
Reference in New Issue
Block a user