Skip to content

Commit 9984a14

Browse files
hiberabyssBruno Sutic
authored andcommitted
add new Tman command to open manual in new tab
1 parent ed94a58 commit 9984a14

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

autoload/man.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ function! s:get_new_or_existing_man_window(split_type)
153153
if &filetype != 'man'
154154
if a:split_type == 'vertical'
155155
vnew
156+
elseif a:split_type == 'tab'
157+
tabnew
156158
else
157159
new
158160
endif

plugin/man.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set cpo&vim
99
command! -nargs=* -bar -complete=customlist,man#completion#run Man call man#get_page('horizontal', <f-args>)
1010
command! -nargs=* -bar -complete=customlist,man#completion#run Sman call man#get_page('horizontal', <f-args>)
1111
command! -nargs=* -bar -complete=customlist,man#completion#run Vman call man#get_page('vertical', <f-args>)
12+
command! -nargs=* -bar -complete=customlist,man#completion#run Tman call man#get_page('tab', <f-args>)
1213

1314
command! -nargs=+ -bang Mangrep call man#grep#run(<bang>0, <f-args>)
1415

0 commit comments

Comments
 (0)