does :set tabstop=2 and :set softtabs in Overleaf's vim editor
This is like doing:set tabwidth=2 :set softtabsin vim, except that you can't just do that in Overleaf, so I did it in a userscript.