My default editor is Gvim. How to new a gist in Gvim? Before I start , I have to plan something. Use Python script to create a gist. Because Python is my favorite programming script. Integrate the script with Gvim. So I try to write a script to implement step one. It's work. 😀 If you want to try this script by yourself. You have to generate a token first. Go to your Github settings. Select the " Personal Access Tokens " in the left side nav panel. Click the Generate new token button then check the gist checkbox. Click the green Generate token button to get a token code.