Skip to content

Commit

Permalink
backupskip for /private/tmp and ~/tmp
Browse files Browse the repository at this point in the history
withouth this `crontab -e` was failing with
"temp file must be edited in place"
  • Loading branch information
vitaly committed Feb 5, 2014
1 parent 6248f89 commit 903ed65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changelog
Expand Up @@ -2,6 +2,8 @@
- golang syntax support (thanks @torkale)
- josemarluedke/vim-rspec - lightweight Rspec runner for Vim
- girblade/vim-gitgutter - it diff in the gutter (sign column) and stages/reverts hunks
- backupskip for /private/tmp and ~/tmp.
skip backups on OSX temp dir, for crontab -e to properly work

* 2013-08-28
- fix startup echo messages redirect
Expand Down
1 change: 1 addition & 0 deletions global.vim
Expand Up @@ -79,6 +79,7 @@ call system('mkdir -vp ~/.backup/undo/ > /dev/null 2>&1')
set backupdir=~/.backup,. " list of directories for the backup file
set directory=~/.backup,~/tmp,. " list of directory names for the swap file
set nobackup " do not write backup files
set backupskip+=~/tmp/*,/private/tmp/* " skip backups on OSX temp dir, for crontab -e to properly work
set noswapfile " do not write .swp files
set undofile
set undodir=~/.backup/undo/,~/tmp,.
Expand Down

0 comments on commit 903ed65

Please sign in to comment.