From 3c6d824e526888901528bb04325b060620962488 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 8 Sep 2019 19:14:11 +0100 Subject: [PATCH] Use shorter names for autocmd to avoid the right-hand edge --- vimrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index 697df01..aeb77b7 100644 --- a/vimrc +++ b/vimrc @@ -112,12 +112,12 @@ endif " Settings based on feature detection. if has("autocmd") - 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 + autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8 + autocmd BufRead,BufNewFile *.html set et sw=2 + autocmd BufRead,BufNewFile *.md set ft=markdown sw=4 + autocmd BufRead,BufNewFile *.opml set et sw=2 + autocmd BufRead,BufNewFile *.xml set et sw=2 + autocmd BufRead,BufNewFile *.yml set et sw=2 endif if has("folding")