Skip to content

Commit 903ed65

Browse files
committed
backupskip for /private/tmp and ~/tmp
withouth this `crontab -e` was failing with "temp file must be edited in place"
1 parent 6248f89 commit 903ed65

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Changelog

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
- golang syntax support (thanks @torkale)
33
- josemarluedke/vim-rspec - lightweight Rspec runner for Vim
44
- girblade/vim-gitgutter - it diff in the gutter (sign column) and stages/reverts hunks
5+
- backupskip for /private/tmp and ~/tmp.
6+
skip backups on OSX temp dir, for crontab -e to properly work
57

68
* 2013-08-28
79
- fix startup echo messages redirect

global.vim

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ call system('mkdir -vp ~/.backup/undo/ > /dev/null 2>&1')
7979
set backupdir=~/.backup,. " list of directories for the backup file
8080
set directory=~/.backup,~/tmp,. " list of directory names for the swap file
8181
set nobackup " do not write backup files
82+
set backupskip+=~/tmp/*,/private/tmp/* " skip backups on OSX temp dir, for crontab -e to properly work
8283
set noswapfile " do not write .swp files
8384
set undofile
8485
set undodir=~/.backup/undo/,~/tmp,.

0 commit comments

Comments
 (0)