Из руководства по nano: -E, --tabstospaces Convert typed tabs to spaces. -T <#cols>, --tabsize=<#cols> Set the displayed tab length to #cols columns. The value of #cols must be greater than 0. The default value is 8.
Для четырех пробелов соответствующей командой будет nano -ET4. [ ! d9]
Рассмотрим nano Command Manual .