Hacker symbol

September 8, 2019 ~ 1 min read

Write as sudo


Write as sudo I always forget this so I'm writing it down

:w !sudo tee %

One can add this to .vimrc to use w!! as an alias

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

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.