Skip to content

Commit

Permalink
2 tabs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Haelle committed Oct 10, 2019
1 parent 0fb1fce commit 10c1ac0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions files/my_configs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ autocmd BufWritePre * :%s/\s\+$//e
" show all characters (trailing space, tab, eol)
set list lcs=tab:▸\ ,eol:¬,trail:·

" set tab to 2 for Ruby files
au FileType ruby call RubyTab()
function! RubyTab()
" nb auto indent spaces
set shiftwidth=2
" nb of spaces per tab
set softtabstop=2
endfunction
"nb auto indent spaces
set shiftwidth=2
" nb of spaces per tab
set softtabstop=2

" Remove indent after newline in YAML files
let g:ansible_unindent_after_newline = 1
Expand Down

0 comments on commit 10c1ac0

Please sign in to comment.