Using cscope with vim will allow you to browse code seamlessly. Refer to the following link for setting up the mapping between cscope and vim http://cscope.sourceforge.net/cscope_vim_tutorial.html
Download the mapping file here http://cscope.sourceforge.net/cscope_maps.vim
Go to the top-level source directory and type
I faced "duplicate database found" error and so had to comment out following lines from cscope_maps.vim
" add any cscope database in current directory
cs add cscope.out
" else add the database pointed to by environment variable
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
Also remember to open the source file from the same source level directory where you typed
cscope -Relse mapping won't work.
If you created cross-reference DB in
/srcand want to open file
/srcand then open file using