Re: moving buffer changes to new file?

2007-02-25 Thread Pavel Shevaev
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

Re: moving buffer changes to new file?

2007-02-25 Thread Matthew Winn
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

Re: moving buffer changes to new file?

2007-02-25 Thread Yakov Lerner
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

Re: moving buffer changes to new file?

2007-02-24 Thread Pavel Shevaev
:h :saveas BTW, is it possible somehow to rename file not save as? hth, Alan Isaac -- Best regards, Pavel

Re: moving buffer changes to new file?

2007-02-22 Thread Alan G Isaac
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

moving buffer changes to new file?

2007-02-22 Thread Lev Lvovsky
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