Skip to content

Commit b1acf67

Browse files
committed
Init with overwin motions
fix #268
1 parent 799491e commit b1acf67

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

autoload/EasyMotion.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ let s:DIRECTION = { 'forward': 0, 'backward': 1, 'bidirection': 2}
1616

1717

1818
" Init: {{{
19+
let s:loaded = s:FALSE
1920
function! EasyMotion#init()
21+
if s:loaded
22+
return
23+
endif
24+
let s:loaded = s:TRUE
2025
call EasyMotion#highlight#load()
2126
" Store previous motion info
2227
let s:previous = {}

autoload/EasyMotion/overwin.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
let s:V = vital#of('easymotion')
22
let s:HitAHintMotion = s:V.import('HitAHint.Motion')
33

4+
call EasyMotion#init()
5+
46
function! EasyMotion#overwin#move(pattern) abort
57
return s:HitAHintMotion.move(a:pattern, {
68
\ 'keys': g:EasyMotion_keys,

0 commit comments

Comments
 (0)