Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

Git and Vim

$
0
0

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>

Viewing all articles
Browse latest Browse all 5608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>