updated insert mode stuff ; still lots of debug outputs ; still not much smooth in insert mode ; updated timers

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
updated socketIO for support of jsonp-polling (experimental)

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
updated timer functions

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
cosmetics additions: a few comments and folding

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
minor refactoring

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
updated reference to current buffer to not use vim.current (so one can change viewed buffer, the script stays on the same buffer)

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
simplified insert/normal mode switching

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
added status_* checking from env to env init

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
improved insert/normal handling ; switch printouts to debug logging

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
added exception info ; switch insertions handling through cursormoved and added b:changedtick checking to choose between update or sending.

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
added handling of modified status

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>