Re:Ask HN: What less-popular systems programming language ar...
by worik on Tuesday March 04, 2025 @10:21PM
(#43262263)
> I use only tabs for indentation.
> All the tabs get expanded to four spaces each.
Then Python will not work (?)
Re:Ask HN: What less-popular systems programming language ar...
by fuzztester on Wednesday March 05, 2025 @01:18AM
(#43263473)
Sure it will work. Even before I discovered this method (which is simple), I was using four spaces typed manually, for indentation in Python, for years.
Maybe it is you who "will not work".
Did you try it before commenting? I already said it works fine.
Re:Ask HN: What less-popular systems programming language ar...
by fuzztester on Wednesday March 05, 2025 @05:34PM
(#43273659)
e.g. for tabstop, use ts, and for shiftwidth, use sw.
I've used this in vim for years:
:se expandtab tabstop=4 shiftwidth=4
(those can be abbreviated, check docs)
Then:
I use only tabs for indentation.
All the tabs get expanded to four spaces each.
Indenting and unindenting lines or blocks of lines, moves them by four spaces.
Never had a problem.
Maybe there are more fancy ways, but this works fine for me.