Hacker News new | past | comments | ask | show | jobs | submit login

I've had this in my vimrc for years:

   " Let :w!! gain sudo privileges without closing and reopening vim
   cmap w!! w !sudo tee % >/dev/null



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

Search: