Re: Synchronizing or merging undo across platforms

2011-11-28 Thread Tony Mechelynck
On 28/11/11 06:31, Christian Brabandt wrote: Hi Bram! On So, 27 Nov 2011, Bram Moolenaar wrote: Christian Brabandt wrote: On Wed, November 16, 2011 9:38 pm, Paul wrote: On Nov 16, 1:42 am, Christian Brabandtcbli...@256bit.org wrote: Well, first check that :echo undofile(@%) points to

Re: Synchronizing or merging undo across platforms

2011-11-28 Thread Benjamin Fritz
On Sun, Nov 27, 2011 at 11:31 PM, Christian Brabandt cbli...@256bit.org wrote: Hi Bram! On So, 27 Nov 2011, Bram Moolenaar wrote: Christian Brabandt wrote: When using a separate 'undodir' directory to store the undofiles, Vim uses the complete path of the file as filename, replacing

Re: Synchronizing or merging undo across platforms

2011-11-28 Thread Christian Brabandt
On Mon, November 28, 2011 4:39 pm, Benjamin Fritz wrote: Wouldn't you just escape the '%' characters? fnameescape() should do it for you I think. So you should just do: :exec rundo fnameescape(undofile(@%)) Yes, I think escape(undofile(@%), '%') will work. Sorry for the noise, Christian --

Re: Synchronizing or merging undo across platforms

2011-11-28 Thread Bram Moolenaar
Christian Brabandt wrote: On So, 27 Nov 2011, Bram Moolenaar wrote: Christian Brabandt wrote: On Wed, November 16, 2011 9:38 pm, Paul wrote: On Nov 16, 1:42 am, Christian Brabandt cbli...@256bit.org wrote: Well, first check that :echo undofile(@%) points to the same

Re: Synchronizing or merging undo across platforms

2011-11-27 Thread Bram Moolenaar
Christian Brabandt wrote: On Wed, November 16, 2011 9:38 pm, Paul wrote: On Nov 16, 1:42 am, Christian Brabandt cbli...@256bit.org wrote: Well, first check that :echo undofile(@%) points to the same undofile across each platform. Aha, thanks. That helped me determine that my Vim

Re: Synchronizing or merging undo across platforms

2011-11-27 Thread Christian Brabandt
Hi Bram! On So, 27 Nov 2011, Bram Moolenaar wrote: Christian Brabandt wrote: On Wed, November 16, 2011 9:38 pm, Paul wrote: On Nov 16, 1:42 am, Christian Brabandt cbli...@256bit.org wrote: Well, first check that :echo undofile(@%) points to the same undofile across each

Re: Synchronizing or merging undo across platforms

2011-11-18 Thread Paul
Interesting about filename-modifiers! But I have one more issue. On Nov 17, 3:29 am, Christian Brabandt cbli...@256bit.org wrote: When using a separate 'undodir' directory to store the undofiles, Vim uses the complete path of the file as filename, replacing the path separators ('/') by '%'.

Re: Synchronizing or merging undo across platforms

2011-11-18 Thread Benjamin Fritz
On Fri, Nov 18, 2011 at 2:17 PM, Paul truffle...@gmail.com wrote: Interesting about filename-modifiers! But I have one more issue. On Nov 17, 3:29 am, Christian Brabandt cbli...@256bit.org wrote: When using a separate 'undodir' directory to store the undofiles, Vim uses the complete path of

Re: Synchronizing or merging undo across platforms

2011-11-18 Thread Paul
On Nov 18, 3:52 pm, Benjamin Fritz fritzophre...@gmail.com wrote: I think :rundo and :wundo were created for this purpose. Very nice, thank you! Now, is it possible to make these functions always write to $HOME/.vim/undodir/ instead of to a directory relative to the file? I ask in part because

Re: Synchronizing or merging undo across platforms

2011-11-17 Thread Christian Brabandt
On Wed, November 16, 2011 9:38 pm, Paul wrote: On Nov 16, 1:42 am, Christian Brabandt cbli...@256bit.org wrote: Well, first check that :echo undofile(@%) points to the same undofile across each platform. Aha, thanks. That helped me determine that my Vim silently ignores me when I try to set

Re: Synchronizing or merging undo across platforms

2011-11-16 Thread Paul
On Nov 16, 1:42 am, Christian Brabandt cbli...@256bit.org wrote: Well, first check that :echo undofile(@%) points to the same undofile across each platform. Aha, thanks. That helped me determine that my Vim silently ignores me when I try to set relative directories for undodir. :set undodir=.

Re: Synchronizing or merging undo across platforms

2011-11-15 Thread Paul
Maybe there's a way to make it work just for particular files, with an autocmd that sets a relative undodir? My experimentation has not paid off. -- 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,

Re: Synchronizing or merging undo across platforms

2011-11-15 Thread Christian Brabandt
On Wed, November 16, 2011 2:59 am, Paul wrote: Maybe there's a way to make it work just for particular files, with an autocmd that sets a relative undodir? My experimentation has not paid off. Well, first check that :echo undofile(@%) points to the same undofile across each platform. If this

Synchronizing or merging undo across platforms

2011-11-09 Thread Paul
I work on Unix and Windows machines, but I keep my vim config directory as well as my documents in sync on my various machines. The file paths on the two platforms are different, though. So when I do some work on a document on my Windows machine, and then later do further work on that same