commit e403619cb2e76556b6d586485963385fc2006b3c
parent 445bdcc989227c3aaa56a11f5dbfecf4de6922bc
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 7 Jun 2019 13:13:06 +0200
Do not loose fzf binds after configuration reload
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.vim/plugin/keybinds.vim b/.vim/plugin/keybinds.vim
@@ -94,10 +94,6 @@ nnoremap <leader>gP :Gpull<cr>
" Use home row keys as Esc
inoremap jk <Esc>
-nnoremap <leader>o :browse oldfiles<cr>
-nnoremap <leader>, :b <c-d>
-nnoremap <leader>f :e <c-d>
-
" using fzf.vim
augroup FzfBinds
autocmd VimEnter * if exists(":Buffers") |
@@ -108,6 +104,10 @@ augroup FzfBinds
\ exe "nnoremap <leader>F :GFiles<cr>" |
\ exe "nnoremap <leader>l :Lines<cr>" |
\ exe "nnoremap <leader>t :Tags<cr>" |
+ \ else |
+ \ exe "nnoremap <leader>o :browse oldfiles<cr>" |
+ \ exe "nnoremap <leader>, :b <c-d>" |
+ \ exe "nnoremap <leader>f :e <c-d>" |
\ endif
augroup end