【发布时间】:2012-09-11 06:30:56
【问题描述】:
作为 Python 自动完成 (https://github.com/davidhalter/jedi) 的次要任务,我正在编写一个能够重命名(重构)的 VIM 插件。
最舒适的重命名方法是使用cw 和autocommand InsertLeave :call do_renaming_func()。为此,我需要访问redo-register(参见help redo-register)或类似的东西,它会记录书面文本。
如果可能,我喜欢不使用宏来执行此操作,因为我不想搞砸任何事情。
【问题讨论】:
标签: python vim autocomplete refactoring rename