mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-11 11:23:49 -05:00
Update README
This commit is contained in:
18
README.md
18
README.md
@@ -231,13 +231,20 @@ becomes as follows on `<Enter>:` (or `:EasyAlign:`)
|
|||||||
|
|
||||||
Naturally, this feature only works when syntax highlighting is enabled.
|
Naturally, this feature only works when syntax highlighting is enabled.
|
||||||
|
|
||||||
You can change the default rule by defining `g:easy_align_ignores` array.
|
You can change the default rule by either defining global `g:easy_align_ignores`
|
||||||
|
array,
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
" Ignore nothing!
|
" Ignore nothing!
|
||||||
let g:easy_align_ignores = []
|
let g:easy_align_ignores = []
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or providing `ignores` option to :EasyAlign command
|
||||||
|
|
||||||
|
```vim
|
||||||
|
:EasyAlign:{'is':[]}
|
||||||
|
```
|
||||||
|
|
||||||
Then you get,
|
Then you get,
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
@@ -284,10 +291,19 @@ this is usually what we want.
|
|||||||
|
|
||||||
However, this default behavior is also configurable.
|
However, this default behavior is also configurable.
|
||||||
|
|
||||||
|
One way is to set the global `g:easy_align_ignore_unmatched` variable to be 0.
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
let g:easy_align_ignore_unmatched = 0
|
let g:easy_align_ignore_unmatched = 0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Or in non-interactive mode, you can provide `ignore_unmatched` option to
|
||||||
|
:EasyAlign command
|
||||||
|
|
||||||
|
```vim
|
||||||
|
:EasyAlign:{'iu':0}
|
||||||
|
```
|
||||||
|
|
||||||
Then we get,
|
Then we get,
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
|||||||
Reference in New Issue
Block a user