Enable Vim's built-in :Man command

Also move the other :runtime to the bottom, because that feels like it
should be the last thing we do.

Resolves: https://github.com/tpope/vim-sensible/issues/120
This commit is contained in:
Tim Pope
2022-12-26 00:38:21 -05:00
parent d5617d0279
commit c48736b2c3

View File

@@ -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('<C-U>', 'i'))
inoremap <C-U> <C-G>u<C-U>
endif
if empty(mapcheck('<C-W>', 'i'))
inoremap <C-W> <C-G>u<C-W>
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