diff --git a/README.md b/README.md index 03877ee..efd2571 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,21 @@ ## wildfire.vim -With *Wildfire* you can quickly select the closest text object among a group of candidates. By -default candidates are `i'`, `i"`, `i)`, `i]`, `i}` and `ip`. +With *Wildfire* you can quickly select the closest text object among a group of +candidates. By default candidates are `i'`, `i"`, `i)`, `i]`, `i}`, `ip` and `it`. Learn more about text objects with `:help text-objects`. -![Live preview](_assets/preview.gif "Live preview.") +![Preview](_assets/preview.gif "Preview.") ### Usage -Press `` in normal mode to select the closest text object. Keep pressing for selecting the -**next** closest text object. To go the other way round, that is, to select the **previously** -selected text object, press ``. +Press `` in normal mode to select the closest text object. Keep pressing +`` for selecting the **next** closest text object. To go the other way +round, that is, to select the **previously** selected text object, press ``. -To speed things up, if you want to select the `n`th closest text object you can press a number -followed by `` (e.g. pressing `2` will select the second closest text +To speed things up, if you want to select the `n`th closest text object you can +press a number followed by `` (e.g. pressing `2` will select the +second closest text object). To change default mappings use the following options: @@ -25,23 +26,10 @@ let g:wildfire_fuel_map = "" " This selects the next closest text object let g:wildfire_water_map = "" " This selects the previous closest text object. ``` -By default, *Wildfire* selects the text objects `i'`, `i"`, `i)`, `i]`, `i}` and `ip`, but you can -customize which text objects are considered with the following option +By default, *Wildfire* selects any of the text objects `i'`, `i"`, `i)`, `i]`, +`i}`, `ip` and `it`. You can decide the ones to consider with the following +option: ```vim -let g:wildfire_objects = ["i'", 'i"', "i)", "i]", "i}", "ip"] +let g:wildfire_objects = ["i'", 'i"', "i)", "i]", "i}", "ip", "it"] ``` - -### Tip - -If you often work with Html you certainly know about the ability of Vim to select tag objects with -the commands `vat` and `vit`. When dealing with Html files you may find useful to set the -following variable in your `.virmc` - -``` vim -let g:wildfire_objects = ["it"] " or `at` -``` - - - -