From dacf4f273e03446c157692d12fde129c7bebd092 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Tue, 25 Jun 2013 18:12:25 +1200 Subject: [PATCH] Add Tagbar command as alias for TagbarToggle, closes #151 --- doc/tagbar.txt | 3 ++- plugin/tagbar.vim | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/tagbar.txt b/doc/tagbar.txt index ff2f5d6..62cb228 100644 --- a/doc/tagbar.txt +++ b/doc/tagbar.txt @@ -261,7 +261,8 @@ COMMANDS *tagbar-commands* Close the Tagbar window if it is open. :TagbarToggle *:TagbarToggle* - Open the Tagbar window if it is closed or close it if it is open. +:Tagbar + Open the Tagbar window if it is closed, or close it if it is open. :TagbarOpenAutoClose *:TagbarOpenAutoClose* Open the Tagbar window, jump to it and close it on tag selection. This is diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 28f6560..a3cc757 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -109,6 +109,7 @@ augroup TagbarSession augroup END " Commands {{{1 +command! -nargs=0 Tagbar call tagbar#ToggleWindow() command! -nargs=0 TagbarToggle call tagbar#ToggleWindow() command! -nargs=? TagbarOpen call tagbar#OpenWindow() command! -nargs=0 TagbarOpenAutoClose call tagbar#OpenWindow('fcj')