I am trying to use the CCTree plugin for vim, but when I try to add the following line to my vimrc to autoload the cscope database for CCTree every time vim is opened, I get an error. This is the command copied straight from the CCTree website (https://sites.google.com/site/vimcctree/faq):
autocmd VimEnter * if filereadable('cscope.out') | CCTreeLoadDB cscope.out | endif
The error I get is:
Error detected while processing VimEnter Auto commands for "*":
E172: Only one file name allowed: CCTreeLoadDB cscope.out | endif
I would have assumed this would work as it is straight from the CCtree website but I don't know how to debug this as I've barely used/edited my vimrc file. Any help would be appreciated.