[misc] unify \cg for ranger/vim

This commit is contained in:
Klesh Wong 2020-11-11 00:56:58 +08:00
parent 39244003bd
commit e69968efe4
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ nnoremap <leader>k :cp<CR>
" ==== Ranger configuration ====
let g:ranger_map_key = 0
nnoremap <C-t> :Ranger<CR>
nnoremap <leader>cg :call OpenRangerIn(system('git rev-parse --show-toplevel') . '/', 'edit ')<CR>
nnoremap <leader>cg :call OpenRangerIn(system('git rev-parse --show-toplevel'), 'edit ')<CR>
" ==== fugitive configuration ====

View File

@ -5,6 +5,6 @@ set colorscheme solarizedmod
default_linemode devicons
set draw_borders both
set vcs_aware true
map cg eval import subprocess;fm.cd(subprocess.getoutput('git rev-parse --show-toplevel'))
map \cg eval import subprocess;fm.cd(subprocess.getoutput('git rev-parse --show-toplevel'))
map <C-t> fzf_select
map <C-p> fzf_edit