Update runtime files.

This commit is contained in:
Bram Moolenaar
2022-06-06 20:52:59 +01:00
parent 3760bfddc4
commit 016188fd8a
13 changed files with 225 additions and 1190 deletions

View File

@ -1,11 +1,14 @@
" Vim plugin for using Vim as manpager.
" Maintainer: Enno Nagel <ennonagel+vim@gmail.com>
" Last Change: 2020 Aug 05
" Last Change: 2022 Jun 05
command! -nargs=0 MANPAGER call s:ManPager() | delcommand MANPAGER
function! s:ManPager()
set nocompatible
function s:ManPager()
" global options, keep these to a minimum to avoid side effects
if &compatible
set nocompatible
endif
if exists('+viminfofile')
set viminfofile=NONE
endif
@ -27,7 +30,7 @@ function! s:ManPager()
if n > 1
exe "1," . n-1 . "d"
endif
setlocal nomodified readonly
setlocal nomodifiable nomodified readonly nowrite
syntax on
endfunction