Add gitgutter plugin
This commit is contained in:
parent
d32bc4751b
commit
2ac0658755
@ -158,3 +158,8 @@ inoremap <C-A> <C-O>:call Select()<CR>
|
|||||||
nnoremap <leader>ag :call fzf#vim#ag(expand('<cword>'), WithGitRoot())<CR>
|
nnoremap <leader>ag :call fzf#vim#ag(expand('<cword>'), WithGitRoot())<CR>
|
||||||
nnoremap <leader>tg :call fzf#vim#tags(expand('<cword>'), {'options': '--exact --select-1 --exit-0'})<CR>
|
nnoremap <leader>tg :call fzf#vim#tags(expand('<cword>'), {'options': '--exact --select-1 --exit-0'})<CR>
|
||||||
|
|
||||||
|
" gitgutter
|
||||||
|
nmap <leader>ggt <Esc>:GitGutterToggle<CR>
|
||||||
|
nmap <leader>nh <Plug>GitGutterNextHunk
|
||||||
|
nmap <leader>bh <Plug>GitGutterPrevHunk
|
||||||
|
|
||||||
|
5
vimrc
5
vimrc
@ -27,7 +27,6 @@ Plug 'Keithbsmiley/swift.vim'
|
|||||||
Plug 'majutsushi/tagbar'
|
Plug 'majutsushi/tagbar'
|
||||||
Plug 'ternjs/tern_for_vim'
|
Plug 'ternjs/tern_for_vim'
|
||||||
Plug 'xolox/vim-easytags'
|
Plug 'xolox/vim-easytags'
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
Plug 'nathanaelkane/vim-indent-guides'
|
Plug 'nathanaelkane/vim-indent-guides'
|
||||||
Plug 'xolox/vim-misc'
|
Plug 'xolox/vim-misc'
|
||||||
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
|
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
|
||||||
@ -41,6 +40,10 @@ Plug 'junegunn/fzf', { 'do': './install --bin' }
|
|||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'sbdchd/neoformat'
|
Plug 'sbdchd/neoformat'
|
||||||
|
|
||||||
|
" scm
|
||||||
|
Plug 'tpope/vim-fugitive'
|
||||||
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
" local_vimrc
|
" local_vimrc
|
||||||
Plug 'LucHermitte/lh-vim-lib'
|
Plug 'LucHermitte/lh-vim-lib'
|
||||||
Plug 'LucHermitte/local_vimrc'
|
Plug 'LucHermitte/local_vimrc'
|
||||||
|
Loading…
Reference in New Issue
Block a user