Posted By

hoffstein on 10/23/08


Tagged

vim


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

hoffstein
endorfin


Vim convert tabs to spaces


 / Published in: Other
 

This will force all tabs in the current buffer to be converted to spaces.

  1. :set expandtab
  2. :%retab!

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: btowers on July 30, 2009

There's some other ways to do it in vim too: (http://mlawire.blogspot.com/2009/07/convert-tabs-to-spaces.html)

You need to login to post a comment.