No one can doubt how much easiness can vi(m) bring to your life :) Very important (and useful) thing is syntax highlight. I just realized that if you edit cron tasks, there is no highligh (excluding /etc/crontab, which has automatic highlight).
So first just open needful file with vim. Don't see helpful highlights, right?
Then just use the following command to make it eye-candy:
:set ft=crontab
And enjoy the editing :)
Good luck!
References:
http://unix.stackexchange.com/questions/68972/no-syntax-highlighting-when-editing-crontab
http://vimdoc.sourceforge.net/htmldoc/filetype.html
Немає коментарів:
Дописати коментар