From 6278c69c254bf8addaada43a9519817b520d9370 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 5 Aug 2019 11:10:28 +0100 Subject: [PATCH] Fix autocmd for new tab settings --- vimrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index 0f2f9aa..89d383c 100644 --- a/vimrc +++ b/vimrc @@ -113,12 +113,12 @@ endif " Settings based on feature detection. if has("autocmd") - autocmd BufRead,BufNewFile *.go set shiftwidth=8 tabstop=8 - autocmd BufRead,BufNewFile *.html set shiftwidth=2 - autocmd BufRead,BufNewFile *.md set filetype=markdown tabstop=4 - autocmd BufRead,BufNewFile *.opml set shiftwidth=2 - autocmd BufRead,BufNewFile *.xml set shiftwidth=2 - autocmd BufRead,BufNewFile *.yml set shiftwidth=2 + autocmd BufRead,BufNewFile *.go set noexpandtab shiftwidth=8 tabstop=8 + autocmd BufRead,BufNewFile *.html set expandtab shiftwidth=2 + autocmd BufRead,BufNewFile *.md set filetype=markdown shiftwidth=4 + autocmd BufRead,BufNewFile *.opml set expandtab shiftwidth=2 + autocmd BufRead,BufNewFile *.xml set expandtab shiftwidth=2 + autocmd BufRead,BufNewFile *.yml set expandtab shiftwidth=2 endif if has("folding")