Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8404601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:38:24+00:00 2026-06-09T22:38:24+00:00

Since my question Setting servername in vimrc as opposed to command line switch turned

  • 0

Since my question Setting servername in vimrc as opposed to command line switch turned out not to be feasible, I am looking for help. Is there some way that I can tell apart different instances of gvim?

Scenario: I am making a lightweight realtime LaTeX plugin for vim. Currently it works as long as I only have one instance of gvim running. But, if I have two .tex files open in separate windows, the command I am using to get my previewer, yap, to talk to vim

"C:\Program Files (x86)\Vim\vim73\gvim.exe" --remote +%l "%f

doesn’t always talk to the correct instance of gvim running. In my previous question I was trying to use the --servername option to get it to talk to the correct instance, but since I am opening gvim by right clicking->open with->gvim, and since I can’t set the servername at runtime, I can’t get each instance of gvim to get a unique servername.

So is there some way that I could uniquely identify each instance of gvim? My last resort hack would be to use autohotkey to parse the name of the file in the window title and send the keys through autohotkey, but I feel like there should be a simpler way…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:38:26+00:00Added an answer on June 9, 2026 at 10:38 pm

    Every launched Vim instance will automatically have a unique v:servername; on Windows, I get GVIM, GVIM1, GVIM2, …

    (Already mentioned by Peter Rincker in the comments.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATED QUESTION Since the ctor is not supported by .NETCF (public FileStream(IntPtr handle, FileAccess
Newbie question since I'm not up to speed using maven at all. I'm trying
EDIT : I completely re-wrote the question since it seems like I was not
This is a pretty basic question. Since browsers have a culture setting that the
Im firing this question at you guys since the project-page itself has not a
This is easy in .NET (not my question) but I'm trying to figure out
Sorry since this question is specific to my problem. While learning reflections i did
UPDATE : Since this question is getting some views, I figured I'd better highlight
Edit (2012-04-12): Since this question was asked it is now possible (as of jQuery
UPDATED QUESTION: Ok, I am going to simplify my question since I don't really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.