nvim: init.vim: Add some more key bindings
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
5984a6d528
commit
ec669640a9
1 changed files with 7 additions and 2 deletions
|
@ -231,8 +231,7 @@ nnoremap <Leader>sh <Esc>:sp<CR>
|
|||
nnoremap <Leader>sv <Esc>:vsp<CR>
|
||||
" Quit
|
||||
nnoremap <Leader>x <Esc>:x<CR>
|
||||
nnoremap <Leader>q <Esc>:q<CR>
|
||||
nnoremap <Leader>qa <Esc>:qa<CR>
|
||||
nnoremap <Leader>Q <Esc>:qa<CR>
|
||||
" Terminal
|
||||
nnoremap <Leader>te :vsp<CR> :terminal<CR>
|
||||
nnoremap <Leader>tc :SlimeConfig<CR>
|
||||
|
@ -241,6 +240,8 @@ nmap <Leader>ts <Plug>SlimeParagraphSend
|
|||
" Tab navigation shortcuts
|
||||
nnoremap <Leader>tn :bn<CR>
|
||||
nnoremap <Leader>tp :bp<CR>
|
||||
nnoremap <PageUp> :bprevious<CR>
|
||||
nnoremap <PageDown> :bnext<CR>
|
||||
" Reload opened vim config file
|
||||
nnoremap <Leader>vr :so %<CR>
|
||||
" For git
|
||||
|
@ -261,6 +262,7 @@ 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>
|
||||
nnoremap <Leader>gg :GGrep<SPACE>
|
||||
" For gitgutter
|
||||
nnoremap <Leader>ghn :GitGutterNextHunk<CR>
|
||||
nnoremap <Leader>ghp :GitGutterPrevHunk<CR>
|
||||
|
@ -284,11 +286,14 @@ nnoremap <Leader>fn :cnext<CR>
|
|||
nnoremap <Leader>fp :cprevious<CR>
|
||||
nnoremap <Leader>fo :copen<CR>
|
||||
nnoremap <Leader>fc :cclose<CR>
|
||||
nnoremap <Leader>fs :vimgrep<SPACE>
|
||||
nnoremap <Leader>ft :call ToggleQuickfixList()<CR>
|
||||
|
||||
nnoremap <Leader>ffn :lnext<CR>
|
||||
nnoremap <Leader>ffp :lprevious<CR>
|
||||
nnoremap <Leader>ffo :lopen<CR>
|
||||
nnoremap <Leader>ffc :lclose<CR>
|
||||
nnoremap <Leader>ffs :lvimgrep<SPACE>
|
||||
nnoremap <Leader>fft :call ToggleLocationList()<CR>
|
||||
|
||||
" Key Bindings to help with terminal mode
|
||||
|
|
Loading…
Reference in a new issue