mirror of
https://github.com/preservim/vim-wordy.git
synced 2025-11-18 06:43:39 -05:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86ab7f3d5b | ||
|
|
7d90faf657 | ||
|
|
324e08d11d | ||
|
|
bc6b75ad9a | ||
|
|
03680e115b | ||
|
|
210dd1077d | ||
|
|
71b1365e2a |
@@ -81,7 +81,7 @@ least until _wordy_ feels the urge to build again.
|
||||
Define your own ring of dictionaries, overriding the default one in your
|
||||
`.vimrc`:
|
||||
|
||||
```
|
||||
```vim
|
||||
let g:wordy#ring = [
|
||||
\ 'weak',
|
||||
\ ['being', 'passive-voice', ],
|
||||
@@ -97,7 +97,7 @@ let g:wordy#ring = [
|
||||
|
||||
You can navigate the ring with the following commands:
|
||||
|
||||
```
|
||||
```vim
|
||||
:NextWordy
|
||||
:PrevWordy
|
||||
```
|
||||
@@ -105,23 +105,30 @@ You can navigate the ring with the following commands:
|
||||
Optionally map a key in your `.vimrc` to rapidly cycle through the
|
||||
ring's dictionaries:
|
||||
|
||||
```
|
||||
```vim
|
||||
nnoremap <silent> K :NextWordy<cr>
|
||||
```
|
||||
|
||||
**NEW** - You can browse through a flattened list of dictionaries
|
||||
You can browse through a flattened list of dictionaries
|
||||
specified in your ring with:
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy <tab>
|
||||
```
|
||||
|
||||
and optionally map a key such as `\w` in your `.vimrc` to it by
|
||||
|
||||
```vim
|
||||
if !&wildcharm | set wildcharm=<C-z> | endif
|
||||
execute 'nnoremap <leader>w :Wordy<space>'.nr2char(&wildcharm)
|
||||
```
|
||||
|
||||
## Using _wordy_
|
||||
|
||||
You’ll use the commands that follow to enable _wordy_. To disable it and
|
||||
restore your previous spell environment, enter the command:
|
||||
|
||||
```
|
||||
```vim
|
||||
:NoWordy
|
||||
```
|
||||
|
||||
@@ -133,7 +140,7 @@ go to those words flagged by _wordy_.
|
||||
|
||||
### Weak and lazy usage
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy weak
|
||||
```
|
||||
|
||||
@@ -161,7 +168,7 @@ asking whether it detracts from the point you are trying to make.
|
||||
|
||||
### Redundant and problematic usage
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy redundant
|
||||
:Wordy problematic
|
||||
```
|
||||
@@ -186,7 +193,7 @@ targeted by _problematic_.
|
||||
> _self-actualization_ reflect his _dynamic_ and _transformative_
|
||||
> personality.” (puffery and jargon)
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy puffery
|
||||
:Wordy business-jargon
|
||||
:Wordy art-jargon
|
||||
@@ -200,7 +207,7 @@ Instead of puffery, demonstrate through details.
|
||||
|
||||
### Manipulative language
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy weasel
|
||||
```
|
||||
|
||||
@@ -217,7 +224,7 @@ will seek to purge such loaded language from your writing.
|
||||
|
||||
### To be and the passive voice
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy being
|
||||
:Wordy passive-voice
|
||||
```
|
||||
@@ -227,7 +234,7 @@ of the verb to be, often found in overly-passive sentences.
|
||||
|
||||
### Colloquialisms, Idioms, and Similies
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy colloquial
|
||||
:Wordy idiomatic
|
||||
:Wordy similies
|
||||
@@ -238,7 +245,7 @@ idiomatic phrases scraped from Wiktionary and Wikipedia.
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
```
|
||||
```vim
|
||||
:Wordy said-synonyms
|
||||
:Wordy opinion
|
||||
:Wordy contractions
|
||||
|
||||
@@ -33,6 +33,13 @@ function! wordy#init(...) abort
|
||||
let l:data_dir = g:wordy_dir . '/data'
|
||||
let l:src_path = l:data_dir . '/' . l:lang . '/' . l:dict . '.dic'
|
||||
if filereadable(l:src_path)
|
||||
if has('nvim')
|
||||
" Dynamically convert SpellBad words into SpellRare words under NeoVim.
|
||||
" See issue 15 for details: https://github.com/reedes/vim-wordy/pull/15
|
||||
let l:rare_dic = map(readfile(l:src_path), "substitute(v:val, '!$', '?', '')")
|
||||
let l:src_path = tempname()
|
||||
call writefile(l:rare_dic, l:src_path)
|
||||
endif
|
||||
let l:spell_dir = g:wordy_dir . '/spell'
|
||||
if !isdirectory(l:spell_dir)
|
||||
call mkdir(expand(l:spell_dir), "p")
|
||||
|
||||
Reference in New Issue
Block a user