commit a911d7e09d1444b388b0ddf5202a3a1c1ad3f399
parent 68aed3771e9a9e30e5c905d304620a743e818ba6
Author: Alex Balgavy <alex@balgavy.eu>
Date: Thu, 7 Jul 2022 23:26:52 +0200
vim: more options for fzf :Files
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -305,7 +305,8 @@ let g:fzf_preview_window = 'right:60%'
let g:fzf_buffers_jump = 1
nnoremap <leader>F :Files<CR>
-nnoremap <leader><c-f> :Files<space>
+nnoremap <leader><c-f><c-f> :Files<space>
+nnoremap <expr> <leader><c-f>. ":Files " .. expand("%:h") .. "<CR>"
nnoremap <leader>B :Buffers<CR>
nnoremap <leader>G :Lines<CR>
nnoremap <leader>W :BLines<CR>