" Vim plugin for using Vim as manpager.
" Maintainer: Enno Nagel <ennonagel+vim@gmail.com>
-" Last Change: 2022 Oct 17
+" Last Change: 2024 Jul 03
if exists('g:loaded_manpager_plugin')
finish
endif
syntax on
- " Make this an unlisted, readonly scratch buffer
- setlocal buftype=nofile noswapfile bufhidden=hide nobuflisted readonly
-
" Ensure text width matches window width
setlocal foldcolumn& nofoldenable nonumber norelativenumber
" Finished preprocessing the buffer, prevent any further modifications
setlocal nomodified nomodifiable
+ " Make this an unlisted, readonly scratch buffer
+ setlocal buftype=nofile noswapfile bufhidden=hide nobuflisted readonly
+
" Set filetype to man even if ftplugin is disabled
setlocal filetype=man
runtime ftplugin/man.vim