lambdalisue / vim-suda

🥪 An alternative sudo.vim for Vim and Neovim, limited support sudo in Windows
MIT License
713 stars 27 forks source link

SudoWrite errors with "a password is required" #81

Open RobinClowers opened 2 months ago

RobinClowers commented 2 months ago

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
lambdalisue commented 1 month ago

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

RobinClowers commented 1 month ago

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.