added vim-gitgutter, and docs

This commit is contained in:
hophacker 2017-06-24 05:15:42 +08:00
parent 0b6fcc059f
commit f5e1747171
4 changed files with 15 additions and 0 deletions

View File

@ -140,6 +140,14 @@ YADR会接管你的`~/.gitconfig`, 所以如果你想存储你的git用户名及
* 微微优化了diff的颜色
* `gdmb` (g)it (d)elete (m)erged (b)ranches - 删除所有已经合并到当前分支的分支
* `Gdiff`显示代码前后更改
##### vim-gitgutter
* `]h` 下一个hunk(更改点)
* `[h` 上一个hunk
* `<Leader>ha` 将该hunk放进state区域保存
* `<Leader>hr` 撤销该hunk
### RubyGems
.gemrc被包含了。 再也不用输入`gem install whatever --no-ri --no-rdoc`. `--no-ri --no-rdoc`,因为默认都做好哦了。

View File

@ -0,0 +1,4 @@
nmap ]h <Plug>GitGutterNextHunk
nmap [h <Plug>GitGutterPrevHunk
nmap <Leader>ha <Plug>GitGutterStageHunk
nmap <Leader>hr <Plug>GitGutterUndoHunk

View File

@ -188,3 +188,5 @@ nnoremap <leader>p :cprevious<cr>
nnoremap <leader>l :redraw!<cr>
imap <leader>cb 『』
nnoremap <leader>n :cn<cr>
nnoremap <leader>p :cp<cr>

View File

@ -1,4 +1,5 @@
Bundle "gregsexton/gitv"
Bundle "mattn/gist-vim"
Bundle "tpope/vim-fugitive"
Bundle "airblade/vim-gitgutter"
Bundle "tpope/vim-git"