rename.vim
rename.vim copied to clipboard
Rename the current file in the vim buffer + retain relative path.
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 ([email protected])
Updated August 2011 by Dan Rogers ([email protected])
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}