I suggets that you download textpad and use it to edit the c file and save it. Then open msys window to complie c. Vi is an old text edit tool, no GUI. It is not convenient.