scriptencoding utf-8 let s:save_cpo = &cpo set cpo&vim function! s:_vital_loaded(V) let s:Keymapping = a:V.import("Palette.Keymapping") endfunction function! s:_vital_depends() return [ \ "Palette.Keymapping", \ ] endfunction let s:emacs = { \ "name" : "KeyMapping_emacs_like" \} function! s:emacs.keymapping(cmdline) return { \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ "\" : { \ "key" : "\", \ "noremap" : 1, \ "lock" : 1, \ }, \ } endfunction function! s:make_emacs() return deepcopy(s:emacs) endfunction let s:vim_cmdline_mapping = { \ "name" : "KeyMapping_vim_cmdline_mapping", \ "_cmaps" : {} \} function! s:_convert_sid(rhs, sid) abort return substitute(a:rhs, '', '' . a:sid . '_', 'g') endfunction function! s:_auto_cmap() let cmaps = {} let cmap_info = s:Keymapping.rhs_key_list("c", 0, 1) " vital-over currently doesn't support mappings for c in filter(cmap_info, "v:val['buffer'] ==# 0") let cmaps[s:Keymapping.escape_special_key(c['lhs'])] = { \ 'noremap' : c['noremap'], \ 'key' : s:Keymapping.escape_special_key(s:_convert_sid(c['rhs'], c['sid'])), \ 'expr' : s:Keymapping.escape_special_key(c['expr']), \ } endfor return cmaps endfunction function! s:vim_cmdline_mapping.on_enter(cmdline) let self._cmaps = s:_auto_cmap() endfunction function! s:vim_cmdline_mapping.keymapping(cmdline) return self._cmaps endfunction function! s:make_vim_cmdline_mapping() return deepcopy(s:vim_cmdline_mapping) endfunction let &cpo = s:save_cpo unlet s:save_cpo " ___Revitalizer___ " NOTE: below code is generated by :Revitalize. " Do not mofidify the code nor append new lines if v:version > 703 || v:version == 703 && has('patch1170') function! s:___revitalizer_function___(fstr) abort return function(a:fstr) endfunction else function! s:___revitalizer_SID() abort return matchstr(expand(''), '\zs\d\+\ze____revitalizer_SID$') endfunction let s:___revitalizer_sid = '' . s:___revitalizer_SID() . '_' function! s:___revitalizer_function___(fstr) abort return function(substitute(a:fstr, 's:', s:___revitalizer_sid, 'g')) endfunction endif let s:___revitalizer_functions___ = {'_vital_depends': s:___revitalizer_function___('s:_vital_depends'),'_vital_loaded': s:___revitalizer_function___('s:_vital_loaded'),'make_emacs': s:___revitalizer_function___('s:make_emacs'),'make_vim_cmdline_mapping': s:___revitalizer_function___('s:make_vim_cmdline_mapping')} unlet! s:___revitalizer_sid delfunction s:___revitalizer_function___ function! vital#_easymotion#Over#Commandline#Modules#KeyMapping#import() abort return s:___revitalizer_functions___ endfunction " ___Revitalizer___