I've started using sudoedit <file>
instead of sudo vim <file>
. One of the advantages is that it uses my local ~/.vimrc
. However, when using sudo crontab -e
, it uses /root/.vimrc
instead. Is there a way to make sudo crontab -e
use my local ~/.vimrc
?
Here is a related question, about using sudoedit
with vimdiff
. However, substituting crontab -e
for vimdiff
doesn't work.
su -
looking for same thing in sudo – PersianGulf May 17 '15 at 02:26