aboutsummaryrefslogtreecommitdiff
path: root/nvim/.config/nvim/plugin/help.vim
blob: 9e1c9987b30eeec4f350fe05bf0be63819ce6b49 (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 = 1