Configure sudo
Install with:
# pacman -S sudoAllow user bp to use sudo
Add the following line in section “User privilege specification:
bp ALL=(ALL) ALLUse Vim as default editor for visudo
Add the following lines to /etc/sudoers:
# Reset environment by default
Defaults env_reset
# Set default EDITOR to vim, and do not allow visudo to use EDITOR/VISUAL.
Defaults editor="/usr/bin/vim -p -X", !env_editor