nvim: init.vim: Key bindings for all fzf niceties
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
6fb728b503
commit
8dad0c1949
1 changed files with 13 additions and 4 deletions
|
@ -151,9 +151,15 @@ nnoremap <Leader>pd :PlugUpdate<CR>
|
||||||
nnoremap <Leader>pc :PlugClean<CR>
|
nnoremap <Leader>pc :PlugClean<CR>
|
||||||
" Open NerdTree
|
" Open NerdTree
|
||||||
nnoremap <Leader>ee :NERDTree<CR>
|
nnoremap <Leader>ee :NERDTree<CR>
|
||||||
" Open fuzzy file search
|
" For fzf
|
||||||
nnoremap <Leader>f :Files<CR>
|
nnoremap <Leader>vf :Files<CR>
|
||||||
nnoremap <Leader>gf :GFiles<CR>
|
nnoremap <Leader>vg :GFiles<CR>
|
||||||
|
nnoremap <Leader>vb :Buffers<CR>
|
||||||
|
nnoremap <Leader>vL :Lines<CR>
|
||||||
|
nnoremap <Leader>vl :BLines<CR>
|
||||||
|
nnoremap <Leader>vt :Tags<CR>
|
||||||
|
nnoremap <Leader>vc :Bcommits<CR>
|
||||||
|
nnoremap <Leader>va :Commits<CR>
|
||||||
" Use ripgrep to search for content in files
|
" Use ripgrep to search for content in files
|
||||||
nnoremap <Leader>/ :Rg<CR>
|
nnoremap <Leader>/ :Rg<CR>
|
||||||
" Save
|
" Save
|
||||||
|
@ -166,8 +172,11 @@ nnoremap <Leader>q <Esc>:q<CR>
|
||||||
noremap <Leader>d :exe ':Rg ' . expand('<cword>')<CR>
|
noremap <Leader>d :exe ':Rg ' . expand('<cword>')<CR>
|
||||||
" Open terminal
|
" Open terminal
|
||||||
nnoremap <Leader>te :vsp<CR> :terminal<CR>
|
nnoremap <Leader>te :vsp<CR> :terminal<CR>
|
||||||
|
" Tab navigation shortcuts
|
||||||
|
nnoremap <Leader>tn :bn<CR>
|
||||||
|
nnoremap <Leader>tp :bp<CR>
|
||||||
" Reload opened vim config file
|
" Reload opened vim config file
|
||||||
nnoremap <Leader>vc :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 :Glog<CR>
|
||||||
|
|
Loading…
Reference in a new issue