Skip to content

Commit

Permalink
Add " rule for vim comments
Browse files Browse the repository at this point in the history
Related: #76
  • Loading branch information
junegunn committed Feb 5, 2016
1 parent d1b68f9 commit dd98d0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions autoload/easy_align.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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': '(\@<!{',
Expand Down
1 change: 1 addition & 0 deletions doc/easy_align.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ Predefined alignment rules~
`,` | Multi-line method arguments
`&` | LaTeX tables (matches `&` and `\\` )
`#` | Ruby/Python comments
`"` | Vim comments
<Bar> | Table markdown
--------------+--------------------------------------------------------------------

Expand Down

0 comments on commit dd98d0a

Please sign in to comment.