Skip to content

Commit 7037215

Browse files
committed
add map to redraw text of manpage
1 parent b326e13 commit 7037215

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

autoload/man.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function! man#get_page(split_type, ...)
3737
call s:get_new_or_existing_man_window(a:split_type)
3838
call man#helpers#set_manpage_buffer_name(page, sect)
3939
call man#helpers#load_manpage_text(page, sect)
40+
execute "nnoremap <buffer><silent> R :call man#helpers#load_manpage_text('".page."','".sect."')<CR>"
4041
endfunction
4142

4243
function! s:manpage_exists(sect, page)

doc/man.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ CTRL-] Jump to man page for a word under cursor (all the
9191
*man-K*
9292
K Same as |man-CTRL-]|.
9393

94+
*man-R*
95+
R Redraw the man page, useful after vertical resize.
96+
9497
*man-CTRL-T*
9598
CTRL-T Jump back to the previous man page.
9699

0 commit comments

Comments
 (0)