add vimmode and termios support
Merge pull request #1 from codeskyblue/master

add vimmode and termios support