Skip to content

Instantly share code, notes, and snippets.

@haya14busa
Created February 21, 2014 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haya14busa/9132260 to your computer and use it in GitHub Desktop.
Save haya14busa/9132260 to your computer and use it in GitHub Desktop.
let s:V= vital#of("test")
let s:base = s:V.import("Over.Commandline.Base")
let s:make = s:V.import("Over.Commandline.Maker")
" let s:my = s:base.make()
" let s:my = s:base.make()
let s:my = s:make.standard()
let s:my.set_prompt('>>>')
" call s:my.cnoremap("\<CR>", "<Over>(exit)")
call s:my.cnoremap("\<Tab>", "<Over>(buffer-complete)")
" call s:my.connect("Exit")
call s:my.connect("Execute")
call s:my.connect("Cancel")
call s:my.connect("Cancel")
call s:my.connect("BufferComplete")
call s:my.connect("InsertRegister")
function! s:my.execute()
echom s:my.getline()
" execute "normal! :" . s:my.getline()
call eval(s:my.getline())
" echom a:cmdline.getline()
endfunction
function! g:vital_over()
call s:my.start()
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment