diff --git a/autoload/EasyMotion/command_line.vim b/autoload/EasyMotion/command_line.vim index 6e11194..a579d3f 100644 --- a/autoload/EasyMotion/command_line.vim +++ b/autoload/EasyMotion/command_line.vim @@ -80,28 +80,9 @@ call s:search.connect(s:module) "}}} " CommandLine Keymap: {{{ +" .keymapping() won't be remapped by user defined KeyMappings. function! s:search.keymapping() "{{{ return { -\ "\" : { -\ "key" : "(buffer-complete)", -\ "noremap" : 1, -\ }, -\ "\" : { -\ "key" : "(em-scroll-f)", -\ "noremap" : 1, -\ }, -\ "\" : { -\ "key" : "(em-scroll-b)", -\ "noremap" : 1, -\ }, -\ "\" : { -\ "key" : "(em-jumpback)", -\ "noremap" : 1, -\ }, -\ "\" : { -\ "key" : "(em-openallfold)", -\ "noremap" : 1, -\ }, \ "\" : { \ "key" : "(exit)", \ "noremap" : 1, @@ -110,6 +91,12 @@ function! s:search.keymapping() "{{{ \ } endfunction "}}} +call s:search.cnoremap("\", '(buffer-complete)') +call s:search.cnoremap("\", '(em-scroll-f)') +call s:search.cnoremap("\", '(em-scroll-b)') +call s:search.cnoremap("\", '(em-jumpback)') +call s:search.cnoremap("\", '(em-openallfold)') + " Fins Motion CommandLine Mapping Command: {{{ function! EasyMotion#command_line#cmap(args) let lhs = s:as_keymapping(a:args[0])