Set up JavaScript to use 2 spaces at work and 4 on my own

This commit is contained in:
Buddy Sandidge 2012-11-19 12:14:41 -08:00
parent 1971ab2dbd
commit 6d5ca731ed

View File

@ -0,0 +1,13 @@
set noexpandtab " expandtab converts tabs to spaces
set shiftwidth=4 " unify
set softtabstop=4 " Pressing backspace works like tabs
set tabstop=4 " real tabs should be 4, but they will show with set list on
if $BS_ENV == 'work'
set expandtab " expandtab converts tabs to spaces
set shiftwidth=2 " unify
set softtabstop=2 " Pressing backspace works like tabs
set tabstop=2
endif