Я начинающий пользователь Arch и пытаюсь настроить свою среду так, чтобы можно было беспрепятственно редактировать файлы с помощью Ranger с nvim.
Я установил рейнджер с помощью следующей команды:
Код: Выделить всё
make install PREFIX=$HOME/.local

Код: Выделить всё
E45: 'readonly' option is set (add ! to override)
Код: Выделить всё
:w !sudo tee %
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
shell returned 1
Press ENTER or type command to continue
Код: Выделить всё
:w !sudo -S tee %
[sudo] password for boss: Sorry, try again.
[sudo] password for boss: Sorry, try again.
[sudo] password for boss: sudo: 3 incorrect password attempts
shell returned 1
Press ENTER or type command to continue
Связанные переменные Env
Код: Выделить всё
EDITOR=nvim
Код: Выделить всё
ranger --version
ranger version: ranger 1.9.4
Python version: 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801]
nvim --version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1720049189
Run "nvim -V1 -v" for more info
Подробнее здесь: https://stackoverflow.com/questions/791 ... anger-nvim