diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 7bf34a8..18be551 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -90,14 +90,19 @@ if has('langmap') && exists('+langremap') && &langremap set nolangremap endif -" Load matchit.vim, but only if the user hasn't installed a newer version. -if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' - runtime! macros/matchit.vim -endif - if empty(mapcheck('', 'i')) inoremap u endif if empty(mapcheck('', 'i')) inoremap u endif + +" Load matchit.vim, but only if the user hasn't installed a newer version. +if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' + runtime! macros/matchit.vim +endif + +" Enable the :Man command shipped inside Vim's man filetype plugin. +if exists(':Man') != 2 && !exists('g:loaded_man') && &filetype !=? 'man' && !has('nvim') + runtime ftplugin/man.vim +endif