Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove vim/plugin/Rename in favor of tpope's eunuch

  • Loading branch information...
commit 6f311f8ae2f6adb0dff75dd98bfda1db3c206872 1 parent 43fad4e
@blueyed authored
Showing with 0 additions and 27 deletions.
  1. +0 −27 vim/plugin/Rename.vim
View
27 vim/plugin/Rename.vim
@@ -1,27 +0,0 @@
-" Rename.vim - Rename a buffer within Vim and on the disk
-"
-" Copyright June 2007 by Christian J. Robinson <infynity@onewest.net>
-"
-" Distributed under the terms of the Vim license. See ":help license".
-"
-" Usage:
-"
-" :Rename[!] {newname}
-
-command! -nargs=* -complete=file -bang Rename :call Rename("<args>", "<bang>")
-
-function! Rename(name, bang)
- let l:curfile = expand("%:p")
- let v:errmsg = ""
- silent! exe "saveas" . a:bang . " " . a:name
- if v:errmsg =~# '^$\|^E329'
- if expand("%:p") !=# l:curfile && filewritable(expand("%:p"))
- silent exe "bwipe! " . l:curfile
- if delete(l:curfile)
- echoerr "Could not delete " . l:curfile
- endif
- endif
- else
- echoerr v:errmsg
- endif
-endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.