diff options
author | Doron Behar <doron.behar@gmail.com> | 2018-09-20 18:44:48 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-09-21 10:17:37 +0200 |
commit | 9081cad514d27ed67f0e348e9db56eddb296cc1d (patch) | |
tree | a7a600bb21cbf7751cbee5c63fc2f3bc91026a59 /runtime/ftplugin | |
parent | ad6bbe44683cf936ec2268ee89e8e1c22f538ecc (diff) | |
download | rneovim-9081cad514d27ed67f0e348e9db56eddb296cc1d.tar.gz rneovim-9081cad514d27ed67f0e348e9db56eddb296cc1d.tar.bz2 rneovim-9081cad514d27ed67f0e348e9db56eddb296cc1d.zip |
man.vim: Ignore $MANWIDTH, use soft wrap #9023
fix #9017
close #9023
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/man.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 68ebb33e45..26b51186a1 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -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> |