all repos — dotfiles @ d7b391845abc7e97f2b1b96c34b4b1789b2ab541

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