nvim: init.vim: Key bindings for all fzf niceties

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-11-03 19:54:53 +05:30
parent 6fb728b503
commit 8dad0c1949

View file

@ -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>