plugins: Fix manpager collision with vim on gentoo
authorStefan Huber <shuber@sthu.org>
Sat, 1 Oct 2022 20:12:54 +0000 (22:12 +0200)
committerStefan Huber <shuber@sthu.org>
Sat, 1 Oct 2022 20:12:54 +0000 (22:12 +0200)
plugins.vim

index 7b9a642c4a4020c1ca70412336742fc2c2c430a8..c1c4e6fbb48dafac39735cd3e14635252098c868 100644 (file)
@@ -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'