Roland's homepage

My random knot in the Web

Opening vim in a new terminal

By default, when you open vim it runs on the current terminal. When running X11, I want to start it in a new terminal.

To solve this, I created an alias in my ~/.tcshrc:

alias tvim 'urxvt -e vim \!* &'

From left to right, this alias;

  • starts a new rxvt-unicode terminal emulator,
  • which runs vim
  • with all the parameters provided to the alias (because of \!*).
  • The new process is started asyncronously (because of &).

Related articles


←  Creating a screenshot in X11