tpope / vim-commentary

commentary.vim: comment stuff out
http://www.vim.org/scripts/script.php?script_id=3695
5.9k stars 214 forks source link

gcc does not work in neovim on files that require sudo permissions, when run as user #171

Closed tuftman-0 closed 9 months ago

tuftman-0 commented 9 months ago

I often edit system files running vim/nvim as user and when I'm done I save the file using sudo. In vim this works fine but in neovim it just doesn't work. it works fine on regular files but as soon as I go to edit a system file it just doesn't work. afaik none of the commentary commands work in this case.