file: /etc/sudoers or command: sudo visudo
add text: user ALL=NOPASSWD : ALL
sudo VISUAL=vim visudo
or
sudo EDITOR=vim visudo