summaryrefslogtreecommitdiff
path: root/plugin/help.vim
blob: decdab69fd8bff34c4a90f2cfb127e680c67053a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Only apply to .txt files...
augroup HelpInTabs
    autocmd!
    autocmd BufEnter  *.txt   call HelpInNewTab()
augroup END

" Only apply to help files...
function! HelpInNewTab ()
    if &buftype == 'help' && g:help_in_tabs
        "Convert the help window to a tab...
        execute "normal \<C-W>T"
    endif
endfunction

let g:help_in_tabs = 0