b. editor setup

Dracula also has to set his favorite text editor, following this table:

EditorConfiguration command
Atom$ git config --global core.editor "atom --wait"
nano$ git config --global core.editor "nano -w"
BBEdit (Mac, with command line tools)$ git config --global core.editor "bbedit -w"
Sublime Text (Mac)$ git config --global core.editor "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n -w"
Sublime Text (Win, 32-bit install)$ git config --global core.editor "'c:/program files (x86)/sublime text 3/sublime_text.exe' -w"
Sublime Text (Win, 64-bit install)$ git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w"
Notepad (Win)$ git config --global core.editor "c:/Windows/System32/notepad.exe"
Notepad++ (Win, 32-bit install)$ git config --global core.editor "'c:/program files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
Notepad++ (Win, 64-bit install)$ git config --global core.editor "'c:/program files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
Kate (Linux)$ git config --global core.editor "kate"
Gedit (Linux)$ git config --global core.editor "gedit --wait --new-window"
Scratch (Linux)$ git config --global core.editor "scratch-text-editor"
Emacs$ git config --global core.editor "emacs"
Vim$ git config --global core.editor "vim"
VS Code$ git config --global core.editor "code --wait"

It is possible to reconfigure the text editor for Git whenever you want to change it.

Exiting Vim

Note that Vim is the default editor for many programs. If you haven’t used Vim before and wish to exit a session without saving your changes, press Esc then type :q! and hit Return. If you want to save your changes and quit, press Esc then type :wq and hit Return.