Support ctrlp.vim in historical buffers
This commit is contained in:
parent
615f6608f1
commit
41383131b8
@ -2237,6 +2237,9 @@ augroup END
|
||||
function! s:JumpInit() abort
|
||||
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>GF("edit")<CR>
|
||||
if !&modifiable
|
||||
if exists(':CtrlP')
|
||||
nnoremap <buffer> <silent> <C-P> :<C-U>exe 'CtrlP '.fnameescape(<SID>repo().tree())<CR>
|
||||
endif
|
||||
nnoremap <buffer> <silent> o :<C-U>exe <SID>GF("split")<CR>
|
||||
nnoremap <buffer> <silent> S :<C-U>exe <SID>GF("vsplit")<CR>
|
||||
nnoremap <buffer> <silent> O :<C-U>exe <SID>GF("tabedit")<CR>
|
||||
|
Loading…
x
Reference in New Issue
Block a user