Tabs store movement to a tab stop rather than a fixed number of visible spaces. Their displayed width depends on the current column and the tab-stop settings. The expand and unexpand commands convert between tab characters and spaces while accounting for those positions.
Text-Fu · Lesson 10
expand and unexpand
Learn how tab stops control conversion between tabs and spaces with expand and unexpand.