In my Vim editor I want to overwrite a file, so I type colon and start typing:
:saveas app/assets/javascripts/some.js
I get
E13: File exists (add ! to override)
How do I overwrite this file using saveas from Vim?
In my Vim editor I want to overwrite a file, so I type colon and start typing:
:saveas app/assets/javascripts/some.js
I get
E13: File exists (add ! to override)
How do I overwrite this file using saveas from Vim?
:saveas! filename
Take a look at this answer as well, it explains how to use the existing name, if you wanted to create a ".backup" Save file with new filename: append to existing filename