Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Unity I added the shortcut to open gVim, using keyboard->Shortcuts->Custom shortcuts So now Ctrl+G opens gVim, I want to launch it in a way that the selected file is opened in gVim after the command The launch command currently is gvim I want the command to be like gvim [filename] where filename is the name of the file which is selected in the open explorer window.

That is I want to achieve the exact effect of the "open with gvim" menu button which we get when one right clicks on a file, only using a keyboard shortcut. Thanks.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.