mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-08 05:04:51 +08:00
1 parent
22c8ffa2ba
commit
14735b470a
2 files changed
+12
-1
No files matched your search
+2
-1
@@ -139,7 +139,8 @@ function! s:Detect(path)
|
||||
endif
|
||||
if exists('b:git_dir')
|
||||
silent doautocmd User Fugitive
|
||||
cnoremap <expr> <buffer> <C-R><C-G> <SID>recall()
|
||||
cnoremap <buffer> <expr> <C-R><C-G> <SID>recall()
|
||||
nnoremap <buffer> <silent> y<C-G> :call setreg(v:register,<SID>recall())<CR>
|
||||
let buffer = fugitive#buffer()
|
||||
if expand('%:p') =~# '//'
|
||||
call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)',''))
|
||||
|
||||
Reference in new issue
Block a user