`crontab -e: E212: Can't open file for writing` when using gvim (works with vi)
3
votes
1
answer
2467
views
As a user, I want to edit my crontab.
crontab -e
gvim
is launched. It prints
"/tmp/crontab.IUVYhK/crontab" [New DIRECTORY]
I can write but as soon as I try to write the temporary file, I get this error message:
"crontab.IUVYhK/crontab" E212: Can't open file for writing
However, I have no issue when using vi as editor:
EDITOR=vi crontab -e
Is it wrong to set gvim
as EDITOR
? Shold I use vi
? I do very few admin tasks on this desktop machine, so I never ran into any issue.
Asked by Jérôme
(2023 rep)
Oct 20, 2015, 10:21 PM
Last activity: Aug 5, 2021, 08:27 PM
Last activity: Aug 5, 2021, 08:27 PM