mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ftplugin/man: Finish early if &filetype is not man
Many people have `runtime ftplugin/man.vim` in their init file, as was
required in Vim to have the `:Man` command generally available.
7a4d069b
removed the &filetype check, which caused these setups to
always create a blank `man://` buffer.
This commit is contained in:
parent
b025474258
commit
9337e98b16
@ -1,7 +1,7 @@
|
|||||||
" Maintainer: Anmol Sethi <anmol@aubble.com>
|
" Maintainer: Anmol Sethi <anmol@aubble.com>
|
||||||
" Previous Maintainer: SungHyun Nam <goweol@gmail.com>
|
" Previous Maintainer: SungHyun Nam <goweol@gmail.com>
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin') || &filetype !=# 'man'
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user