LoginSignup
0
0

More than 5 years have passed since last update.

Git and Vim

Posted at

Reference: Using Git from command-line mode

Set core.editor

git config --global core.editor vim
# check your config
git config --list

Using Git from command line

# use :!
# add the current file
:!git add %
:!git commit -m "commit message"
:!git push origin master
:!git diff --cached

Adding key mapping

nnoremap \ga :<C-u>!git add  %<CR>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0