From ec669640a9320c50136cf6433a5531f7ddabeea6 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 6 Dec 2019 22:21:52 +0530 Subject: [PATCH] nvim: init.vim: Add some more key bindings Signed-off-by: Sanchayan Maity --- nvim/init.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 65d29a4..d1c13c9 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -231,8 +231,7 @@ nnoremap sh :sp nnoremap sv :vsp " Quit nnoremap x :x -nnoremap q :q -nnoremap qa :qa +nnoremap Q :qa " Terminal nnoremap te :vsp :terminal nnoremap tc :SlimeConfig @@ -241,6 +240,8 @@ nmap ts SlimeParagraphSend " Tab navigation shortcuts nnoremap tn :bn nnoremap tp :bp +nnoremap :bprevious +nnoremap :bnext " Reload opened vim config file nnoremap vr :so % " For git @@ -261,6 +262,7 @@ nnoremap g- :Git stash:e nnoremap g+ :Git stash pop:e nnoremap gf :exe ':Ggrep ' . expand('') nnoremap gF :Ggrep +nnoremap gg :GGrep " For gitgutter nnoremap ghn :GitGutterNextHunk nnoremap ghp :GitGutterPrevHunk @@ -284,11 +286,14 @@ nnoremap fn :cnext nnoremap fp :cprevious nnoremap fo :copen nnoremap fc :cclose +nnoremap fs :vimgrep nnoremap ft :call ToggleQuickfixList() + nnoremap ffn :lnext nnoremap ffp :lprevious nnoremap ffo :lopen nnoremap ffc :lclose +nnoremap ffs :lvimgrep nnoremap fft :call ToggleLocationList() " Key Bindings to help with terminal mode