cvoltz / refactor

C/C++ refactoring tool

Home Page:http://www.vim.org/scripts/script.php?script_id=2087

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2087

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 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 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     bidongliang_2000@126.com 2007/12/4

About

C/C++ refactoring tool

http://www.vim.org/scripts/script.php?script_id=2087


Languages

Language:Vim Script 100.0%