all repos — dotfiles @ 7aea05e57ad97627f5907f1e8e220b61cc467254

my *nix dotfiles

config/nvim/plugin/help.vim (view raw)

 1" Only apply to .txt files...
 2augroup HelpInTabs
 3    autocmd!
 4    autocmd BufEnter  *.txt   call HelpInNewTab()
 5augroup END
 6
 7" Only apply to help files...
 8function! HelpInNewTab ()
 9    if &buftype == 'help' && g:help_in_tabs
10        "Convert the help window to a tab...
11        execute "normal \<C-W>T"
12    endif
13endfunction
14
15let g:help_in_tabs = 1