From ef7aa33d7b255829d14f68eca953c05aab7d015d Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sun, 24 Apr 2011 01:03:21 +1200 Subject: [PATCH] Document ways of automatically opening Tagbar --- doc/tagbar.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/tagbar.txt b/doc/tagbar.txt index aaaa680..134971c 100644 --- a/doc/tagbar.txt +++ b/doc/tagbar.txt @@ -18,6 +18,7 @@ Contents *tagbar* *tagbar-contents* Key mappings .................. |tagbar-keys| 5. Configuration ................... |tagbar-configuration| Highlight colours ............. |tagbar-highlight| + Automatically opening Tagbar .. |tagbar-autoopen| 6. Extending Tagbar ................ |tagbar-extend| 7. Bugs and limitations ............ |tagbar-bugs| 8. History ......................... |tagbar-history| @@ -426,6 +427,24 @@ your vimrc: < See |:highlight| for more information. +------------------------------------------------------------------------------ +AUTOMATICALLY OPENING TAGBAR *tagbar-autoopen* + +If you want Tagbar to open automatically, for example on Vim startup or for +specific filetypes, there are various ways to do it. For example, to always +open Tagbar on Vim startup you can put this into your vimrc file: +> + autocmd VimEnter * nested TagbarOpen +< +If you want to have it start for specific filetypes put +> + TagbarOpen +< +into a corresponding filetype plugin (see |filetype-plugin|). + +Check out |autocmd.txt| if you want it to automatically open in more +complicated cases. + ============================================================================== 6. Extending Tagbar *tagbar-extend*