Update doc

This commit is contained in:
Junegunn Choi
2013-09-15 01:28:42 +09:00
parent d3803b927d
commit 0fb127cee6
2 changed files with 20 additions and 8 deletions

View File

@@ -140,11 +140,9 @@ For example, if you want to align text around all occurrences of numbers:
- `<Enter>` - `<Enter>`
- `*` - `*`
- `<CTRL-/>` or `<CTRL-X>` - `<CTRL-/>` (or `<CTRL-X>` on GVim)
- `[0-9]\+` - `[0-9]\+`
(`<CTRL-/>` key will not work in GVim, then you have to use `<CTRL-X>` instead)
#### Alignment options in interactive mode #### Alignment options in interactive mode
While in interactive mode, you can switch some of the alignment options using 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 on the left. It can be done by providing additional options in Vim dictionary
format. format.
- `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': '' }` - `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': 0 }`
Then we get: Then we get:
@@ -219,7 +217,14 @@ You can even omit spaces between the arguments, so concisely (or cryptically):
- `:EasyAlign*/[:;]\+/{'s':1,'l':0}` - `: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.
- `<Enter>`
- `*`
- `<Left>`
- `<CTRL-/>` (or `<CTRL-X>` on GVim)
- `[:;]\+`
### Partial alignment in blockwise-visual mode ### Partial alignment in blockwise-visual mode

View File

@@ -78,7 +78,7 @@ For example, if you want to align text around all occurrences of numbers:
- <Enter> - <Enter>
- * - *
- <CTRL-/> or <CTRL-X> - <CTRL-/> (or <CTRL-X> on Gvim)
- [0-9]\+ - [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 on the left. It can be done by providing additional options in Vim dictionary
format. format.
- :EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': '' } - :EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': 0 }
Then we get: Then we get:
@@ -142,7 +142,14 @@ You can even omit spaces between the arguments, so concisely (or cryptically):
- :EasyAlign*/[:;]\+/{'s':1,'l':''} - :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.
- <Enter>
- *
- <Left>
- <CTRL-/> (or <CTRL-X> on GVim)
- [:;]\+
Partial alignment in blockwise-visual mode Partial alignment in blockwise-visual mode