Set text editor to Vim

gh config

gh config set editor {{vim}}

click the source code to copy install gh config on any operating system with command-not-found.com