Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix load error message on Linux, fix documentation, and cleanup whitespace #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions README
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
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.
This plugin contains some basic refactoring commands for C and C++. Due to the
complexity of C++, instead of actually parsing the source code, I used regular
expression matching--but, based on my testing, it works well.

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.
NOTE: It doesn't work for old-style parameter declarations! I admit that it may
mess up your code sometime if you occasionally forget the rules. Thanks to the
kind man who pointed this out.


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
The refactor commands and their default key mappings 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
BiDongliang [email protected] 2007/12/4
Loading