Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

vim editor question--avoid tabs in autoindent

Posted on 2001-07-20
3
Medium Priority
?
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

636 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