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')