Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1452  / 3 Years ago, mon, june 7, 2021, 4:58:44

When issuing crontab -e as root , i always got messages like the following (partial) , however , executing vim directly doesn't have problems at all.
$EDITOR was set to vim in /root/.bash_profile already.



%> 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:

More From » vim

 Answers
7

When you use "sudo command" the root user profile is not loaded, use sudo -i and crontab -e instead.


[#42921] Monday, June 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tiowift

Total Points: 119
Total Questions: 113
Total Answers: 110

Location: South Sudan
Member since Sun, Jul 11, 2021
3 Years ago
tiowift questions
Wed, Aug 3, 22, 04:45, 2 Years ago
Mon, Nov 7, 22, 10:58, 2 Years ago
Wed, May 10, 23, 17:52, 1 Year ago
;