Set vim as default cronjob editor
Method 1 vi /etc/bashrc Find export EDITOR=”pico” export VISUAL=”pico” Replace with export EDITOR=”vi” export VISUAL=”vi” Method 2 edit .bash_profile vi /root/.bash_profile Add export VISUAL=vi Once added, .bash_profile will look like root@server54 [~]# cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment … Read more