gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Vim and hardlinks


From: Jason McCarty
Subject: Re: [Gnu-arch-users] Vim and hardlinks
Date: Thu, 11 Mar 2004 17:56:22 -0500
User-agent: Mutt/1.5.4i

John F Meinel Jr wrote:
> Does anyone know how to configure Vim to break hard-links? I'm really 
> curious to try out the --link flag, but I haven't seen any documentation 
> of how to configure vim.

It is a bit hard to find, and you have to do it in a roundabout way. Set
backupcopy=no. This makes vim rename the file to a backup, write the
file anew, then delete the backup, effectively breaking the link. You
might also want to set backupskip="" if you work in /tmp (or $TMPDIR
etc.), because vim by default doesn't make backups in those directories.

I guess I oughtta put this on the Wiki.

-- 
Jason McCarty <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]