From 9b92e40be212173dae0d00ebc43bc70e2aad847d Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 1 Oct 2022 22:12:54 +0200 Subject: [PATCH] plugins: Fix manpager collision with vim on gentoo --- plugins.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins.vim b/plugins.vim index 7b9a642..c1c4e6f 100644 --- a/plugins.vim +++ b/plugins.vim @@ -25,7 +25,11 @@ Plug 'junegunn/vim-easy-align' Plug 'thinca/vim-fontzoom' -Plug 'lambdalisue/vim-manpager', {'on': 'MANPAGER'} +" vim-core on Gentoo does ship a manpager plugin that collides with MANPAGER +" definition. +if has('nvim') || stridx(system("uname -r"), "-gentoo") == -1 + Plug 'lambdalisue/vim-manpager', {'on': 'MANPAGER'} +endif " Make . more useful after a plugin map Plug 'tpope/vim-repeat' -- 2.39.5