Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created July 10, 2021 19:29
Show Gist options
  • Select an option

  • Save denzhel/72f00244bdcaa1af097c8c4015f19709 to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/72f00244bdcaa1af097c8c4015f19709 to your computer and use it in GitHub Desktop.
Auto remove yaml trailing spaces in Vim

I use this config to automatically remove trailing spaces in my yaml files:

autocmd BufWritePre *.c,*.php :%s/\s\+$//ge

#ansible #vim #terraform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment