Permalink
Browse files

改成默认两个空格缩进

  • Loading branch information...
1 parent 2612bcf commit 26f3827c858f955a5b7769c0b851a1393376cec1 @yesmeck committed Sep 28, 2012
Showing with 3 additions and 8 deletions.
  1. +0 −5 setting/autocmd.vim
  2. +3 −3 setting/setting.vim
View
5 setting/autocmd.vim
@@ -24,9 +24,4 @@ autocmd FileType nerdtree noremap <buffer> <c-h> <nop>
autocmd FileType nerdtree noremap <buffer> <c-right> <nop>
autocmd FileType nerdtree noremap <buffer> <c-l> <nop>
-" Indent to 2 spaces in ruby
-autocmd FileType {ruby,cucumber} setlocal tabstop=2
-autocmd FileType {ruby,cucumber} setlocal shiftwidth=2
-autocmd FileType {ruby,cucumber} setlocal softtabstop=2
-
autocmd ColorScheme * call SetMBPColors()
View
6 setting/setting.vim
@@ -42,12 +42,12 @@ set ruler
set statusline=%<%f\ %h%m%r%=%{fugitive#statusline()}\ \ %-14.(%l,%c%V%)\ %P
" tab = 4 spaces
-set tabstop=4
+set tabstop=2
" Indent to four spaces
-set shiftwidth=4
+set shiftwidth=2
-set softtabstop=4
+set softtabstop=2
" Switch between unsaved buffers w/o needing to save, preserves history
set hidden

0 comments on commit 26f3827

Please sign in to comment.