scriptencoding utf-8 let s:save_cpo = &cpo set cpo&vim let s:module = { \ "name" : "Scroll" \} function! s:module.on_char_pre(cmdline) if a:cmdline.is_input("(scroll-y)") execute "normal! \" call a:cmdline.setchar('') elseif a:cmdline.is_input("(scroll-u)") execute "normal! \" call a:cmdline.setchar('') elseif a:cmdline.is_input("(scroll-f)") execute "normal! \" call a:cmdline.setchar('') elseif a:cmdline.is_input("(scroll-e)") execute "normal! \" call a:cmdline.setchar('') elseif a:cmdline.is_input("(scroll-d)") execute "normal! \" call a:cmdline.setchar('') elseif a:cmdline.is_input("(scroll-b)") execute "normal! \" call a:cmdline.setchar('') endif endfunction function! s:make() return deepcopy(s:module) endfunction let &cpo = s:save_cpo unlet s:save_cpo