diff --git a/README.md b/README.md index 97a8a6b..3044693 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ View man pages in vim. Grep for the man pages. specially highlighted references to other man pages i.e. `printf(3)`), also defined for other tag mappings like `g_Ctrl-]`, `Ctrl-W_Ctrl-]` etc. - `K` - same as `Ctrl-]` +- `R` - redraw manpage text, useful after a vertical resize - `Ctrl-T` - jump \*back* to the previous man page - `gx` - open a link under cursor in a browser ([vim feature](http://vimdoc.sourceforge.net/htmldoc/pi_netrw.html#netrw-gx)) diff --git a/autoload/man.vim b/autoload/man.vim index 8708801..1db7564 100644 --- a/autoload/man.vim +++ b/autoload/man.vim @@ -37,6 +37,7 @@ function! man#get_page(split_type, ...) call s:get_new_or_existing_man_window(a:split_type) call man#helpers#set_manpage_buffer_name(page, sect) call man#helpers#load_manpage_text(page, sect) + execute "nnoremap R :call man#helpers#load_manpage_text('".page."','".sect."')" endfunction function! s:manpage_exists(sect, page) diff --git a/doc/man.txt b/doc/man.txt index 8f2ab87..c5742ce 100644 --- a/doc/man.txt +++ b/doc/man.txt @@ -91,6 +91,9 @@ CTRL-] Jump to man page for a word under cursor (all the *man-K* K Same as |man-CTRL-]|. + *man-R* +R Redraw the man page, useful after vertical resize. + *man-CTRL-T* CTRL-T Jump back to the previous man page.