vim-suda
vim-suda copied to clipboard
SudoWrite errors with "a password is required"
I assume I'm holding it wrong somehow, but I didn't do anything strange. I'm on a mac with bash 5.2.15 and neovim v0.10.0.
Error detected while processing BufWriteCmd Autocommands for "/private/etc/hosts":
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper | sudo: a password is required
Well, as I labelled, I could not reproduce the issue unfortunately.
Dang, I guess it could be some configuration in my bashrc? There isn't a whole lot to it, you can see it here. I was also running vim in tmux, but I just tried without tmux and got the same error.