mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-14 21:03:48 -05:00
Update README
This commit is contained in:
11
README.md
11
README.md
@@ -105,10 +105,10 @@ regular expressions.
|
|||||||
|
|
||||||
```vim
|
```vim
|
||||||
" Using predefined alignment rules
|
" Using predefined alignment rules
|
||||||
:EasyAlign [FIELD#] DELIMITER_KEY [OPTIONS]
|
:EasyAlign[!] [FIELD#] DELIMITER_KEY [OPTIONS]
|
||||||
|
|
||||||
" Using arbitrary regular expressions
|
" Using arbitrary regular expressions
|
||||||
:EasyAlign [FIELD#] /REGEXP/ [OPTIONS]
|
:EasyAlign[!] [FIELD#] /REGEXP/ [OPTIONS]
|
||||||
```
|
```
|
||||||
|
|
||||||
For example, when aligning the following lines around colons and semi-colons,
|
For example, when aligning the following lines around colons and semi-colons,
|
||||||
@@ -124,7 +124,8 @@ try these commands:
|
|||||||
- `:EasyAlign **/[:;]\+/`
|
- `:EasyAlign **/[:;]\+/`
|
||||||
|
|
||||||
Notice that you can't append `\zs` to your regular expression to put delimiters
|
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.
|
on the left. It can be done by providing additional options in Vim dictionary
|
||||||
|
format.
|
||||||
|
|
||||||
- `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'margin_left': '' }`
|
- `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'margin_left': '' }`
|
||||||
|
|
||||||
@@ -184,8 +185,8 @@ Global options
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
| Option | Type | Default | Description |
|
| Option | Type | Default | Description |
|
||||||
| ----------------------------- | ---------- | --------------------- | -------------------------------------------------- |
|
| ----------------------------- | ---------- | ----------------------- | -------------------------------------------------- |
|
||||||
| g:easy_align_ignores | list | ['String', 'Comment'] | Ignore delimiters in these syntax highlight groups |
|
| g:easy_align_ignores | list | `['String', 'Comment']` | Ignore delimiters in these syntax highlight groups |
|
||||||
| g:easy_align_ignore_unmatched | boolean | `1` | Ignore lines without matching delimiter |
|
| g:easy_align_ignore_unmatched | boolean | `1` | Ignore lines without matching delimiter |
|
||||||
| g:easy_align_delimiters | dictionary | `{}` | Extend or override alignment rules |
|
| g:easy_align_delimiters | dictionary | `{}` | Extend or override alignment rules |
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user