File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,17 @@ in your |vimrc|:
111111 map <leader>v <Plug>(Vman)
112112<
113113
114+ OPTIONS *man-options*
115+
116+ man_split_type *g:man_split_type*
117+
118+ Change the default split type when using | :Man | . Valid values are
119+ 'horizontal' , 'vertical' , or 'tab'
120+
121+ >
122+ let g:man_split_type = 'horizontal'
123+ <
124+
114125CONTRIBUTING *man-contributing* *man-bugs*
115126
116127Contributing and bug fixes are welcome. If you have an idea for a new feature
Original file line number Diff line number Diff line change @@ -6,15 +6,19 @@ let g:loaded_man = 1
66let s: save_cpo = &cpo
77set cpo &vim
88
9- command ! -nargs =* - bar -complete =customlist ,man#completion#run Man call man#get_page (' horizontal' , <f-args> )
9+ if ! exists (' g:man_split_type' )
10+ let g: man_split_type = ' horizontal'
11+ endif
12+
13+ command ! -nargs =* - bar -complete =customlist ,man#completion#run Man call man#get_page (g: man_split_type , <f-args> )
1014command ! -nargs =* - bar -complete =customlist ,man#completion#run Sman call man#get_page (' horizontal' , <f-args> )
1115command ! -nargs =* - bar -complete =customlist ,man#completion#run Vman call man#get_page (' vertical' , <f-args> )
1216command ! -nargs =* - bar -complete =customlist ,man#completion#run Tman call man#get_page (' tab' , <f-args> )
1317
1418command ! -nargs =+ - bang Mangrep call man#grep#run (<bang> 0 , <f-args> )
1519
1620" map a key to open a manpage for word under cursor, example: map ,k <Plug>(Man)
17- nnoremap <silent> <Plug> (Man) :<C-U> call man#get_page_from_cword('horizontal' , v:count)<CR>
21+ nnoremap <silent> <Plug> (Man) :<C-U> call man#get_page_from_cword(g:man_split_type , v:count)<CR>
1822nnoremap <silent> <Plug> (Sman) :<C-U> call man#get_page_from_cword('horizontal', v:count)<CR>
1923nnoremap <silent> <Plug> (Vman) :<C-U> call man#get_page_from_cword('vertical', v:count)<CR>
2024
You can’t perform that action at this time.
0 commit comments