Update doc

This commit is contained in:
Junegunn Choi
2013-07-19 01:03:15 +09:00
parent 67ac2f74e6
commit 5b48e997a1
2 changed files with 11 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ A simple, easy-to-use Vim alignment plugin without too much ambition.
Features:
- Optimized for code editing
- Requires minimal keystrokes
- Extensible alignment rules
- Aligns text around either _all or n-th_ occurrence(s) of the delimiter
- Ignores comment lines
@@ -54,12 +55,12 @@ With the mapping, you can align selected lines with a few keystrokes.
- `-` Around the last occurrences of delimiters (`-1`)
- `-2` Around the second to last occurrences of delimiters
- ...
1. Delimiter (`<space>`, `=`, `:`, `.`, `|`, `,`)
1. Delimiter key (a single keystroke; `<space>`, `=`, `:`, `.`, `|`, `,`)
Alignment rules for the following delimiters have been defined to meet the most needs.
| Delimiter | Description/Use cases |
| --------- | ---------------------------------------------------------- |
| Delimiter key | Description/Use cases |
| ------------- | ---------------------------------------------------------- |
| `<space>` | General alignment around spaces |
| `=` | Operators containing equals sign (=, ==, !=, +=, &&=, ...) |
| `:` | Suitable for formatting JSON or YAML |

View File

@@ -29,7 +29,7 @@ With this mapping, you can align selected lines with a few keystrokes.
- Around the last occurrences of delimiters (`-1`)
-2 Around the second to last occurrences of delimiters
...
4. Delimiter
4. Delimiter key (a single keystroke)
<space> General alignment around whitespaces
= Operators containing equals sign (=, ==, !=, +=, &&=, ...)
: Suitable for formatting JSON or YAML