2016-01-14 10:59:56 -05:00
|
|
|
let s:V = vital#of('easymotion')
|
|
|
|
let s:HitAHintMotion = s:V.import('HitAHint.Motion')
|
|
|
|
|
|
|
|
function! EasyMotion#overwin#move(pattern) abort
|
2016-01-17 12:56:36 -05:00
|
|
|
return s:HitAHintMotion.move(a:pattern, {
|
|
|
|
\ 'keys': g:EasyMotion_keys,
|
|
|
|
\ 'use_upper': g:EasyMotion_use_upper,
|
|
|
|
\ 'highlight': {
|
|
|
|
\ 'shade': g:EasyMotion_hl_group_shade,
|
|
|
|
\ 'target': g:EasyMotion_hl_group_target,
|
|
|
|
\ },
|
2016-01-18 13:02:44 -05:00
|
|
|
\ 'jump_first_target_keys':
|
|
|
|
\ (g:EasyMotion_enter_jump_first ? ["\<CR>"] : []) +
|
|
|
|
\ (g:EasyMotion_space_jump_first ? ["\<Space>"] : [])
|
2016-01-17 12:56:36 -05:00
|
|
|
\ })
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! EasyMotion#overwin#line() abort
|
|
|
|
return EasyMotion#overwin#move('^')
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! EasyMotion#overwin#w() abort
|
|
|
|
return EasyMotion#overwin#move('\(\<.\|^$\)')
|
2016-01-14 10:59:56 -05:00
|
|
|
endfunction
|