Working with Git inside Vim (opens in new tab)
My workflow since time immemorial has been to use a code editor (Vim/Neovim) to edit code, and then the git command line tool to operate on the repository. This flow included switching to the command line for git add -p or git diff.
Read the original article