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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:45:34+00:00 2026-06-15T23:45:34+00:00

Possible Duplicate: Tab key == 4 spaces and auto-indent after curly braces in VIM

  • 0

Possible Duplicate:
Tab key == 4 spaces and auto-indent after curly braces in VIM
Vim: how to redefine tab as 4 spaces

I’m writing in vim, and I’m on the tabs side of the tabs vs. spaces war.

However, the tabs are taking up quite a bit of screen space. How can I make it so that they are functionally identical to tabs, but display the same length as, say, four spaces?

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-15T23:45:35+00:00Added an answer on June 15, 2026 at 11:45 pm

    add

    set tabstop=4
    

    to your $HOME/.vimrc

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

Sidebar

Related Questions

Possible Duplicate: Auto-open NERDTree in “EVERY” tab Is there a way to automatically execute
Possible Duplicate: Emacs code to automatically set indent-tabs-mode according to existing code When I'm
Possible Duplicate: Tool to convert python indentation from spaces to tabs? I have a
Possible Duplicate: change layout and template in zend dynamically according to the device(android tab,iphone,ipad)
Possible Duplicate: Java Full Screen Program (Swing) -Tab/ALT F4 I've got a full screen
Possible Duplicate: Open file from complete path under cursor in Vim Let's say I
Possible Duplicate: Jquery Tabs- Load Contents only when clicked Hi, I am relatively new
Possible Duplicate: Override Ctrl-TAB in EMACS org.mode I'm trying to rebind C-y to redo.
Possible Duplicate: Separate Back Stack for each tab in Android using Fragments I've recently
Possible Duplicate: How to handle <tab> in textarea? I need a way to maintain

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.