From dd98d0a8957b7d43ac84be3318bbc950bc9ed467 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 5 Feb 2016 11:06:00 +0900 Subject: [PATCH] Add " rule for vim comments Related: #76 --- README.md | 1 + autoload/easy_align.vim | 1 + doc/easy_align.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 5a6c20d..b7b4dd9 100644 --- a/README.md +++ b/README.md @@ -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 | | `` | Table markdown | You can also define your own rules with `g:easy_align_delimiters` which will diff --git a/autoload/easy_align.vim b/autoload/easy_align.vim index 850f9cf..1c09bf0 100644 --- a/autoload/easy_align.vim +++ b/autoload/easy_align.vim @@ -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': '\\\@ | Table markdown --------------+--------------------------------------------------------------------