From 2a2625014b74776b824af74fab2afc6c9778919a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 5 Aug 2013 00:45:33 +0900 Subject: [PATCH] Update README --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ea38e56..9c84dd0 100644 --- a/README.md +++ b/README.md @@ -231,13 +231,20 @@ becomes as follows on `:` (or `:EasyAlign:`) 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 " Ignore nothing! let g:easy_align_ignores = [] ``` +or providing `ignores` option to :EasyAlign command + +```vim +:EasyAlign:{'is':[]} +``` + Then you get, ```ruby @@ -284,10 +291,19 @@ this is usually what we want. However, this default behavior is also configurable. +One way is to set the global `g:easy_align_ignore_unmatched` variable to be 0. + ```vim 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, ```ruby