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.
Permalink
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

README.mdown

Git branch of http://www.vim.org/scripts/script.php?script_id=1928

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

Copyright June 2007 by Christian J. Robinson (infynity@onewest.net)
Updated August 2011 by Dan Rogers (dan@danro.net)

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

Changes

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

Usage:

:rename[!] {newname}