man.vim: Ignore $MANWIDTH, use soft wrap #9023

fix #9017
close #9023
This commit is contained in:
Doron Behar
2018-09-20 18:44:48 +03:00
committed by Justin M. Keyes
parent ad6bbe4468
commit 9081cad514
2 changed files with 7 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ setlocal noexpandtab
setlocal tabstop=8
setlocal softtabstop=8
setlocal shiftwidth=8
setlocal wrap
setlocal breakindent
setlocal nonumber
setlocal norelativenumber
@@ -31,6 +33,8 @@ setlocal nolist
setlocal nofoldenable
if !exists('g:no_plugin_maps') && !exists('g:no_man_maps')
nnoremap <silent> <buffer> j gj
nnoremap <silent> <buffer> k gk
nnoremap <silent> <buffer> gO :call man#show_toc()<CR>
nnoremap <silent> <buffer> <C-]> :Man<CR>
nnoremap <silent> <buffer> K :Man<CR>