ReplaceFile : Replace Current File with new File
| script karma
Downloaded by 445
Comments, bugs, improvements
script versions (upload new version)
|Life-changing utility for saving files under new names in Vim with automated clean up of the old file's buffer and hard disk version.
Call the function by one of the methods below. Insert the desired new /optional/newpath/filename and press <Enter>.
The new file will be saved, a buffer for it will be opened, the old file's buffer closed and the old file deleted (if was written to disk).
Method 1 (preferred):
brings up the function call with the current file's full path.
will operate from Vim's CWD, not with the buffers directory.
The default mapping is:
If you want to change that, put
in your vimrc.
Added BufKill support to be able to delete/unload/wipeout a buffer without loosing it's window.
Get BufKill here: vimscript#1147 (not neccessary, but really recommended)
|Just put the repfile.vim in your .vim/plugin directory and restart vim!|
Click on the package to download.
ip used for rating: 22.214.171.124