Quando você usa o "comando sudo", o perfil do usuário root não é carregado, use sudo -i e crontab -e .
Ao emitir crontab -e as root , sempre recebi mensagens como a seguinte (parcial), no entanto, executar vim diretamente não tem nenhum problema.
$EDITOR foi definido como vim em /root/.bash_profile .
%> sudo crontab -e
Error detected while processing /root/.vimrc:
line 2:
E319: Sorry, the command is not available in this version: autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e
line 20:
E319: Sorry, the command is not available in this version: autocmd VimEnter * set vb t_vb=
line 57:
E518: Unknown option: autochdir
line 65:
E319: Sorry, the command is not available in this version: syn on
line 78:
E538: No mouse support: mouse=a
line 79:
E319: Sorry, the command is not available in this version: filetype plugin indent on
line 87:
E319: Sorry, the command is not available in this version: funct! CommentBlock(comment)
line 88:
Quando você usa o "comando sudo", o perfil do usuário root não é carregado, use sudo -i e crontab -e .
no ubuntu-14.04, use select-editor escolha "vim-gnome" mas não "vim-basic"