Solved

vim editor question--avoid tabs in autoindent

Posted on 2001-07-20
3
292 Views
Last Modified: 2010-04-21
Anyone know how to have vim *not* use tabs, but use spaces instead when autoindent is turned on?

For example, when autoindent is on, vim uses tab characters to get close to the correction indentation location on the new line. I don't want any tabs at the beginning of each line--can vim do this automatically (I know lemmy can).

I know that I can do a global substitution, but that's a pain (since I might forget).
0
Comment
Question by:tgoetze
3 Comments
 
LVL 4

Expert Comment

by:sdussinger
Comment Utility
I think if you use the expandtabs setting, VIM will convert tabs to spaces.  Try :set et in your vimrc file...

--Steve
0
 
LVL 3

Author Comment

by:tgoetze
Comment Utility
Duplicate question, and another person has already responded. See question 20154599.

Sorry.
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
Comment Utility
I have refunded your points here, tgoetze.  I will move to the PAQ rather than deleting it so that sdussinger has an opportunity see get the Email notification of the duplicate question to post there as well.

Thank you,
Moondancer
Community Support Moderator @ Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now