66

I just discovered I could indent and un-indent easily in Vi with : << and >>

By default it adds a tab character. Now I'm wondering, could this be to a number of spaces via a configuration in my .vimrc? And how should I do it?

statox
  • 49,782
  • 19
  • 148
  • 225
J. Chomel
  • 1,106
  • 1
  • 11
  • 20
  • 2
  • tabstop is effectively how many columns of whitespace a \t character is worth. 2) shiftwidth is how many columns of whitespace a “level of indentation” is worth. The > action indents by 1 level. 3) softtabstop is how many columns of whitespace a tab keypress or a backspace keypress is worth. ... More on tab settings in vim in a medium article I wrote https://medium.com/@arisweedler/tab-settings-in-vim-1ea0863c5990
  • – Ari Sweedler Apr 10 '20 at 23:05