View Single Post

   
  #2 (permalink)  
Old 02-20-2008, 05:49 AM
Roel van Meer
 
Posts: n/a
Default Re: SOLVED: crontab not working with vim

Roel van Meer wrote:

> When i use vim, changes i make in my crontab entries do not get saved.
> Does anyone have seen this before, or have an idea what may be causing
> it?


The problem is caused by vims backupcopy setting, which is automatically
changed by set nocompatible. If you have a .vimrc file, set nocompatible
is done automatically, by the way.

set backupcopy=yes -> crontab -e works
set backupcopy=no -> crontab -e does not work
set backupcopy=auto -> crontab -e does not work

Putting "set backupcopy=yes" in either my .vimrc or in the global
/usr/share/vim/vimrc fixes the problem.

YMMV,

Regards,

roel

--
BViT Innovatienetwerk / rolek@bvit.net \ www.bvit.net
1A First Alternative / rolek@alt001.com \ www.alt001.com
Reply With Quote