commit 900942d67a12dd3442911d8a993449b29fda08f4
parent ac7005b1020f5ea55f67917a755b9444ec19b35e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 19 May 2019 20:15:15 +0200
Use fzf for buffers, add more native bindings
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.vim/plugin/keybinds.vim b/.vim/plugin/keybinds.vim
@@ -28,8 +28,6 @@ nnoremap <leader>h :Hex<cr>
" https://www.vi-improved.org/recommendations/
"" add files with wildcards
nnoremap <leader>a :argadd <c-r>=fnameescape(expand('%:p:h'))<cr>/*<c-d>
-"" go to buffer prompt
-nnoremap <leader>b :b <c-d>
"" go to file open prompt
nnoremap <leader>e :e **/
nnoremap <leader>g :grep<space>
@@ -97,10 +95,15 @@ nnoremap <leader>gP :Gpull<cr>
" Use home row keys as Esc
inoremap jk <Esc>
+nnoremap <leader>o :browse oldfiles<cr>
+nnoremap <leader>b :b <c-d>
+nnoremap <leader>f :e <c-d>
+
" using fzf.vim
augroup FzfBinds
autocmd VimEnter * if exists(":Buffers") |
\ exe "nnoremap <leader>o :History<cr>" |
+ \ exe "nnoremap <leader>b :Buffers<cr>" |
\ exe "nnoremap <leader>f :Files<cr>" |
\ exe "nnoremap <leader>F :GFiles<cr>" |
\ exe "nnoremap <leader>l :Lines<cr>" |