Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
make README.md and wildfire.txt almost equal
  • Loading branch information
Giacomo Comitti committed Jul 15, 2014
1 parent 96225c0 commit cb6ec01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can change default mappings with:
map <SPACE> <Plug>(wildfire-fuel)
" This selects the previous closest text object.
map <C-SPACE> <Plug>(wildfire-water)
vmap <C-SPACE> <Plug>(wildfire-water)
```

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:
Expand Down
24 changes: 4 additions & 20 deletions doc/wildfire.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,14 @@ press a number followed by `<ENTER>` (e.g. pressing `2<ENTER>` will select the
second closest text
object).

To change default mappings use the following options:

You can change default mappings with:
>
" This selects the next closest text object.
let g:wildfire_fuel_map = "<ENTER>"
<
>
" This selects the previous closest text object.
let g:wildfire_water_map = "<BS>"
<

You can map keys to '<Plug>' mappings:
>
map <ENTER> <Plug>(wildfire-fuel)
map <BS> <Plug>(wildfire-water)
<
map <SPACE> <Plug>(wildfire-fuel)
This is useful when you want to hack key mappings. For example, call fuel/water
via another plugins. You can point the interface of fuel/water like below:
>
map <ENTER> <Plug>(wildfire-fuel)U
" This selects the previous closest text object.
vmap <C-SPACE> <Plug>(wildfire-water)
<
This key mapping make upper-case string on the cursor.

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:
Expand Down

0 comments on commit cb6ec01

Please sign in to comment.