commit 189d78081870b432858761f6c9c708a51bbea761
parent 6f92c1d83bea68d65eac06da181fae1ab010f559
Author: Chris Bracken <chris@bracken.jp>
Date: Mon, 12 Jun 2023 11:03:53 -0700
Move Python formatting autocommand with others
Moves all autocommands behind the same guard, which to be honest is
probably entirely unnecessary at this point.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vimrc b/vimrc
@@ -78,9 +78,6 @@ set shiftwidth=2 " Number of spaces for each step of autoindent.
set softtabstop=2 " Number of spaces per tab when editing.
set expandtab " Insert spaces in place of tabs.
-" Fix python's indent overrides.
-au FileType python setl ts=2 sw=2 sts=2 et
-
" Configure whitespace highlighting.
let g:spacehi_spacecolor="ctermbg=red guibg=red"
let g:spacehi_tabcolor="ctermbg=red guibg=red"
@@ -150,6 +147,9 @@ if &t_Co > 2
" Highlight trailing space
au BufEnter,InsertLeave *.bzl,*.c,*.cc,*.cpp,*.cs,*.dart,*.h,*.java,*.m,*.mm,*.py,*.s SpaceHi
+
+ " Fix python's indent overrides.
+ au FileType python setl ts=2 sw=2 sts=2 et
endif
endif