mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
open help in new tab instead of split
This commit is contained in:
14
vimrc
14
vimrc
@@ -316,5 +316,19 @@ augroup web
|
||||
autocmd BufRead,BufNewFile *.template set filetype=html.mustache syntax=mustache
|
||||
augroup END
|
||||
|
||||
"" Help
|
||||
augroup HelpInTabs
|
||||
autocmd!
|
||||
autocmd BufEnter *.txt call HelpInNewTab()
|
||||
augroup END
|
||||
|
||||
"Only apply to help files...
|
||||
function! HelpInNewTab ()
|
||||
if &buftype == 'help'
|
||||
"Convert the help window to a tab...
|
||||
execute "normal \<C-W>T"
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user