forked from vim-scripts/refactor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
18 lines (13 loc) · 775 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2087
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 [email protected] 2007/12/4