Re: Backups

2006-07-03 Thread Yakov Lerner

On 7/3/06, Vigil [EMAIL PROTECTED] wrote:

Because savevers (script #89) no longer works properly with vim 7


savevers perfectly works for me in vim7,
just as it did for vim6

Yakov


Re: Backups

2006-07-03 Thread Vigil

Because savevers (script #89) no longer works properly with vim 7


savevers perfectly works for me in vim7,
just as it did for vim6


Weird. Tell me, do your settings differ greatly from mine?:

 savevers
set backup
set patchmode=.prev
let savevers_dirs=~/backups/vim
exe set backupskip+=* . patchmode
exe set suffixes+= . patchmode
exe set wildignore+=* . patchmode

--

.


Re: Backups

2006-07-03 Thread Yakov Lerner

On 7/3/06, Vigil [EMAIL PROTECTED] wrote:

 Because savevers (script #89) no longer works properly with vim 7

 savevers perfectly works for me in vim7,
 just as it did for vim6

Weird. Tell me, do your settings differ greatly from mine?:

 savevers
set backup
set patchmode=.prev
let savevers_dirs=~/backups/vim
exe set backupskip+=* . patchmode
exe set suffixes+= . patchmode
exe set wildignore+=* . patchmode


Here are my savevers settings:

 {{{ configuration for savevers.vim
 http://www.vim.org/scripts/script.php?script_id=89 -- savevers.vim
plugin by Ed Ralston
let savevers_types='*'
let savevers_max=
let savevers_purge=1
let savevers_dirs=~/tmp/
patchmode is required for savevers to work
set patchmode=.ORIG
set backup
 }}}

Can it be that my version of savevers, being not the latest savevers,
works better than the later versions of savevers ?

I am attaching the exact version of savevers that I'm using.

I never pulled from vim.org another version of savevers since I
pulled it for the 1st time, and this was long time ago.

Anyway, this one works for me flawlessly.

Yakov


savevers.vim
Description: Binary data


Re: Backups

2006-07-03 Thread Vigil

Can it be that my version of savevers, being not the latest savevers,
works better than the later versions of savevers ?


Weird. I guess when I pulled my latest copy (we both are using 0.8), it was 
corrupt or something, because yours works. Thanks.


--

.


[OSX issue?] Re: Backups

2006-07-03 Thread Robert Hicks

set backup
set backupdir=~/.vim/backup
set dir=~/.vim/temp

 Configuration for savevers.vim
 http://www.vim.org/scripts/script.php?script_id=89
set patchmode=.prev

let savevers_types=*
let savevers_max=10
let savevers_purge=1
let savevers_dir=backupdir



That is my config...and it doesn't work. It should dump them all in the 
backupidr but instead they show up in my home dir.


I am on OSX.

I have tried a full path /Users/robert/.vim/backup but that doesn't work 
either.


:Robert



Re: [OSX issue?] Re: Backups

2006-07-03 Thread Robert Hicks

Robert Hicks wrote:

set backup
set backupdir=~/.vim/backup
set dir=~/.vim/temp

 Configuration for savevers.vim
 http://www.vim.org/scripts/script.php?script_id=89
set patchmode=.prev

let savevers_types=*
let savevers_max=10
let savevers_purge=1
let savevers_dir=backupdir



That is my config...and it doesn't work. It should dump them all in the 
backupidr but instead they show up in my home dir.


I am on OSX.

I have tried a full path /Users/robert/.vim/backup but that doesn't work 
either.


:Robert



Found it looking at my post...dirs...not dir.




Re: [OSX issue?] Re: Backups

2006-07-03 Thread Yakov Lerner

On 7/4/06, Robert Hicks [EMAIL PROTECTED] wrote:

set backup
set backupdir=~/.vim/backup
set dir=~/.vim/temp

 Configuration for savevers.vim
 http://www.vim.org/scripts/script.php?script_id=89
set patchmode=.prev

let savevers_types=*
let savevers_max=10
let savevers_purge=1
let savevers_dir=backupdir



I think it's spelled savevers_dirs not savevers_dir.

At least such (savevers_dirs) it's spelled in my config.


That is my config...and it doesn't work. It should dump them all in the
backupidr but instead they show up in my home dir.


Yakov


Re: Backups question

2006-05-05 Thread Yegappan Lakshmanan

Hi,

On 5/5/06, Yakov Lerner [EMAIL PROTECTED] wrote:

On 5/5/06, David Venus [EMAIL PROTECTED] wrote:

 1. How do I get VIM to automagically create the directory (if it does not
 exist)

Add this to your vimrc:

:if !isdirectory('c:/temp/vim_backups.d')
  :call system('mkdir c:\temp\vim_backups.d')
endif



Instead of invoking the external mkdir command, you can also
use the built-in mkdir() function:

call mkdir('c:\temp\vim_backups.d')

- Yegappan