mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-10 02:43:49 -05:00
@@ -179,6 +179,7 @@ alignment rules that you can trigger with a single keystroke.
|
|||||||
| `,` | Multi-line method arguments |
|
| `,` | Multi-line method arguments |
|
||||||
| `&` | LaTeX tables (matches `&` and `\\`) |
|
| `&` | LaTeX tables (matches `&` and `\\`) |
|
||||||
| `#` | Ruby/Python comments |
|
| `#` | Ruby/Python comments |
|
||||||
|
| `"` | Vim comments |
|
||||||
| `<Bar>` | Table markdown |
|
| `<Bar>` | Table markdown |
|
||||||
|
|
||||||
You can also define your own rules with `g:easy_align_delimiters` which will
|
You can also define your own rules with `g:easy_align_delimiters` which will
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ let s:easy_align_delimiters_default = {
|
|||||||
\ '|': { 'pattern': '|', 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
|
\ '|': { 'pattern': '|', 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
|
||||||
\ '.': { 'pattern': '\.', 'left_margin': 0, 'right_margin': 0, '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': '"\+', 'delimiter_align': 'l', 'ignore_groups': ['!Comment'] },
|
||||||
\ '&': { 'pattern': '\\\@<!&\|\\\\',
|
\ '&': { 'pattern': '\\\@<!&\|\\\\',
|
||||||
\ 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
|
\ 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
|
||||||
\ '{': { 'pattern': '(\@<!{',
|
\ '{': { 'pattern': '(\@<!{',
|
||||||
|
|||||||
@@ -234,6 +234,7 @@ Predefined alignment rules~
|
|||||||
`,` | Multi-line method arguments
|
`,` | Multi-line method arguments
|
||||||
`&` | LaTeX tables (matches `&` and `\\` )
|
`&` | LaTeX tables (matches `&` and `\\` )
|
||||||
`#` | Ruby/Python comments
|
`#` | Ruby/Python comments
|
||||||
|
`"` | Vim comments
|
||||||
<Bar> | Table markdown
|
<Bar> | Table markdown
|
||||||
--------------+--------------------------------------------------------------------
|
--------------+--------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user