HOWTO Enter Spaces instead of Tabs in VI & VIM

July 9, 2013

Spaces vs. Tabs are generally annoying when editing files, but start programing in Python and this turns into a complete disaster. Simple solution, always insert Spaces instead of a Tab and you are good to go (my personal preference):

set tabstop=4set shiftwidth=4set expandtab

If you want to be really fancy:

:retab

Will convert all of the existing Tabs into Spaces.

Check out Converting tabs to spaces on the VIM Wiki.

Make The Call

Get Started

Use this if you’re making an IT decision and want to avoid a costly mistake. Answer four quick questions and we’ll route you to the right next step—strategy, sourcing, contract review, or optimization.

If it’s a fit, you’ll be able to book time immediately.

Start with 4 Quick Questions

Thanks for submitting the form.
By continuing, you agree to be contacted about your request. No spam.