diff --git a/vimrc b/vimrc index 7982e99..1554938 100644 --- a/vimrc +++ b/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 \T" + endif +endfunction + " }}}