Work around hostile ftplugin/man.vim

References: https://github.com/neovim/neovim/issues/15487
This commit is contained in:
Tim Pope
2021-08-26 01:27:42 -04:00
parent 7e21d414a8
commit ad8c1c80cc

View File

@@ -2961,6 +2961,9 @@ function! s:TempReadPost(file) abort
call fugitive#MapJumps()
endif
if has_key(dict, 'filetype')
if dict.filetype ==# 'man' && has('nvim')
let b:man_sect = matchstr(getline(1), '^\w\+(\zs\d\+\ze)')
endif
let &l:filetype = dict.filetype
endif
setlocal foldmarker=<<<<<<<<,>>>>>>>>