Skip to content

Commit

Permalink
vimrc: Set specific tabstop and shift for yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
willdeberry committed Dec 16, 2021
1 parent 8ebb31a commit 711894d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ set listchars=tab:>.,trail:.,extends:#,nbsp:.
set listchars+=trail:.
set listchars+=extends:>
set listchars+=precedes:<
autocmd FileType yaml setlocal ts=2 sw=2 expandtab
autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
autocmd BufNewFile,BufRead *.ts set syntax=javascript

Expand Down

0 comments on commit 711894d

Please sign in to comment.