Solved

vim editor question--avoid tabs in autoindent

Posted on 2001-07-20
3
295 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
ID: 6309547
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
ID: 6309562
Duplicate question, and another person has already responded. See question 20154599.

Sorry.
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 6309569
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
script that sorts the lines in file according to integer in line 7 31
Mounting Linux Partition.... 30 352
File system unmounted 3 156
usage of %{name} in rpm spec file 4 51
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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