samhstn / my-config

16 stars 0 forks source link

Configure specific number of spaces for particular filetypes #88

Open samhstn opened 5 years ago

samhstn commented 5 years ago

When we open an elm file, I would like the number of indent spces to be 4 and when I open a js file, I would like the number of indent spaces to be 2.

This is easily achieved with:

set sw=2 tabstop=2
autocmd BufRead,BufNewFile *.elm,*.py set sw=4 tabstop=4