Skip to content

Commit 203d880

Browse files
committed
update documentation
1 parent b031c10 commit 203d880

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ prefer the split buffer display of result over the word replacement routine.
7676
----------------
7777

7878
Another might-be-useful routine is the one to query synonym for and replace
79-
a multi-word phrase covered in visual mode.
79+
a multi-word phrase covered in visual mode, using the same key mapping
80+
`<Leader>cs`
8081

8182
```
8283
vnoremap <Leader>cs y:ThesaurusQueryReplace <C-r>"<CR>
@@ -92,6 +93,14 @@ function. To invoke it, use keybinding `ctrl-x ctrl-u` in insert mode. This
9293
function resembles Vim's own thesaurus checking function, but using online
9394
resources for matchings.
9495

96+
---------------
97+
98+
Finally, this plugin support thesaurus checkup for manually input through
99+
command mode command `:Thesaurus`.
100+
101+
```
102+
:Thesaurus your phrase
103+
```
95104

96105
## Configuration
97106

doc/thesaurus_query.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Internet is required for online query backend to be functional;
5757
===============================================================================
5858
3. Usage *tq-usage*
5959

60-
The plugin provides three ways of using.
60+
The plugin provides several ways of using.
6161

6262
:ThesaurusQueryReplaceCurrentWord *:ThesaurusQueryReplaceCurrentWord*
6363
This command checkup the word under cursor and attempt to replace it with
@@ -85,7 +85,7 @@ The functionalities are also mapped to key-bindings, if `g:tq_map_keys=1` as
8585
default (Note: since this plugin is active for all buffers, the use of
8686
`<LocalLeader>`is now depreciated):
8787
nnoremap <unique> <Leader>cs :ThesaurusQueryReplaceCurrentWord<CR>
88-
vnoremap <unique> <Leader>cs y:Thesaurus <C-r>"<CR>
88+
vnoremap <unique> <Leader>cs "ky:ThesaurusQueryReplace <C-r>k<CR>
8989
nnoremap <LocalLeader>cs :ThesaurusQueryReplaceCurrentWord<CR>
9090
vnoremap <LocalLeader>cs "ky:ThesaurusQueryReplace <C-r>k<CR>
9191

0 commit comments

Comments
 (0)