Here is user-defined RENAME command that seems to work:
:command! -narg=1 RENAME if rename(expand('%'),)==0|file
|else| echo "Renaming error"| endif
Thanks! I'll give it a try...
The :rename command is in the todo list. (':help todo', search for :rename).
Oh, i see, kudos to develope
On Sun, 25 Feb 2007 10:06:18 +0300, "Pavel Shevaev"
<[EMAIL PROTECTED]> wrote:
> > :h :saveas
>
> BTW, is it possible somehow to rename file not save as?
If you mean is it possible to change the name of a buffer without
actually saving anything, then the answer is yes. Use
:f new-file-name
On 2/25/07, Pavel Shevaev <[EMAIL PROTECTED]> wrote:
> :h :saveas
BTW, is it possible somehow to rename file not save as?
Here is user-defined RENAME command that seems to work:
:command! -narg=1 RENAME if rename(expand('%'),)==0|file
|else| echo "Renaming error"| endif
The :rename comma
:h :saveas
BTW, is it possible somehow to rename file not save as?
hth,
Alan Isaac
--
Best regards, Pavel
On Thu, 22 Feb 2007, Lev Lvovsky apparently wrote:
> I often times rename a file that I'm working on after I realize (or
> am told ;) that renaming it is in order. Is there any way I can take
> the changes to that "new" file from the buffer along with the new name?
:h :saveas
hth,
Alan Isaac
I often times rename a file that I'm working on after I realize (or
am told ;) that renaming it is in order. Is there any way I can take
the changes to that "new" file from the buffer along with the new name?
thanks!
-lev