Fix autocmd for new tab settings
This commit is contained in:
parent
bce6d644ed
commit
6278c69c25
1 changed files with 6 additions and 6 deletions
12
vimrc
12
vimrc
|
@ -113,12 +113,12 @@ endif
|
||||||
" Settings based on feature detection.
|
" Settings based on feature detection.
|
||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
autocmd BufRead,BufNewFile *.go set shiftwidth=8 tabstop=8
|
autocmd BufRead,BufNewFile *.go set noexpandtab shiftwidth=8 tabstop=8
|
||||||
autocmd BufRead,BufNewFile *.html set shiftwidth=2
|
autocmd BufRead,BufNewFile *.html set expandtab shiftwidth=2
|
||||||
autocmd BufRead,BufNewFile *.md set filetype=markdown tabstop=4
|
autocmd BufRead,BufNewFile *.md set filetype=markdown shiftwidth=4
|
||||||
autocmd BufRead,BufNewFile *.opml set shiftwidth=2
|
autocmd BufRead,BufNewFile *.opml set expandtab shiftwidth=2
|
||||||
autocmd BufRead,BufNewFile *.xml set shiftwidth=2
|
autocmd BufRead,BufNewFile *.xml set expandtab shiftwidth=2
|
||||||
autocmd BufRead,BufNewFile *.yml set shiftwidth=2
|
autocmd BufRead,BufNewFile *.yml set expandtab shiftwidth=2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("folding")
|
if has("folding")
|
||||||
|
|
Loading…
Reference in a new issue