Hi Tobiah!
On Do, 21 Nov 2013, Tobiah wrote:
> On 11/21/2013 11:55 AM, Ben Fritz wrote:
> >On Thursday, November 21, 2013 12:52:16 PM UTC-6, Toby Shepard wrote:
> >>I am editing files on a work server via an NFS mount
> >>
> >>from my local desktop. That way I can configure my
> >>
> >>local machine in any way I want, and still edit work
> >>
> >>files.
> >>
> >>
> >>
> >>Recently, I configured Vim to remember undo information
> >>
> >>after quitting. Now, from time to time, I happen to
> >>
> >>be logged into the work server, and want to quickly edit
> >>
> >>a file. I was concerned as to how that might confuse
> >>
> >>my local Vim the next time I edit that same file. If
> >>
> >>I start undoing after loading a file, it seems that Vim
> >>
> >>will expect the contents to be something other than what
> >>
> >>they are. Am I going to have a problem with this?
> >>
> >>
> >
> >
> >Undo information is stored in a file. If you have not configured 'undodir'
> >and just leave the default as storing the undo file in the same directory as
> >the edited file, then your Vim on both machines will see the same undo
> >information.
> >
> >You just need to be sure to configure both Vims to use that saved
> >information and I think you'll be fine.
> >
>
> I did put it somewhere in ~/.vim, as I was directed to do so
> in the first article I found when Googling this. However,
> the Vim on the work server is too old to support persistent
> undo altogether, and I'm not really in a position to upgrade it.
If you also use an old Vim (or a Vim compiled without the persistent
undo feature), you won't be able to make use of undofiles, since the
undofiles contain a hash of the buffer content and changing the buffer
content without altering the undofiles will make the latter unusable.
Best,
Christian
--
Eine witzige Schmeichelei verzeiht sogar der Bescheidenste.
-- Jean Paul
--
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.