Vim replacing tabs with double spaces

Posted by oxinabox.ucc.asn.au on Stack Overflow See other posts from Stack Overflow or by oxinabox.ucc.asn.au
Published on 2010-04-25T10:22:54Z Indexed on 2010/04/25 10:33 UTC
Read the original article Hit count: 312

Filed under:
|

So I've written some code of an assignment and i forgot the universities polocy of indent with 2spaces.

Normally I'ld have put a: vim: ts=2:tw=2: et:

at the top of my files, but this time i forgot.

How should I go about replacing all tabs with 2 space? would s// work? (repalcing and with the respectiove characters.

© Stack Overflow or respective owner

Related posts about vim

Related posts about indentation