Last Updated: February 25, 2016
·
1.242K
· amirtcheva

Typescript indentation in Vim

Adding this to the .vimrc file fixed all indentation issues:

setlocal autoindent
setlocal cindent
setlocal smartindent
set expandtab 
set shiftwidth=2