From d4c14f77314aa4a2297c8961a6a19f0dbe46d5ee Mon Sep 17 00:00:00 2001 From: haya14busa Date: Mon, 18 Jan 2016 03:30:29 +0900 Subject: [PATCH] Fix remapping over commandline keymappings fix #262 --- autoload/EasyMotion/command_line.vim | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) 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])