Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update cscope db from vim

Tags:

I use cscope with vim. When doing large edits for several files, cscope will report old line numbers for changed files. How can I rebuild cscope db from vim without losing

  • opened tabs/windowses in vim
  • connection with cscope engine

Thanks

like image 380
osgx Avatar asked Apr 30 '10 10:04

osgx


People also ask

How do I update my Cscope database?

First, you need to update cscope database. Then, reinit the database from vim. When there is an existing connection to the cscope database cscope. out , cscope creates another one ncscope.


1 Answers

First, you need to update cscope database.

:!cscope -Rbq 

Then, reinit the database from vim.

:cs reset 
like image 122
czchen Avatar answered Sep 25 '22 19:09

czchen