# Set default editor for gh
(Github CLI)
The github official cli normally uses nano
as the default editor. Now there is an option to change it here:
gh config set editor vim
where the last value would be whatever editor you prefer. Source (opens new window)