Skip to content

Commit 262884b

Browse files
committed
Strip trailing whitespace from Yaml files as well.
1 parent 81f2c05 commit 262884b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotfiles/vimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fun! <SID>StripTrailingWhitespaces()
262262
let @/=_s
263263
call cursor(l, c)
264264
endfun
265-
autocmd FileType tex,r,octave,matlab,rst,sh,sql,html,javascript,typescript,latex,org,haskell,c,cpp,java,php,ruby,python,md,coffee,less autocmd BufWritePre <buffer> :call <SID>StripTrailingWhitespaces()
265+
autocmd FileType tex,r,octave,matlab,rst,sh,sql,html,javascript,typescript,latex,org,haskell,c,cpp,java,php,ruby,python,md,coffee,less,yaml autocmd BufWritePre <buffer> :call <SID>StripTrailingWhitespaces()
266266
autocmd FileType sql setlocal nospell
267267
autocmd FileType matlab setlocal nospell
268268
autocmd FileType tex setlocal indentexpr=

0 commit comments

Comments
 (0)