simple vim-like console editor in Lua