summaryrefslogtreecommitdiff
path: root/plugin/help.vim
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-07-23 20:26:43 +0100
committerAkshay <[email protected]>2024-07-23 20:26:43 +0100
commitddc6f72c5b1cf6916ef2705b226d0c53950b9386 (patch)
tree56b1d651dfe18a5e45b8cc6477ff8cb49991d98c /plugin/help.vim
init
Diffstat (limited to 'plugin/help.vim')
-rw-r--r--plugin/help.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugin/help.vim b/plugin/help.vim
new file mode 100644
index 0000000..decdab6
--- /dev/null
+++ b/plugin/help.vim
@@ -0,0 +1,16 @@
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 = 0
16