[History] Fix #549 - Avoid : or / map
This commit is contained in:
parent
34881b707b
commit
6aa1db67a5
1 changed files with 4 additions and 2 deletions
|
@ -446,6 +446,8 @@ function! s:history_source(type)
|
|||
endfunction
|
||||
|
||||
nnoremap <plug>(-fzf-vim-do) :execute g:__fzf_command<cr>
|
||||
nnoremap <plug>(-fzf-/) /
|
||||
nnoremap <plug>(-fzf-:) :
|
||||
|
||||
function! s:history_sink(type, lines)
|
||||
if len(a:lines) < 2
|
||||
|
@ -465,7 +467,7 @@ function! s:history_sink(type, lines)
|
|||
endfunction
|
||||
|
||||
function! s:cmd_history_sink(lines)
|
||||
call s:history_sink(':', a:lines)
|
||||
call s:history_sink("\<plug>(-fzf-:)", a:lines)
|
||||
endfunction
|
||||
|
||||
function! fzf#vim#command_history(...)
|
||||
|
@ -476,7 +478,7 @@ function! fzf#vim#command_history(...)
|
|||
endfunction
|
||||
|
||||
function! s:search_history_sink(lines)
|
||||
call s:history_sink('/', a:lines)
|
||||
call s:history_sink("\<plug>(-fzf-/)", a:lines)
|
||||
endfunction
|
||||
|
||||
function! fzf#vim#search_history(...)
|
||||
|
|
Loading…
Add table
Reference in a new issue