From 80b74762047669a6ce3e115631ca6dca429510ed Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sun, 25 Feb 2018 23:54:31 +0100 Subject: [PATCH] open help in new tab instead of split --- vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 + " }}}