Skip to content

Commit c646db0

Browse files
committed
Merge branch 'fix-over-remapping'
2 parents c9cc9ec + d4c14f7 commit c646db0

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

autoload/EasyMotion/command_line.vim

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,28 +80,9 @@ call s:search.connect(s:module)
8080
"}}}
8181

8282
" CommandLine Keymap: {{{
83+
" .keymapping() won't be remapped by user defined KeyMappings.
8384
function! s:search.keymapping() "{{{
8485
return {
85-
\ "\<C-l>" : {
86-
\ "key" : "<Over>(buffer-complete)",
87-
\ "noremap" : 1,
88-
\ },
89-
\ "\<Tab>" : {
90-
\ "key" : "<Over>(em-scroll-f)",
91-
\ "noremap" : 1,
92-
\ },
93-
\ "\<S-Tab>" : {
94-
\ "key" : "<Over>(em-scroll-b)",
95-
\ "noremap" : 1,
96-
\ },
97-
\ "\<C-o>" : {
98-
\ "key" : "<Over>(em-jumpback)",
99-
\ "noremap" : 1,
100-
\ },
101-
\ "\<C-z>" : {
102-
\ "key" : "<Over>(em-openallfold)",
103-
\ "noremap" : 1,
104-
\ },
10586
\ "\<CR>" : {
10687
\ "key" : "<Over>(exit)",
10788
\ "noremap" : 1,
@@ -110,6 +91,12 @@ function! s:search.keymapping() "{{{
11091
\ }
11192
endfunction "}}}
11293

94+
call s:search.cnoremap("\<C-l>", '<Over>(buffer-complete)')
95+
call s:search.cnoremap("\<Tab>", '<Over>(em-scroll-f)')
96+
call s:search.cnoremap("\<S-Tab>", '<Over>(em-scroll-b)')
97+
call s:search.cnoremap("\<C-o>", '<Over>(em-jumpback)')
98+
call s:search.cnoremap("\<C-z>", '<Over>(em-openallfold)')
99+
113100
" Fins Motion CommandLine Mapping Command: {{{
114101
function! EasyMotion#command_line#cmap(args)
115102
let lhs = s:as_keymapping(a:args[0])

0 commit comments

Comments
 (0)