Lmao, sorry! I like both. I started with vim a few years ago and became enamored with its modal keybinding and increasingly frustrated with its design otherwise. Doom emacs came to me as a way to get the keymaps I was used to with the power and (better) design of modern emacs
Oh I answered too quickly, sorry. That's for changing the size that tabs display as.
To change space indent size in vim, you need to change to tab indents, change the shift width and tab stop, then swap back to spaces.
:set noexpandtab # into hard tab mode
:retab # redo all indents with tabs
:set ts=4 # set new tab stop
:set expandtab # back to soft tab mode
:retab # and swap tabs back to spaces
You can make that into a macro and bind it to a key.
View all comments
Show parent comment
11
u/WlmWilberforce 11d ago
Set tab = 4*spaces in your editor