How should I rename my current file in Vim?
For example:
person.html_erb_spec.rb
person
21条回答 野趣味 (楼主) 2021-01-29 18:02 :sav newfile | !rm # Note that it does not remove the old file from the buffer list. If that's important to you, you can use the following instead: :sav newfile | bd# | !rm # 0 讨论(0) 查看其它21个回答 发布评论: 提交评论 加载中... 自定义标题段落格式字体字号代码语言点击上传x 验证码 看不清? 提交回复
:sav newfile | !rm #
Note that it does not remove the old file from the buffer list. If that's important to you, you can use the following instead:
:sav newfile | bd# | !rm #
热议问题