nvim: init.vim: Miscellaneous additions & improvements
This commit is contained in:
parent
edc425c029
commit
47739fc256
1 changed files with 18 additions and 9 deletions
|
@ -231,13 +231,22 @@ nnoremap <Leader>tp :bp<CR>
|
||||||
nnoremap <Leader>vr :so %<CR>
|
nnoremap <Leader>vr :so %<CR>
|
||||||
" For git
|
" For git
|
||||||
nnoremap <Leader>gm :GitMessenger<CR>
|
nnoremap <Leader>gm :GitMessenger<CR>
|
||||||
nnoremap <Leader>gl :Glog<CR>
|
nnoremap <Leader>gl :0Glog<CR>
|
||||||
nnoremap <Leader>gd :Gdiffsplit<CR>
|
nnoremap <Leader>gL :Glog<CR>
|
||||||
|
nnoremap <Leader>gd :Gdiff<CR>
|
||||||
|
nnoremap <Leader>gD :Gdiffsplit<CR>
|
||||||
nnoremap <Leader>gs :Gstatus<CR>
|
nnoremap <Leader>gs :Gstatus<CR>
|
||||||
nnoremap <Leader>gc :Gcommit --signoff<CR>
|
nnoremap <Leader>gc :Gcommit -v -q --signoff<CR>
|
||||||
nnoremap <Leader>gp :Git! push<CR>
|
nnoremap <Leader>gt :Gcommit -v -q --signoff %:p<CR>
|
||||||
nnoremap <Leader>gu :Git! push -u
|
nnoremap <Leader>gp :Git push<CR>
|
||||||
nnoremap <Leader>gr :Git! remote -v<CR>
|
nnoremap <Leader>gu :Git push -u<SPACE>
|
||||||
|
nnoremap <Leader>gr :Git remote -v<CR>
|
||||||
|
nnoremap <Leader>gb :Git branch<SPACE>
|
||||||
|
nnoremap <Leader>go :Git checkout<SPACE>
|
||||||
|
nnoremap <Leader>g- :Git stash<CR>:e<CR>
|
||||||
|
nnoremap <Leader>g+ :Git stash pop<CR>:e<CR>
|
||||||
|
nnoremap <Leader>gf :exe ':Ggrep ' . expand('<cword>')<CR>
|
||||||
|
nnoremap <Leader>gF :Ggrep<SPACE>
|
||||||
" For gitgutter
|
" For gitgutter
|
||||||
nnoremap <Leader>ghn :GitGutterNextHunk<CR>
|
nnoremap <Leader>ghn :GitGutterNextHunk<CR>
|
||||||
nnoremap <Leader>ghp :GitGutterPrevHunk<CR>
|
nnoremap <Leader>ghp :GitGutterPrevHunk<CR>
|
||||||
|
@ -253,10 +262,10 @@ nnoremap <Leader>cr :cs reset<CR>
|
||||||
" For Neomake
|
" For Neomake
|
||||||
nnoremap <Leader>nm :Neomake<CR>
|
nnoremap <Leader>nm :Neomake<CR>
|
||||||
nnoremap <Leader>nc :NeomakeClean<CR>
|
nnoremap <Leader>nc :NeomakeClean<CR>
|
||||||
nnoremap <Leader>ns :NeomakeSh
|
nnoremap <Leader>ns :NeomakeSh<SPACE>
|
||||||
nnoremap <Leader>njl :NeomakeListJobs<CR>
|
nnoremap <Leader>njl :NeomakeListJobs<CR>
|
||||||
nnoremap <Leader>nja :NeomakeCancelJobs<CR>
|
nnoremap <Leader>nja :NeomakeCancelJobs<CR>
|
||||||
nnoremap <Leader>njc :NeomakeCancelJob
|
nnoremap <Leader>njc :NeomakeCancelJob<SPACE>
|
||||||
" For workspace
|
" For workspace
|
||||||
nnoremap <Leader>sw :ToggleWorkspace<CR>
|
nnoremap <Leader>sw :ToggleWorkspace<CR>
|
||||||
|
|
||||||
|
@ -571,5 +580,5 @@ function! CscopeQuery(option)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! NvimGdbNoTKeymaps()
|
function! NvimGdbNoTKeymaps()
|
||||||
tnoremap <silent> <buffer> <esc> <c-\><c-n>
|
tnoremap <silent> <buffer> <Esc> <C-\><C-n>
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue