commit 1dcb73c5092c439f25cc8f0a2bda42a212caa4df
parent 1c7f536a185a4750db4f516523eb2f83cbf74827
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/.vim/vimrc b/.vim/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