Waffelson@lemmy.world to linuxmemes@lemmy.world · 1 year agoWhen you realized you forgot sudolemmy.worldimagemessage-square39fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageWhen you realized you forgot sudolemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 1 year agomessage-square39fedilink
minus-squareh3rm17@sh.itjust.workslinkfedilinkarrow-up0·1 year agoIn vim, in normal mode you can do: :w !sudo tee %
minus-squarez3rOR0ne@lemmy.mllinkfedilinkarrow-up0·1 year agoApparently that doesn’t work in NeoVim, so recently I installed the suda plugin. Personally, I just doas nvim and then the file name that needs root access, but it’s a handy plugin in case I forget.
In vim, in normal mode you can do:
:w !sudo tee %
Apparently that doesn’t work in NeoVim, so recently I installed the suda plugin.
Personally, I just doas nvim and then the file name that needs root access, but it’s a handy plugin in case I forget.