File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ View man pages in vim. Grep for the man pages.
25
25
specially highlighted references to other man pages i.e. ` printf(3) ` ), also
26
26
defined for other tag mappings like ` g_Ctrl-] ` , ` Ctrl-W_Ctrl-] ` etc.
27
27
- ` K ` - same as ` Ctrl-] `
28
+ - ` R ` - redraw manpage text, useful after a vertical resize
28
29
- ` Ctrl-T ` - jump \* back* to the previous man page
29
30
- ` gx ` - open a link under cursor in a browser
30
31
([ vim feature] ( http://vimdoc.sourceforge.net/htmldoc/pi_netrw.html#netrw-gx ) )
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ function! man#get_page(split_type, ...)
37
37
call s: get_new_or_existing_man_window (a: split_type )
38
38
call man#helpers#set_manpage_buffer_name (page, sect )
39
39
call man#helpers#load_manpage_text (page, sect )
40
+ execute " nnoremap <buffer><silent> R :call man#helpers#load_manpage_text('" .page." ','" .sect ." ')<CR>"
40
41
endfunction
41
42
42
43
function ! s: manpage_exists (sect , page)
Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ CTRL-] Jump to man page for a word under cursor (all the
91
91
*man-K*
92
92
K Same as | man-CTRL-] | .
93
93
94
+ *man-R*
95
+ R Redraw the man page, useful after vertical resize.
96
+
94
97
*man-CTRL-T*
95
98
CTRL-T Jump back to the previous man page.
96
99
You can’t perform that action at this time.
0 commit comments