If in nvim and the SUDO_ASKPASS environment variable is set then a WW mapping will expand to :w !sudo -A tee % >/dev/null If in not-neo vim, the -A is omitted. The environment variable is also set. Some unused environment variables were also removed. https://stackoverflow.com/questions/2600783/how-does-the-vim-write-with-sudo-trick-work https://github.com/neovim/neovim/issues/12103master
parent
52eb406676
commit
c9d1320b54
2 changed files with 11 additions and 12 deletions
Loading…
Reference in new issue