Update var initialization

This commit is contained in:
Kim Silkebækken 2011-03-30 13:35:35 +02:00
parent ec17e11e0e
commit 419af50587

View File

@ -61,13 +61,15 @@
endif endif
" }}} " }}}
" Initialize variables {{{ " Initialize variables {{{
let s:index_to_key = split(g:EasyMotion_keys, '\zs') let s:index_to_key = {}
let s:key_to_index = {} let s:key_to_index = {}
let index = 0 let idx = 0
for i in s:index_to_key for char in split(g:EasyMotion_keys, '\zs')
let s:key_to_index[i] = index let s:index_to_key[idx] = char
let index += 1 let s:key_to_index[char] = idx
let idx += 1
endfor endfor
let s:var_reset = {} let s:var_reset = {}