aboutsummaryrefslogtreecommitdiff
path: root/nvim/.config/nvim/plugin/help.vim
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-22 03:34:08 +0100
committerAkshay <[email protected]>2020-07-22 03:34:08 +0100
commit51810b5c07e20982ebdf66f0bfb384c4bf55ad7d (patch)
treeb5120bfc9b0ca72c9293afb9ed6e2e632a811deb /nvim/.config/nvim/plugin/help.vim
squash again
Diffstat (limited to 'nvim/.config/nvim/plugin/help.vim')
-rw-r--r--nvim/.config/nvim/plugin/help.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/nvim/.config/nvim/plugin/help.vim b/nvim/.config/nvim/plugin/help.vim
new file mode 100644
index 0000000..9e1c998
--- /dev/null
+++ b/nvim/.config/nvim/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 = 1
16