E492: Not an editor command: TagbarToggle

3.1k views Asked by At

I've succeeded to install tagbar with vim-plug in my .vimrc file. I've also installed a keybinding that use F8 to open tagbar. However, each time I use that key, I obtained the error in the title. Could anyone be able to tell me how to fix it?

The keybinding is : nmap <F8> :TagbarToggle<CR>

The plugin is build like

 call plug#begin() 
 Plug 'majutsushi/tagbar' 

# ...   
 call plug#end() 
1

There are 1 answers

1
Arithran On

looks like you haven't installed the plugin correctly.

did you run install in command mode?

:PlugInstall

You also need to install the ctags binary since its a dependency if you don't already have it. https://github.com/majutsushi/tagbar#dependencies