diff options
| author | James McCoy <jamessan@jamessan.com> | 2016-12-03 21:12:31 -0500 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2016-12-03 21:27:43 -0500 |
| commit | 9337e98b1608d85994a0afccaf1c80fbd4732f24 (patch) | |
| tree | 27039a0381222039b0ab3ddb6b62677a4322eded | |
| parent | b025474258c602dc1ff7ec61045c90c98a8511fc (diff) | |
| download | rneovim-9337e98b1608d85994a0afccaf1c80fbd4732f24.tar.gz rneovim-9337e98b1608d85994a0afccaf1c80fbd4732f24.tar.bz2 rneovim-9337e98b1608d85994a0afccaf1c80fbd4732f24.zip | |
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.
| -rw-r--r-- | runtime/ftplugin/man.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index b8acd901a8..63bafa1925 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Maintainer: Anmol Sethi <anmol@aubble.com> " Previous Maintainer: SungHyun Nam <goweol@gmail.com> -if exists('b:did_ftplugin') +if exists('b:did_ftplugin') || &filetype !=# 'man' finish endif let b:did_ftplugin = 1 |