open help in new tab instead of split

This commit is contained in:
Thomas Ruoff
2018-02-25 23:54:31 +01:00
parent 36358e6f93
commit 80b7476204

14
vimrc
View File

@@ -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
" }}}