How should I rename my current file in Vim?
For example:
person.html_erb_spec.rb
person
: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 #