From fcaf13a267b7bacd26ad8b2e952a793645e42bba Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 15 Feb 2021 14:22:32 +0530 Subject: init --- plugin/help.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugin/help.vim (limited to 'plugin/help.vim') diff --git a/plugin/help.vim b/plugin/help.vim new file mode 100644 index 0000000..9e1c998 --- /dev/null +++ b/plugin/help.vim @@ -0,0 +1,16 @@ +" 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 \T" + endif +endfunction + +let g:help_in_tabs = 1 + -- cgit v1.2.3