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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:22:46+00:00 2026-05-29T04:22:46+00:00

I moved mvim to /usr/local/bin , so from Terminal if I type mvim file.html

  • 0

I moved mvim to /usr/local/bin, so from Terminal if I type mvim file.html, then MacVim will open in a new window and open the file file.html.

But if I open another file from Terminal, then it will open another MacVim window.

Is it possible open the new file as a new tab on MacVim?

I currently have the MacVim setting as

Open files from application: in the current window
    with a tab for each file

But that only open new files in a new tab only if I open the file from MacVim (not running mvim from the Terminal).

  • 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-05-29T04:22:47+00:00Added an answer on May 29, 2026 at 4:22 am

    This hack should work, but it may be frustrating to maintain every time that MacVim is updated. It requires you to edit the mvim script. This seems to be a longstanding and known issue.

    mvim `which mvim`
    
    ## Add the following line to the top of the file, below the commented section:
    
    tabs=true
    
    ## Replace the `if` structure at the bottom of the file with the following:
    
    # Last step:  fire up vim.
    if [ "$gui" ]; then
      if $tabs && [[ `$binary --serverlist` = "VIM" ]]; then
        exec "$binary" -g $opts --remote-tab-silent ${1:+"$@"}
      else
        exec "$binary" -g $opts ${1:+"$@"}
      fi
    else
      exec "$binary" $opts ${1:+"$@"}
    fi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I moved a function from an html page to an included reference file. It
Moved from preview 2 to preview 5 and now my Html.ActionLink calls are all
Just moved a symfony project from local (win) to server (linux), and the icons
I have moved recently to a new version of eclipse 3.5 from 3.2.I dont
I moved my website from my local test server to NameCheap shared hosting and
We have moved a database from SQL 2000 to a new SQL 2005 that
I moved from Dreamweaver to PhpStorm for my PHP/HTML/CSS development. There is a cool
Moved a bunch of databases from sql server 2000 to 2008. One of the
I moved a WordPress installation to a new folder on a Windows/ IIS server.
I moved a typed dataset from one project to an ASP Web Application project.

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.