@Waffelson@lemmy.world to linuxmemes@lemmy.world • 8 months agoWhen you realized you forgot sudolemmy.worldimagemessage-square43fedilinkarrow-up1374arrow-down118
arrow-up1356arrow-down1imageWhen you realized you forgot sudolemmy.world@Waffelson@lemmy.world to linuxmemes@lemmy.world • 8 months agomessage-square43fedilink
minus-square@h3rm17@sh.itjust.workslinkfedilink11•8 months agoIn vim, in normal mode you can do: :w !sudo tee %
minus-squarez3rOR0nelinkfedilink2•8 months 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.
minus-squaredream_weasellinkfedilink1•8 months ago??? I used this in neovim twice today :w !sudo tee % then reload when it asks.
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.
??? I used this in neovim twice today
:w !sudo tee %
then reload when it asks.