mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-08 11:03:47 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user