Add API vim_replace_termcodes

- Add API function to call replace_termcodes