Skip to content

Instantly share code, notes, and snippets.

@hyuki
Last active May 28, 2023 23:40
Show Gist options
  • Save hyuki/b4dbe525a9f87a1d6bfc900601b64250 to your computer and use it in GitHub Desktop.
Save hyuki/b4dbe525a9f87a1d6bfc900601b64250 to your computer and use it in GitHub Desktop.
VimでYAMLファイルのフォーマットをしたときにコメントのインデントがおかしい
# comment 1
key1: 'value1'

# comment 2
keyword2: 'value2'

# comment 3
keyword3: 'value3'
# comment 1
key1: 'value1'

  # comment 2
keyword2: 'value2'

  # comment 3
keyword3: 'value3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment