4 Commits
v1.2 ... master

Author SHA1 Message Date
Peter Aronoff
590927f572 Update links to point to preservim 2022-02-13 07:37:47 -05:00
Caleb Maclennan
667426a017 Merge pull request #34 from robinp/master
Make cached spelling file directory configurable.
2020-10-24 12:56:51 +03:00
Reed Es
f0391713fa Added reference to new vim-wordchipper plugin 2019-11-22 00:23:24 -07:00
Robin Palotai
4e097f5552 Make cached spelling file directory configurable.
Introduces the `g:wordy_spell_dir` variable. This is useful with
`nixpkgs` or other distros where plugins are installed into unwritable
locations.
2019-08-19 15:00:09 +02:00
3 changed files with 44 additions and 28 deletions

View File

@@ -5,7 +5,7 @@
<br/>
- - -
![demo](http://i.imgur.com/cXDCwdE.gif)
![demo](https://i.imgur.com/cXDCwdE.gif)
- - -
## Features of the _wordy_ plugin
@@ -43,8 +43,8 @@ be missed. To compensate for _wordy_s bare-bones approach, its best used
in concert with the [literature on usage][lit] (Strunk and White, e.g.)
and websites like the [English Language & Usage Stack Exchange][ese].
[lit]: http://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Dstripbooks&field-keywords=English+Usage
[ese]: http://english.stackexchange.com
[lit]: https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Dstripbooks&field-keywords=English+Usage
[ese]: https://english.stackexchange.com
## Requirements
@@ -52,13 +52,15 @@ _wordy_ may require a recent version of Vim.
## Installation
_wordy_ is best installed using a Vim package manager, such as
[Vundle][vnd], [Plug][plg], [NeoBundle][nbn], or [Pathogen][pth].
You can install using your favorite Vim package manager. (E.g.,
[Pathogen][pathogen], [Vundle][vundle], or [Plug][plug].) If you are using
a recent version of vim or neovim, you can also use native package
support. (See [:help packages][packages].)
[vnd]: https://github.com/gmarik/Vundle.vim
[plg]: https://github.com/junegunn/vim-plug
[nbn]: https://github.com/Shougo/neobundle.vim
[pth]: https://github.com/tpope/vim-pathogen
[pathogen]: https://github.com/tpope/vim-pathogen
[vundle]: https://github.com/VundleVim/Vundle.vim
[plug]: https://github.com/junegunn/vim-plug
[packages]: https://vimhelp.org/repeat.txt.html#packages
## Configuration
@@ -195,7 +197,7 @@ will simply protest.
See [50 Problem Words and Phrases][1] for more detail on those issues
targeted by _problematic_.
[1]: http://www.dailywritingtips.com/50-problem-words-and-phrases/
[1]: https://www.dailywritingtips.com/50-problem-words-and-phrases/
### Puffery and Jargon
@@ -283,37 +285,45 @@ instances of “s”, such as “Joes not here.”
And finally, `vague-time` finds where you are using vague descriptions of
time where you could be more specific.
## Configuration
Change where `vim-wordy` stores cached spelling files using:
```
let g:wordy_spell_dir = '/home/my-user/wordy'
```
## See also
* [danielbmarques/vim-ditto][vd] - new plugin to highlight repeated words
* [Words To Avoid in Creative Writing][wa] - a brief guide to usage by writer Cary Morton
[vd]: https://github.com/danielbmarques/vim-ditto
[wa]: http://darlingmionette.deviantart.com/art/Words-To-Avoid-152886782
[wa]: https://darlingmionette.deviantart.com/art/Words-To-Avoid-152886782
If you find this plugin useful, you may want to check out these others by
[@reedes][re]:
If you find this plugin useful, you may want to check out these others
originally by [@reedes][re]:
* [vim-colors-pencil][cp] - color scheme for Vim inspired by IA Writer
* [vim-lexical][lx] - building on Vims spell-check and thesaurus/dictionary completion
* [vim-litecorrect][lc] - lightweight auto-correction for Vim
* [vim-one][vo] - make use of Vims _+clientserver_ capabilities
* [vim-pencil][pn] - rethinking Vim as a tool for writers
* [vim-textobj-quote][qu] - extends Vim to support typographic (curly) quotes
* [vim-textobj-sentence][ts] - improving on Vim's native sentence motion command
* [vim-thematic][th] - modify Vims appearance to suit your task and environment
* [vim-wheel][wh] - screen-anchored cursor movement for Vim
* [vim-wordchipper][wc] - power tool for shredding text in Insert mode
[re]: https://github.com/reedes
[cp]: http://github.com/reedes/vim-colors-pencil
[lx]: http://github.com/reedes/vim-lexical
[lc]: http://github.com/reedes/vim-litecorrect
[vo]: http://github.com/reedes/vim-one
[pn]: http://github.com/reedes/vim-pencil
[ts]: http://github.com/reedes/vim-textobj-sentence
[qu]: http://github.com/reedes/vim-textobj-quote
[th]: http://github.com/reedes/vim-thematic
[wh]: http://github.com/reedes/vim-wheel
[cp]: https://github.com/preservim/vim-colors-pencil
[lx]: https://github.com/preservim/vim-lexical
[lc]: https://github.com/preservim/vim-litecorrect
[pn]: https://github.com/preservim/vim-pencil
[ts]: https://github.com/preservim/vim-textobj-sentence
[qu]: https://github.com/preservim/vim-textobj-quote
[th]: https://github.com/preservim/vim-thematic
[wh]: https://github.com/preservim/vim-wheel
[wc]: https://github.com/preservim/vim-wordchipper
## Future development
@@ -322,7 +332,9 @@ Support for other languages will be added if theres interest. (Hint: pull
requests!)
_wordy_ is a work in progress. If youve spotted a problem or have an idea
on improving this plugin, please post it to the github project issue page.
Contributions are welcome.
on improving this plugin, please post it to the [GitHub project issue
page][issues]. Contributions are welcome.
[issues]: https://github.com/preservim/vim-wordy/issues
<!-- vim: set tw=74 :-->

View File

@@ -1,7 +1,7 @@
" ============================================================================
" File: autoload/wordy.vim
" Description: autoload script for vim-wordy plugin
" Maintainer: Reed Esau <github.com/reedes>
" Maintainer: preservim <https://github.com/preservim>
" Last Change: January 14, 2014
" License: The MIT License (MIT)
" ============================================================================
@@ -45,7 +45,7 @@ function! wordy#init(...) abort
let l:src_path = l:rare_path
endif
let l:spell_dir = g:wordy_dir . '/spell'
let l:spell_dir = g:wordy_spell_dir . '/spell'
if !isdirectory(l:spell_dir)
call mkdir(expand(l:spell_dir), "p")
endif

View File

@@ -1,7 +1,7 @@
" =============================================================================
" File: plugin/wordy.vim
" Description: Usage support for the Vim text editor
" Maintainer: Reed Esau <github.com/reedes>
" Maintainer: preservim <https://github.com/preservim>
" Last Change: January 14, 2014
" License: The MIT License (MIT)
" =============================================================================
@@ -16,6 +16,10 @@ set cpo&vim
" need directory to manage spell files
let g:wordy_dir = fnamemodify(resolve(expand('<sfile>:p')), ':h:h')
if !exists('g:wordy_spell_dir')
let g:wordy_spell_dir = g:wordy_dir
endif
command -nargs=0 NoWordy call wordy#init({})
command -nargs=0 NextWordy call wordy#jump(1)