diff --git a/README.md b/README.md index 286a15e..bd9a144 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,14 @@ YADR会接管你的`~/.gitconfig`, 所以如果你想存储你的git用户名及 * 微微优化了diff的颜色 * `gdmb` (g)it (d)elete (m)erged (b)ranches - 删除所有已经合并到当前分支的分支 + * `Gdiff`显示代码前后更改 + +##### vim-gitgutter + * `]h` 下一个hunk(更改点) + * `[h` 上一个hunk + * `ha` 将该hunk放进state区域保存 + * `hr` 撤销该hunk + ### RubyGems .gemrc被包含了。 再也不用输入`gem install whatever --no-ri --no-rdoc`. `--no-ri --no-rdoc`,因为默认都做好哦了。 diff --git a/vim/settings/vim-gitgutter.vim b/vim/settings/vim-gitgutter.vim new file mode 100644 index 0000000..a74754d --- /dev/null +++ b/vim/settings/vim-gitgutter.vim @@ -0,0 +1,4 @@ +nmap ]h GitGutterNextHunk +nmap [h GitGutterPrevHunk +nmap ha GitGutterStageHunk +nmap hr GitGutterUndoHunk diff --git a/vim/settings/yadr-keymap.vim b/vim/settings/yadr-keymap.vim index 68cf4e4..b2a1042 100644 --- a/vim/settings/yadr-keymap.vim +++ b/vim/settings/yadr-keymap.vim @@ -188,3 +188,5 @@ nnoremap p :cprevious nnoremap l :redraw! imap cb 『』 +nnoremap n :cn +nnoremap p :cp diff --git a/vim/vundles/git.vundle b/vim/vundles/git.vundle index 80b4422..06379ea 100644 --- a/vim/vundles/git.vundle +++ b/vim/vundles/git.vundle @@ -1,4 +1,5 @@ Bundle "gregsexton/gitv" Bundle "mattn/gist-vim" Bundle "tpope/vim-fugitive" +Bundle "airblade/vim-gitgutter" Bundle "tpope/vim-git"