Tuesday, August 16, 2011

Re: rsync buffer

I'm often editing a file on a machine and i want to continue editing
it on another machine (i'd prefer the buffers - undo history, jump
places, etc move with the file, but...).

what i want is for that file to show up on client like if i were to
type ':new /file'. so something like:
:new scp://user@host//~/blah
in my client. but, if the existing vim could somehow export the path
and file so that i don't have to type it all (and generally mess it
up, that would be cool. what i generally do (because i generally typo
something when i try this is:
:w
:|scp <file> user@host:~/blah
and open it.

... and it would just be too cool if i could get something like this
to work on macvim too

On Aug 16, 2011 1:39 PM, "Ben Fritz" <fritzophrenic@gmail.com> wrote:
>
>
> On Aug 16, 10:01 am, shawn wilson <ag4ve...@gmail.com> wrote:
>> is there a way (script or what not) to copy a buffer to a remote
>> instance of vim? i'm not exactly how i'd like this to work, but
>> figured that someone had thought of this and i'd ask.
>>
>
> That depends on what you mean by "copy a buffer". If you mean, "open
> the same file in a remote Vim" you can use the client-server interface
> for this. If you also want the marks, undo history, etc. from the
> buffer, you will probably need to also use the :wviminfo/:rviminfo and
> possibly :wundo/:rundo commands as well depending on your settings. If
> the buffer is not for a file on disk I'm not sure if it can be done
> easily. What exactly do you want to do?
>
> --
> 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 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

No comments: