all repos — dotfiles @ 73df1800321b760bc4114e2ab967a34a269f8d41

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