Move code called by Vim to src/apps/vimcom.c
Avoid Vim depending on a DLL that depends on R.dll.