From 52b9558c976f7d0d744ffd33f93499b4f2c6e22f Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 19 Feb 2021 08:52:16 +0100 Subject: [PATCH] vim: add noexpandtab for golang --- vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index b393f7b..d0651e0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -33,6 +33,8 @@ set expandtab shiftwidth=4 tabstop=4 "always use spaces autocmd FileType yaml,yml setlocal shiftwidth=2 softtabstop=2 expandtab autocmd FileType vue setlocal shiftwidth=2 softtabstop=2 expandtab +autocmd FileType go setlocal noexpandtab + au BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible au BufRead,BufNewFile rules.v[46] *.rules setlocal filetype=iptables