expand tabs for Python
dblume

dblume commited on 2023-08-27 00:10:32
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -375,7 +375,7 @@ if has("autocmd")
375 375
   autocmd BufWrite *.py :call DeleteTrailingWS()  " Delete trailing whitespace
376 376
   " Don't let smartindent unindent the # character in Python files
377 377
   autocmd FileType python  inoremap # X<c-h>#
378
-  autocmd FileType c,cpp,php,brs,sh  set expandtab  " Use spaces instead of tabs
378
+  autocmd FileType python,c,cpp,php,brs,sh  set expandtab  " Use spaces instead of tabs
379 379
   autocmd Filetype make    setl noexpandtab       " ...not for files that use tabs.
380 380
 
381 381
   " Use the vim command %retab before applying the following
382 382