Avoiding duplicate cscope database error within VIM
One of my colleague came to me with this below error :
Error detected while processing /home/sriramn/.vim/plugin/cscope.vim:
line 45:E568: duplicate cscope database not added
Hit ENTER or type command to continue
earlier in the day. Since the solution is pretty straight forward and there does not seems to be a clear resolution on this within "google" , I thought would share the solution here just in case some one ran into this very similar issue .. I am not a big fan of IDE's like Netbeans or Eclipse and would like to call myself a "Happy VIM camper". Though, I occasionally love writing PHP code in Netbeans .
Okay, coming back to this issue : This error pops up when VIM is already compiled with 'CSCOPE' module and you have also installed "[I][B]cscopemenu.vim[/B][/I]" plugin from here. To fix this issue, you will need to simply edit the file "[I][B]~/.vim/plugin/cscopemenu.vim[/B][/I]" and edit the line :
You can also do the same by doing this by adding this line "[I][B]set nocscopeverbose[/B][/I] " to your ~/.vimrc file as well.
[url=http://blogs.sun.com/natarajan/entry/avoiding_duplicate_cscope_database_error]Read More about [Avoiding duplicate cscope database error within VIM...[/url]