Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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!
You can use the --remote and --remote-silent options:
gvim --remote-silent text.txt
Vim's internal help system is excellent; try
Required, but never shown