vim-suda icon indicating copy to clipboard operation
vim-suda copied to clipboard

SudoWrite errors with "a password is required"

Open RobinClowers opened this issue 1 year ago • 2 comments

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

RobinClowers avatar Jul 16 '24 20:07 RobinClowers

Well, as I labelled, I could not reproduce the issue unfortunately.

lambdalisue avatar Jul 31 '24 12:07 lambdalisue

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.

RobinClowers avatar Jul 31 '24 21:07 RobinClowers