diff options
author | Akshay <[email protected]> | 2021-02-15 08:52:32 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-02-15 08:52:32 +0000 |
commit | fcaf13a267b7bacd26ad8b2e952a793645e42bba (patch) | |
tree | 6e795b46b1fbefb05151e95c0346951d67fac4e7 /plugin/help.vim |
init
Diffstat (limited to 'plugin/help.vim')
-rw-r--r-- | plugin/help.vim | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ | |||
1 | " Only apply to .txt files... | ||
2 | augroup HelpInTabs | ||
3 | autocmd! | ||
4 | autocmd BufEnter *.txt call HelpInNewTab() | ||
5 | augroup END | ||
6 | |||
7 | " Only apply to help files... | ||
8 | function! 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 | ||
13 | endfunction | ||
14 | |||
15 | let g:help_in_tabs = 1 | ||
16 | |||