How to re-use a running GVim instance when double-clicking on text files. #17413
ubaldot
started this conversation in
Show and tell
Replies: 1 comment
|
I made something very similar in rust many years ago. https://github.com/bennyyip/gvim-remote/blob/master/src/main.rs |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In my daily work, I frequently switch between various applications like web browsers, email clients, messaging apps, and presentation tools — all of which require mouse interaction. Because of this, I no longer use GVim as a full IDE but rather for its original purpose: a powerful text editor.
Within this workflow, it's quite common to double-click a file to open it. However, I've noticed that doing so with text files launches a new instance of GVim each time, whereas I want to re-use running instances. I found a way forward to solve this issue that I describe in this gist and I hope it may be useful for someone in my same situation.
All reactions