redditor since 2008, hoping kbin/the Fediverse can entirely replace it.

  • 0 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle



  • How does that work, and with which editor settings? If you simply set the tab width (tabstop) in vim, things go south.

    Say you have a function definition one indent level in, then 22 characters of text. You more want to align the next line to that. How does that work in practice with tabs?

    The obvious way with tabs and ts=4 would be 6 tabs and two spaces(one tab for the initial indent, the rest to match 22 characters). But then someone with ts=2 comes along and barely gets half way there, or someone with ts=8 who overshoots by a lot.