all repos — dotfiles @ 0e527c5e6a5124aa303d423910a614858efe4b0c

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