Is it possible to rename the file I'm editing from within Vim? Currently what I do is exit Vim, rename the file and open from Vim again.
How can I rename the file I'm editing?
save;file operations
You could save the file under a different name using :w. But this operation won't remove the old file and the 'old' file stays in your buffer, so any changes will be applied to your 'old' file.:saveas saves your new file and opens it in a new buffer. But it doesn't delete the old file.I use tpope/vim-eneuch to :Move files.:Move: Rename a buffer and the file on disk simultaneously.