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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:06:29+00:00 2026-06-14T10:06:29+00:00

Issuing :tabnew somefile will open somefile in a new tab to the right of

  • 0

Issuing :tabnew somefile will open somefile in a new tab to the right of the current tab. Can I somehow get Vim to open a tab to the left of the current tab?

Update: The suggested answers do allow me to open a new tab left, but they break file name auto completion, which is a no-go.

  • 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-14T10:06:30+00:00Added an answer on June 14, 2026 at 10:06 am

    To utilize the behavior @romainl described without having to resort to knowing current tab page number use the following command:

    command -nargs=* -bar Tabnew :execute (tabpagenr()-1).'tabnew '.<q-args>
    

    . Note: it is perfectly save to use 0tabnew: this does what intended and makes new tab the first one, even though there is no tab page that has number below 1.

    If you are sure you never use this command with ++opt or +cmd you can use -complete=file just after -bar. Note: besides its name it is not a completion option because it as well does filename expansion (and shows errors in case -nargs=1 and globs expanded in too many filenames). Unfortunately this behavior is not even mentioned in documentation.

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

Sidebar

Related Questions

i'm issuing a request using MSXML's XmlHttpRequest object: IXMLHttpRequest http = new XmlHttpRequest(); http.open(GET,
You can set the Vim color scheme by issuing :colorscheme SCHEME_NAME but, oddly enough,
If you need to open a SqlConnection before issuing queries, can you simply handle
Firefox is issuing duplicate requests to my ASP.Net web site. It will request a
Is there a way to automatically run the update command after issuing the Team
I'm issuing a local notification alert (iOS 5) that will repeat its reminder periodically
just a short question: Having the new instance of a model and issuing a
While issuing a GET request using Apache HTTP Client v4, how do I obtain
Here is the command I'm issuing: svn merge -r74:80 http://url.to/svn/branch/branch_name It will think for
I'm installing data-mapper on ubuntu but I get an error while issuing the: sudo

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.