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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:24:54+00:00 2026-06-05T17:24:54+00:00

I got a annoying situation: Under /path1/to, I vim a file name file1, but

  • 0

I got a annoying situation:

Under /path1/to, I vim a file name “file1”, but it looks I was always editing another file1 under different directory like /path2/to/file1 even if I type vim ./file under “/path1/to”.

I type :buffers and got:

 1 # =  "/path1/to/file1"          line 1
 2 %a + "path2/to/file1"         line 426

/*please note buffer 2 is without / prefix while 1 dose */

Even I vim the file using “vim ./file1” under /path1/to/, the buffer is always pointing to buffer 2.

What kind of operation made this happen, why there are two buffers?
How to fix it?

Thanks in advance.

EDIT: They are not the same file though share the same name. If I use vi, instead of vim, the file I am editing is exactly the file that is expected to be editing.

  • 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-05T17:24:55+00:00Added an answer on June 5, 2026 at 5:24 pm

    To narrow the problem down. You can start vim without loading vimrc and plugin:

    vim -u NONE /path1/to/file1 path2/to/file1
    

    And print verbose message before switching buffers:

    :20verbose bn
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've hit an annoying problem in LaTeX. I've got a tex file of about
Ive got an annoying problem, I cant append any text to the text file.
Today I wanted to write a simple php script, but I got some annoying
I got some funny but annoying problem. Somehow I toggled this kind of view
I've got a really annoying problem, and as much as I've searched, I can't
I've got a really annoying problem: I'm working on a collaborative text editor in
I've got a very annoying problem with my Zend studio. I have a zend
We've got this very annoying problem with Scriptaculous and Internet Explorer 7/8. We have
I'm a beginner user to Visual Studio and I got these annoying lines to
I got stuck something annoying. I uploaded images to server it's ok. However, when

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.