til

#TIL : Convert tabs to spaces

I learned on 2018-02-21 about vim

This is my config to use 4 spaces instead tab

filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab

To convert existing file from tabs to spaces, use this command

:%retab

Enjoyed this?

Leave a kudo — it means a lot.

0