Skip to content

Commit d7f126b

Browse files
krischikvim-scripts
authored andcommitted
Version 1.1
Fixed two bugs: VMS: "press key to continue" is gone. non VMS: set of backup directory to user defined variable fixed.
1 parent 9aeeb28 commit d7f126b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

plugin/backup.vim

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
" Maintainer: Martin Krischik
44
" Copyright: Copyright (C) 2006 Martin Krischik
55
" Name Of File: plugin/backup.vim
6-
" Last Changed: Monday, 10 May 2006
7-
" Version: 1.0
6+
" Last Changed: Monday, 15 May 2006
7+
" Version: 1.1
88
" URL: http://www.vim.org/account/profile.php?user=7818
99
" Usage: copy to plugin directory.
1010
"
@@ -17,6 +17,9 @@
1717
" g:backup_purge count of backups to hold - purge older once.
1818
" On VMS PURGE is used to delete older version
1919
" 0 switched the feature of
20+
"
21+
" History: 15.05.2006 MK Fix "Press ENTER ..." on vms systems
22+
" 15.05.2006 MK Fix set backupdir on non vms systems
2023
"-------------------------------------------------------------------------------
2124

2225
if exists("s:loaded_backup")
@@ -37,7 +40,7 @@ else
3740

3841
function! s:Do_Purge (Doc_Path)
3942
if g:backup_purge > 0
40-
execute "!PURGE /NoLog /Keep=" . g:backup_purge . " " . a:Doc_Path
43+
execute ":silent :!PURGE /NoLog /Keep=" . g:backup_purge . " " . a:Doc_Path
4144
endif
4245
endfunction Do_Purge
4346

@@ -50,8 +53,9 @@ else
5053
set writebackup
5154
set backup
5255
set backupext=;1
53-
set backupdir^=~/.backups
54-
set backupdir^=./.backups
56+
57+
execute "set backupdir^=~/" . g:backup_directory
58+
execute "set backupdir^=./" . g:backup_directory
5559

5660
if exists("*mkdir")
5761

0 commit comments

Comments
 (0)