rename.vim : rename variables and files in your code
script karma |
Rating 11/4,
Downloaded by 1400 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Christophe-Marie Duquesne |
|
script type |
utility |
|
description |
IMPORTANT:
It is recommended to use EasyGrep.vim rather than this script. The "replace" feature does nearly the same thing, and the implementation is much better.
==
This script is a fork of renamec.vim from Bastian Mathes
It features two functions:
:call Renamec() renames the variable under the cursor. Cscope is called to get the references to the corresponding C symbol.
:call Renamef() renames the file under the cursor. The references to this files (like #include"path/to/file") are updated.
- When renaming a variable or a file, the quickfix list is updated, so you can jump in the code to modified parts (for example to check if the comments need an update).
- The buffers where the modifications occured are not unloaded and changes are joined so that they can be canceled easily with ':bufdo undo'
|
|
install details |
open the vimball archive with vim and source it with ':so %' |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.16.188.113
|