config/nvim/plugin/help.vim (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
" 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 |