Retab files using vim

November 2, 2008 – 17:44 | vim | Tags:

Use tabs as much as possible:
vim -u NONE -c "set noet" -c 'retab! 4' -c wq filename
Use spaces as much as possible:
vim -u NONE -c "set et" -c 'retab! 4' -c wq filename

Trackback from your site, or follow the comments in RSS.

Post a Comment