Re: vim swap files

2011-08-15 Thread Christian Brabandt
On Thu, August 11, 2011 11:49 pm, Gary Johnson wrote: > Unfortunately the same feature does not exist yet for backup > files. It's still an item in the todo list, but at least it's in > the "known bugs and current work" section, so maybe it's coming > soon. I made the patch last year. I think, wh

Re: vim swap files

2011-08-12 Thread cyboman
On Aug 11, 5:49 pm, Gary Johnson wrote: > On 2011-08-11, cyboman wrote: > > i set my backup and swap directories to > > > ~\vimfiles\data\swap > > ~\vimfiles\data\backup > > > however at my work i very often have to edit two different revisions > > of the same project, meaning that quite often i

Re: vim swap files

2011-08-12 Thread John Little
On Aug 12, 9:49 am, Gary Johnson wrote: > In the mean time, you may want to turn off the 'backup' option and > create your own backups using a BufRead autocommand ... Or use the BufWritePost event to rename the backup that has just been created. I sometimes do that to put a time stamp in the ba

Re: vim swap files

2011-08-11 Thread Gary Johnson
On 2011-08-11, cyboman wrote: > i set my backup and swap directories to > > ~\vimfiles\data\swap > ~\vimfiles\data\backup > > however at my work i very often have to edit two different revisions > of the same project, meaning that quite often i have vim open two > files in different directories w

Re: vim swap files

2011-08-11 Thread John Little
On Aug 12, 9:17 am, cyboman wrote: > i set my backup and swap directories to ... What you ask can be done with autocommands, but maybe it would be simpler to use (from :help 'dir'): - For Unix and Win32, if a directory ends in two path separators "//" or "\\", the swap file n

vim swap files

2011-08-11 Thread cyboman
i set my backup and swap directories to ~\vimfiles\data\swap ~\vimfiles\data\backup however at my work i very often have to edit two different revisions of the same project, meaning that quite often i have vim open two files in different directories with the same name. because of the my setting f