[vim/vim] runtime(yaml) fix indentation (PR #19180)

1 view
Skip to first unread message

bfoersterling

unread,
12:00 PM (12 hours ago) 12:00 PM
to vim/vim, Subscribed

Problem

The indentation of Ansible Playbooks gets messed up after gg=G.

Solution

Remove one shiftwidth() that seems to be misplaced.

Rationale

After commit 9179ddc I noticed some undesired behavior when editing Ansible Playbooks.
The indentation of correctly indented playbooks that pass yamllint will end up misformatted after a gg=G.
This also causes some issues when using the plugin https://github.com/pearofducks/ansible-vim which relies on the yaml indentation.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19180

Commit Summary

  • 1718b9d runtime(yaml) fix indentation

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19180@github.com>

Reply all
Reply to author
Forward
0 new messages