Cterm support

Hey,

this contains some heavy modifications to your original version. So don't hesitate to decline, if you don't like it!

- support for terminal-vim
- heavy refactoring (sorry for this)

If there are only specific things you don't like, feel free to tell me, so I can change these.