Hacker News new | ask | show | jobs
by drtse4 5434 days ago
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

1 comments

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