From: jgirardet Date: Tue, 9 Oct 2018 20:11:47 +0000 (+0200) Subject: Explicit # fmt: on/off indentation level (#554) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/44e9cd4a03df470adb24b958ae4b9e47ee890315?ds=sidebyside Explicit # fmt: on/off indentation level (#554) --- diff --git a/README.md b/README.md index 33cdff3..fa5382c 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,8 @@ original. This slows it down. If you're feeling confident, use *Black* reformats entire files in place. It is not configurable. It doesn't take previous formatting into account. It doesn't reformat -blocks that start with `# fmt: off` and end with `# fmt: on`. It also +blocks that start with `# fmt: off` and end with `# fmt: on`. `# fmt: on/off` +have to be on the same level of indentation. It also recognizes [YAPF](https://github.com/google/yapf)'s block comments to the same effect, as a courtesy for straddling code.