From c96dc611129934aaa6d91909a0759f4d83cbe1d7 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sun, 13 Jan 2013 16:04:07 -0800 Subject: [PATCH] Set javascript vim settings to two spaces instead of tabs --- vim/ftplugin/javascript.vim | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/vim/ftplugin/javascript.vim b/vim/ftplugin/javascript.vim index 941f7e9..4d22825 100644 --- a/vim/ftplugin/javascript.vim +++ b/vim/ftplugin/javascript.vim @@ -1,13 +1,6 @@ -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 +set expandtab " expandtab converts tabs to spaces +set shiftwidth=2 " unify +set softtabstop=2 " Pressing backspace works like tabs +set tabstop=2