started fixing adding control chars in vi mode