Update README

This commit is contained in:
Junegunn Choi
2013-08-05 00:45:33 +09:00
parent 375da6858a
commit 2a2625014b

View File

@@ -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