momodalo / vimtouch

vimtouch
Apache License 2.0
348 stars 71 forks source link

vimtouch doesn't accept new file name after "save as" #94

Closed nnako closed 8 years ago

nnako commented 8 years ago

After loading a text file onto the screen and editing it, :w writes the text into the original file. That's fine. Attempting to save the text with an other file name using :w <newname> works for new files as well. But doing the latter, the current file name does not Change. So subsequent usages of :w will save the text into the old file again.

Is this a BUG or just a usage mistake on my side? How can I assign a new file name to my buffer in order to be able to use the normal write command :w to keep its new file name?

rafaeln commented 8 years ago

I think this is vim. If I want to save a file with a new name, I use :sav . But I haven't actually checked desktop vim to be sure.

On Wed, Sep 09, 2015 at 09:55:16PM -0700, nnako wrote:

After loading a text file onto the screen and editing it, :w writes the text into the original file. That's fine. Attempting to save the text with an other file name using :w <newname> works for new files as well. But doing the latter, the current file name does not Change. So subsequent usages of :w will save the text into the old file again.

Is this a BUG or just a usage mistake on my side? How can I assign a new file name to my buffer in order to be able to use the normal write command :w to keep its new file name?


Reply to this email directly or view it on GitHub: https://github.com/momodalo/vimtouch/issues/94

nnako commented 8 years ago

thanks. You have been right. :sav <newname> saves the current buffer into a new file. A subsequent use of :w uses the new file as the target to feed in the buffer contents.