Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Background: I'm using Ubuntu and have an existing Gvim GUI opened. Now I want to edit a file from command line gvim test.txt, the command will open another new Gvim GUI. Is there any method to open that file to current GUI but not new one? Thanks!

share|improve this question
up vote 5 down vote accepted

You can use the --remote and --remote-silent options:

gvim --remote-silent text.txt

Vim's internal help system is excellent; try

:help clientserver
share|improve this answer
Perfect! First time to know --remote. Thank you. – Billy Chan Dec 18 '12 at 3:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .