vimcscope

update cscope db from vim


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

Thanks


Solution

  • First, you need to update cscope database.

    :!cscope -Rbq
    

    Then, reinit the database from vim.

    :cs reset