1

I compiled and installed vim 7.4 in Ubuntu 12.04. I want to set gvim as the default application for all text and C/C++ files.

I tried : Right click > Open With Other Application. But couldn't find Gvim in that list. I also can't find Gvim in the launcher.

$which gvim
/usr/bin/gvim

Currently, I have to launch gvim from command line only.

$gvim filename &

How can I make gvim as the default editor when I open any text/ C/C++ files from file explorer?

1

Resolved. It turned out to be a duplicate.

I referred this: How do I make vim the default graphical text editor?

I had some problems creating a .desktop file, but this link is useful : Creating .desktop files to use on the "Open with other application" tab

Not the answer you're looking for? Browse other questions tagged or ask your own question.