Sunday, December 11, 2016

Re: Moving a file

On 12/10/2016 04:07 PM, shawn wilson wrote:
> How do I change which file a buffer is pointing to so that I
> can do a simple :w and get notified if an external app updates
> it, etc?

If I'm understanding your question, you're looking for ``:saveas
newfilename``. This will both save the file and associate
newfilename with the buffer; from this point on, it will behave
the same as if you'd started Vim with ``vim newfilename``.

Michael Henry

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: