renamec.vim : Renaming refactoring for C symbols using cscope
| script karma
Downloaded by 803
Comments, bugs, improvements
script versions (upload new version)
|I have not used or modified this script in a long time. Christophe-Marie Duquesne has published a script that is based on this script here, you will probably want to have a look at http://www.vim.org/scripts/script.php?script_id=3028
A simple function to rename a C (and possibly C++) symbols (functions/variables) in multiple files using cscope information. Maybe just a starting point to adapt to your own needs, but at least works for me.
With the mapping below, one can start the renaming with \r, enter the new name and it will be renamed (using a simple substitution on the lines returned by cscope) in all files. Needs an up to date cscope reference file (see below).
|Put renamec.vim in your plugin directory. I use the following mapping
noremap <Leader>r :call Renamec()<cr>
to start the renaming with \r and
map <F12> :!cscope -R -k -b<CR>:cs reset<CR>
to update the cscope reference file.
Click on the package to download.
ip used for rating: 188.8.131.52