You can use Vim in two modes - one with GUI and other without GUI. To use GUI use command -
gvim foo.cpp
vim foo.cpp OR plain vanilla mode vi foo.cpp