mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-10 03:53:48 -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
|
set nolangremap
|
||||||
endif
|
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'))
|
if empty(mapcheck('<C-U>', 'i'))
|
||||||
inoremap <C-U> <C-G>u<C-U>
|
inoremap <C-U> <C-G>u<C-U>
|
||||||
endif
|
endif
|
||||||
if empty(mapcheck('<C-W>', 'i'))
|
if empty(mapcheck('<C-W>', 'i'))
|
||||||
inoremap <C-W> <C-G>u<C-W>
|
inoremap <C-W> <C-G>u<C-W>
|
||||||
endif
|
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