sponsor Vim development Vim logo Vim Book Ad

Rename : Rename a buffer within Vim and on disk

 script karma  Rating 365/165, Downloaded by 8971  Comments, bugs, improvements  Vim wiki

created by
Christian J. Robinson
script type
A command and function that basically does a ":saveas <newfile>" then removes the old filename on the disk.
install details
Either :source it or put it in your plugin directory.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
Rename.vim 0.5 2022-08-22 9.0 Christian J. Robinson - Update for Vim 9 (no new features)
Rename.vim 0.4 2021-07-16 7.2 Christian J. Robinson Minor tweaks
Rename.vim 0.3 2011-08-23 7.2 Christian J. Robinson - Multi-byte characters in the destination filename could cause issues
Rename.vim 0.2 2011-08-16 7.0 Christian J. Robinson - Minor correction in the :command definition to resolve issues with Windows style paths
Rename.vim 0.1 2007-06-18 7.0 Christian J. Robinson Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github