sponsor Vim development Vim logo Vim Book Ad

refactor : C/C++ refactoring tool

 script karma  Rating 74/43, Downloaded by 4221  Comments, bugs, improvements  Vim wiki

created by
bi dongliang
 
script type
utility
 
description
This plugin contains some basic refactoring commands for C/C++.
For the complexity of C++, instead of really parse the source code, I used
regular expression matches. But it works well as I tested.

NOTE: It doesn't work for old style parameter declaratoins! And I admit that it may mess up your code sometime if you occasionally forget the rules. Thanks for the kind man who point out this.


The refactor commands and their default key map currently are:
1. <A-r>e Extract method
2. <A-r>p local variable to Parameter
3. <A-r>r Rename local variable
4. <A-r>d Delete parameter
5. <A-r>o reOrder parameters
6. <A-r>c introduce Constant

BiDongliang bidongliang_2000@126.com 2007/12/4
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
refactor.vim 1.03 2007-12-05 6.0 bi dongliang Updated some messages to help using more easy.
refactor.vim 1.02 2007-12-03 6.0 bi dongliang Parse error of variable defination with initialization.
refactor.vim 1.01 2007-12-03 6.0 bi dongliang Add word boundary to some patterns. (\<\>)
ip used for rating: 18.226.93.209

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github