[misc] c-p for fzf-open for both ranger/vim

This commit is contained in:
Klesh Wong 2020-11-11 00:53:29 +08:00
parent d68d31e9bc
commit 39244003bd
2 changed files with 3 additions and 2 deletions

View File

@ -215,7 +215,8 @@ nnoremap <leader>gsc :exec "!git switch -c " . input("Enter new branch name:")<C
" ==== fzf configuration ====
" enable <C-p> for fzf
let g:fugitive_no_maps=1
nnoremap <C-o> :GitFiles<Cr>
nnoremap <C-p> :GitFiles<Cr>
nnoremap <leader>gco :call fzf#run({'source': 'git branch \| cut -c 3-; git tag -l', 'sink': '!git checkout'})<CR>
nnoremap <leader>gm :call fzf#run({'source': 'git branch \| cut -c 3-', 'sink': '!git merge'})<CR>

View File

@ -7,4 +7,4 @@ set draw_borders both
set vcs_aware true
map cg eval import subprocess;fm.cd(subprocess.getoutput('git rev-parse --show-toplevel'))
map <C-t> fzf_select
map <C-o> fzf_edit
map <C-p> fzf_edit