在 Vim 中重命名当前文件 [英] Renaming the current file in Vim
本文介绍了在 Vim 中重命名当前文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该如何在 Vim 中重命名当前文件?
How should I rename my current file in Vim?
例如:
- 我正在编辑
person.html_erb_spec.rb
- 我想把它重命名为
person.haml_spec.rb
- 我想继续编辑
person.haml_spec.rb
我将如何优雅地做到这一点?
How would I go about doing this, elegantly?
推荐答案
有一个 小插件让你做到这一点.
There's a little plugin that lets you do this.
这篇关于在 Vim 中重命名当前文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文