Thursday, August 18, 2011

Re: rsync buffer

On Tue, Aug 16, 2011 at 02:34:57PM -0400, shawn wilson wrote:
> 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
>

You could always use a terminal multiplexor like GNU Screen or tmux to
keep your vim session persistent, although I suppose this only works
well with terminal Vim.

You could also X forward Vim like so:

ssh -Y username@yourhost mvim /path/to/somefile

This would use all of your marks, etc. from the host machine. I'm
not sure if X forwarding works for macs, or if you'll need to change
some settings. This type of set-up won't work very well with a Windows
host machine for obvious reasons.

Cheers,

Matt

--
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: