Rename the current file in the vim buffer + retain relative path.
Vim script
Latest commit f133763 Mar 23, 2014 @danro Merge pull request #2 from AlexJF/master
Fix errors with unescaped characters in path and improved complete.
Failed to load latest commit information.
plugin Fix typod ')' Jun 17, 2013
.gitignore Initial commit Aug 12, 2011
README.mdown Edit README Aug 12, 2011


Git branch of

rename.vim - Rename a buffer within Vim and on the disk

Copyright June 2007 by Christian J. Robinson (
Updated August 2011 by Dan Rogers (

Distributed under the terms of the Vim license. See ":help license".


  • Now retains path relative to global current directory.
  • Added lowercase "rename" alias.


:rename[!] {newname}