I want to work on someone else\'s project, and he uses 4 spaces for indentation. I use 2, and my screen is not big enough to edit using 4 spaces comfortably.
Can I confi
The help has an example for a similar use case of different tab widths, see :help retab-example.
:help retab-example
Adapting that to halving / doubling spaces:
:autocmd BufReadPost,BufWritePost * %substitute/^\( \+\)\1/\1/e :autocmd BufWritePre * %substitute/^ \+/&&/e