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 8187443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:33:48+00:00 2026-06-07T02:33:48+00:00

I am trying to determine if a vim read-only instance can open a file,

  • 0

I am trying to determine if a vim read-only instance can open a file, to detect changes.

I am developing a method of forging a minimap-style functionality in VIM running in Konsole (KDE terminal emulator). I am having trouble syncing the two views. My line of thinking is that I might use a marker, but I need the map view to have access to the main view’s markers. Is there a way to open an already-open file with the -R flag (readonly) but have it read the existing swap file to be notified of new markers?

Thanks!

  • 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-07T02:33:53+00:00Added an answer on June 7, 2026 at 2:33 am

    I could not see a way to do this, and tried using a simple text file and two processes trying to edit the same file, with one Vim process invoked with -R.

    Using gVim — never tried with command line vim — it is notified when a change takes place, but not because another vim process made the change. In other words, CVS might update a file I am editing, and I’m asked whether to ignore or reload, but two vim processes did not have that file open.

    I did some more work with this, and using -R and 7.2.330 and I was able to edit one file regularly and the same file using vim -R. When I wrote out the file with a change, the other file did not see the change. gVim did see the change when made.

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

Sidebar

Related Questions

I am trying to determine where to place a script file in a location
I'm trying to determine the difference when I open serial port with hardware handshake
trying to determine a decent, cross browser method for obtaining attributes with javascript? assume
I'm trying to determine the architecture of another file from my application. I'm using
Trying to determine if it is possible to bind the SelectedValue of a ComboBox
I trying to determine display vertical size of my Blackberry Storm 2. I know,
I'm trying to determine if the current system is 32 or 64 bit. And
I am trying to determine if a phone is located in this polygon using
I'm trying to determine the iPhone user's location using a CLLocationManager and CLGeocoder. My
I'm trying to determine a rank for each key in a hash against the

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.