From 47739fc25635a020071bdd6ca2c90c5b1d70302e Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 5 Dec 2019 13:56:29 +0530 Subject: [PATCH] nvim: init.vim: Miscellaneous additions & improvements --- nvim/init.vim | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 27dba95..6e505cf 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -231,13 +231,22 @@ nnoremap tp :bp nnoremap vr :so % " For git nnoremap gm :GitMessenger -nnoremap gl :Glog -nnoremap gd :Gdiffsplit +nnoremap gl :0Glog +nnoremap gL :Glog +nnoremap gd :Gdiff +nnoremap gD :Gdiffsplit nnoremap gs :Gstatus -nnoremap gc :Gcommit --signoff -nnoremap gp :Git! push -nnoremap gu :Git! push -u -nnoremap gr :Git! remote -v +nnoremap gc :Gcommit -v -q --signoff +nnoremap gt :Gcommit -v -q --signoff %:p +nnoremap gp :Git push +nnoremap gu :Git push -u +nnoremap gr :Git remote -v +nnoremap gb :Git branch +nnoremap go :Git checkout +nnoremap g- :Git stash:e +nnoremap g+ :Git stash pop:e +nnoremap gf :exe ':Ggrep ' . expand('') +nnoremap gF :Ggrep " For gitgutter nnoremap ghn :GitGutterNextHunk nnoremap ghp :GitGutterPrevHunk @@ -253,10 +262,10 @@ nnoremap cr :cs reset " For Neomake nnoremap nm :Neomake nnoremap nc :NeomakeClean -nnoremap ns :NeomakeSh +nnoremap ns :NeomakeSh nnoremap njl :NeomakeListJobs nnoremap nja :NeomakeCancelJobs -nnoremap njc :NeomakeCancelJob +nnoremap njc :NeomakeCancelJob " For workspace nnoremap sw :ToggleWorkspace @@ -571,5 +580,5 @@ function! CscopeQuery(option) endfunction function! NvimGdbNoTKeymaps() - tnoremap + tnoremap endfunction