12 May
Changing tab stops in Vim
I normally use spaces in my files instead of tabs for indentation, with 4 being my default indent width. Sometimes, I need
to change this on existing files to 2, so for the most part, the following sequence works. First,
set ts=4 sts=4 noet
retab!
This changes every …
12 May
I normally use spaces in my files instead of tabs for indentation, with 4 being my default indent width. Sometimes, I need to change this on existing files to 2, so for the most part, the following sequence works. First,
set ts=4 sts=4 noet retab!
This changes every …