Most of the time I can browse the file system with the file browser, right-click on a file and top item in the menu "Open with Gvim", but when I right-click on a .c or .h file, it says "Open with (some inferior editor)". I mouse over to the "Open With" submenu, and Gvim doesn't appear in there, either. Even when I go into "Other Application" and browse through the programs, it doesn't show up. What gives?
In your reply in the comments, you said you have created a custom launcher for GVim. In your custom desktop launcher, you neglected to include the
So to register GVim as a text editor with your desktop environment, your custom