Skip to content

Instantly share code, notes, and snippets.

@julianorchard
Created January 30, 2023 10:21
Show Gist options
  • Select an option

  • Save julianorchard/48425f1d11bdae2f12d6bd9ca88ea278 to your computer and use it in GitHub Desktop.

Select an option

Save julianorchard/48425f1d11bdae2f12d6bd9ca88ea278 to your computer and use it in GitHub Desktop.
Vim Insert Git Signature Using `iab`
" ~g to insert 'git_username <git@email.com>'
iab <expr> ~g substitute(system('git config --global user.name') . " <" .
\system('git config --global user.email') . ">", '\n', '', 'g')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment