fix Next, Previous motions
Unlike all other motions, they have no <Esc> in visual mode, so they are handled outside the helper function.
This commit is contained in:
parent
9d7069e70a
commit
4465876cdc
@ -184,13 +184,6 @@ call s:motion_map_helper({
|
||||
\ })
|
||||
"}}}
|
||||
|
||||
" -- Next, Previous Motion {{{
|
||||
call s:motion_map_helper({
|
||||
\ 'next' : {'fnc' : 'NextPrevious', 'direction': 0},
|
||||
\ 'previous' : {'fnc' : 'NextPrevious', 'direction': 1},
|
||||
\ })
|
||||
"}}}
|
||||
|
||||
" -- Line Motion {{{
|
||||
call s:motion_map_helper({
|
||||
\ 'wl' : {'fnc' : 'WBL', 'direction': 0},
|
||||
@ -205,6 +198,18 @@ call s:motion_map_helper({
|
||||
\ })
|
||||
"}}}
|
||||
|
||||
" -- Next, Previous Motion {{{
|
||||
noremap <silent><Plug>(easymotion-next)
|
||||
\ :<C-u>call EasyMotion#NextPrevious(0,0)<CR>
|
||||
xnoremap <silent><Plug>(easymotion-next)
|
||||
\ :<C-u>call EasyMotion#NextPrevious(1,0)<CR>
|
||||
|
||||
noremap <silent><Plug>(easymotion-prev)
|
||||
\ :<C-u>call EasyMotion#NextPrevious(0,1)<CR>
|
||||
xnoremap <silent><Plug>(easymotion-prev)
|
||||
\ :<C-u>call EasyMotion#NextPrevious(1,1)<CR>
|
||||
"}}}
|
||||
|
||||
" -- Repeat Motion {{{
|
||||
noremap <silent><Plug>(easymotion-repeat)
|
||||
\ :<C-u>call EasyMotion#Repeat(0)<CR>
|
||||
|
Loading…
x
Reference in New Issue
Block a user