Skip to content

Commit

Permalink
dont indent comments in yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
redterror committed Apr 23, 2021
1 parent 0560aa1 commit d2f75ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ endif

" https://askubuntu.com/a/1044625
set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:»

" Don't indent comments in yaml files: https://stackoverflow.com/a/54175510/845546
autocmd BufNewFile,BufReadPost * if &filetype == "yaml" | set expandtab shiftwidth=2 indentkeys-=0# | endif

0 comments on commit d2f75ca

Please sign in to comment.