Skip to content

Editor Integration

For a smoother experience, you can run yamlfix automatically each time each time you save your file in your editor or when you run git commit.


To integrate yamlfix into Vim, I recommend using the ale plugin.

If you are new to ALE, check this post.

ale is configured to run yamlfix automatically by default.


You can run yamlfix before we do a commit using the pre-commit framework. If you don't know how to use it, follow these guidelines.

You'll need to add the following lines to your project's .pre-commit-config.yaml file.

  - repo:
    rev: main
      - id: yamlfix

Last update: 2023-02-14