File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 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"
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
2225if exists (" s:loaded_backup" )
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
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
You can’t perform that action at this time.
0 commit comments