Convert Vim-R-plugin Python code into C.