Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I create a shortcut to open a terminal and launch vim (terminal version, not gvim) ?

share|improve this question

migrated from stackoverflow.com Mar 23 '11 at 13:58

This question came from our site for professional and enthusiast programmers.

4 Answers 4

up vote 1 down vote accepted

Create a shortcut with gnome-terminal -e vim as the target.

share|improve this answer

Look up in the options of your favourite terminal and see which allows you to run a given program. Using xterm:

xterm -e vim

assuming that vim is in you $PATH.

share|improve this answer

I recommend a keyboard shortcut then typing vi or vim in when terminal opens: Bind terminal to a key combination

share|improve this answer

using an alias e.g.

alias tvim="gnome-terminal -e vim"

if you use gnome-terminal obviously

share|improve this answer

Your Answer

 
discard

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

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