diff --git a/README.md b/README.md index cea6b85..4bc4747 100644 --- a/README.md +++ b/README.md @@ -140,11 +140,9 @@ For example, if you want to align text around all occurrences of numbers: - `` - `*` -- `` or `` +- `` (or `` on GVim) - `[0-9]\+` -(`` key will not work in GVim, then you have to use `` instead) - #### Alignment options in interactive mode While in interactive mode, you can switch some of the alignment options using @@ -204,7 +202,7 @@ Notice that you can't append `\zs` to your regular expression to put delimiters on the left. It can be done by providing additional options in Vim dictionary format. -- `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': '' }` +- `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': 0 }` Then we get: @@ -219,7 +217,14 @@ You can even omit spaces between the arguments, so concisely (or cryptically): - `:EasyAlign*/[:;]\+/{'s':1,'l':0}` -Available options will be shown later in the document. +The same thing can be done in the interactive mode as well with the following +key combination. + +- `` +- `*` +- `` +- `` (or `` on GVim) + - `[:;]\+` ### Partial alignment in blockwise-visual mode diff --git a/doc/easy_align.txt b/doc/easy_align.txt index c5c589d..b933b4a 100644 --- a/doc/easy_align.txt +++ b/doc/easy_align.txt @@ -78,7 +78,7 @@ For example, if you want to align text around all occurrences of numbers: - - * -- or +- (or on Gvim) - [0-9]\+ @@ -127,7 +127,7 @@ Notice that you can't append '\zs' to your regular expression to put delimiters on the left. It can be done by providing additional options in Vim dictionary format. -- :EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': '' } +- :EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': 0 } Then we get: @@ -142,7 +142,14 @@ You can even omit spaces between the arguments, so concisely (or cryptically): - :EasyAlign*/[:;]\+/{'s':1,'l':''} -Available options will be shown later in the document. +The same thing can be done in the interactive mode as well with the following +key combination. + +- +- * +- +- (or on GVim) + - [:;]\+ Partial alignment in blockwise-visual mode