nvim: added fugitive and mappings for it

master
TiynGER 4 years ago
parent ab7664de8a
commit 4602dff849

@ -146,6 +146,7 @@ Plug 'ryanoasis/vim-devicons' " enable icons for vim
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} " filetree Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} " filetree
Plug 'sirver/ultisnips' " snippets Plug 'sirver/ultisnips' " snippets
Plug 'tomasiser/vim-code-dark' " adding colorscheme Plug 'tomasiser/vim-code-dark' " adding colorscheme
Plug 'tpope/vim-fugitive' " git wrapper
Plug 'tpope/vim-surround' " help for quotes/parantheses Plug 'tpope/vim-surround' " help for quotes/parantheses
Plug 'uiiaoo/java-syntax.vim' , {'for': 'java'} " better syntax highlight for java than default Plug 'uiiaoo/java-syntax.vim' , {'for': 'java'} " better syntax highlight for java than default
call plug#end() call plug#end()
@ -257,6 +258,16 @@ let g:NERDTreeWinPos = "left"
" sirver/ultisnips " sirver/ultisnips
let g:UltiSnipsExpandTrigger="<alt-j>" let g:UltiSnipsExpandTrigger="<alt-j>"
" tpope/vim-fugitive
nnoremap <leader>ga :Git add %:p<CR><CR>
nnoremap <leader>gd :Git diff<CR>
nnoremap <leader>gc :Gcommit<CR>
nnoremap <leader>go :Git checkout<Space>
nnoremap <leader>gh :diffget //3<CR>
nnoremap <leader>gr :Gread<CR>
nnoremap <leader>gu :diffget //2<CR>
nnoremap <leader>gs :G<CR>
" tomasiser/vim-code-dark " tomasiser/vim-code-dark
colorscheme codedark colorscheme codedark

Loading…
Cancel
Save