Add " rule for vim comments

Related: #76
This commit is contained in:
Junegunn Choi
2016-02-05 11:06:00 +09:00
parent d1b68f9dd0
commit dd98d0a895
3 changed files with 3 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ alignment rules that you can trigger with a single keystroke.
| `,` | Multi-line method arguments |
| `&` | LaTeX tables (matches `&` and `\\`) |
| `#` | Ruby/Python comments |
| `"` | Vim comments |
| `<Bar>` | Table markdown |
You can also define your own rules with `g:easy_align_delimiters` which will

View File

@@ -38,6 +38,7 @@ let s:easy_align_delimiters_default = {
\ '|': { 'pattern': '|', 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
\ '.': { 'pattern': '\.', 'left_margin': 0, 'right_margin': 0, 'stick_to_left': 0 },
\ '#': { 'pattern': '#\+', 'delimiter_align': 'l', 'ignore_groups': ['!Comment'] },
\ '"': { 'pattern': '"\+', 'delimiter_align': 'l', 'ignore_groups': ['!Comment'] },
\ '&': { 'pattern': '\\\@<!&\|\\\\',
\ 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
\ '{': { 'pattern': '(\@<!{',

View File

@@ -234,6 +234,7 @@ Predefined alignment rules~
`,` | Multi-line method arguments
`&` | LaTeX tables (matches `&` and `\\` )
`#` | Ruby/Python comments
`"` | Vim comments
<Bar> | Table markdown
--------------+--------------------------------------------------------------------