Skip to content

Commit acfd469

Browse files
committed
space > tab
1 parent 14d76f8 commit acfd469

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.vimrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@
120120
set nowrap " wrap long lines
121121
set autoindent " indent at the same level of the previous line
122122
set shiftwidth=4 " use indents of 4 spaces
123-
set noexpandtab " tabs are tabs, not spaces
123+
set expandtab " tabs are spaces, not tabs
124124
set tabstop=4 " an indentation every four columns
125+
set softtabstop=4 " let backspace delete indent
125126
"set matchpairs+=<:> " match, to be used with %
126127
set pastetoggle=<F12> " pastetoggle (sane indentation on pastes)
127128
"set comments=sl:/*,mb:*,elx:*/ " auto format comment blocks
128129
" Remove trailing whitespaces and ^M chars
129-
autocmd FileType c,cpp,java,php,js,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
130+
autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
130131
" }
131132

132133
" Key (re)Mappings {

0 commit comments

Comments
 (0)