Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmm, if the script is just a series of open commands it's weird that you are having issues as root (no errors displayed?). With problems when you save you mean that you don't have the required permissions(e.g. files owned by root or other users)?

A useful alias if you need root permissions to save:

cmap w!! w !sudo tee % >/dev/null



That is a very, very clever little cmap. Added to my .vimrc, thanks!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: