Vim: Add smartindent to aforementioned files
This commit is contained in:
parent
bfa1a285ab
commit
a5c215a224
4
.vimrc
4
.vimrc
@ -70,7 +70,9 @@ au BufNewFile,BufRead *.py " Set up nice PEP8 indentation
|
|||||||
au BufNewFile,BufRead *.html,*.php
|
au BufNewFile,BufRead *.html,*.php
|
||||||
\ set tabstop=2 |
|
\ set tabstop=2 |
|
||||||
\ set softtabstop=2 |
|
\ set softtabstop=2 |
|
||||||
\ set shiftwidth=2
|
\ set shiftwidth=2 |
|
||||||
|
\ set autoindent |
|
||||||
|
\ set smartindent
|
||||||
" Treat PHP like HTML
|
" Treat PHP like HTML
|
||||||
au BufNewFile,BufRead *.php
|
au BufNewFile,BufRead *.php
|
||||||
\ set filetype=html
|
\ set filetype=html
|
||||||
|
Loading…
Reference in New Issue
Block a user