mirror of
https://github.com/preservim/vim-wordy.git
synced 2025-11-15 21:33:48 -05:00
Added completion list; deprecated many xWordy commands
This commit is contained in:
@@ -18,28 +18,6 @@ let g:wordy_dir = fnamemodify(resolve(expand('<sfile>:p')), ':h:h')
|
||||
|
||||
command -nargs=0 NoWordy call wordy#init({})
|
||||
|
||||
command -nargs=0 BeingWordy call wordy#init({ 'd': 'being' })
|
||||
command -nargs=0 PassiveWordy call wordy#init({ 'd': ['passive-voice', 'being',] })
|
||||
|
||||
command -nargs=0 WeakWordy call wordy#init({ 'd': 'weak' })
|
||||
command -nargs=0 LazyWordy call wordy#init({ 'd': 'weak' })
|
||||
|
||||
command -nargs=0 ProblemWordy call wordy#init({ 'd': 'problematic' })
|
||||
command -nargs=0 WordyWordy call wordy#init({ 'd': 'redundant' })
|
||||
|
||||
command -nargs=0 JargonWordy call wordy#init({ 'd': 'business-jargon' })
|
||||
command -nargs=0 ArtJargonWordy call wordy#init({ 'd': 'art-jargon' })
|
||||
command -nargs=0 PuffWordy call wordy#init({ 'd': 'puffery' })
|
||||
command -nargs=0 WeaselWordy call wordy#init({ 'd': 'weasel' })
|
||||
|
||||
command -nargs=0 TriteWordy call wordy#init({ 'd': ['colloquial', 'idiomatic', 'similies',] })
|
||||
|
||||
" tools for formal and objective writing
|
||||
command -nargs=0 VagueTimeWordy call wordy#init({ 'd': 'vague-time' })
|
||||
command -nargs=0 OpineWordy call wordy#init({ 'd': 'opinion' })
|
||||
command -nargs=0 SaidWordy call wordy#init({ 'd': 'said-synonyms' })
|
||||
command -nargs=0 AintWordy call wordy#init({ 'd': 'contractions' })
|
||||
|
||||
command -nargs=0 NextWordy call wordy#jump(1)
|
||||
command -nargs=0 PrevWordy call wordy#jump(-1)
|
||||
|
||||
@@ -55,9 +33,39 @@ if !exists('g:wordy#ring')
|
||||
\ 'puffery',
|
||||
\ ['problematic', 'redundant', ],
|
||||
\ ['colloquial', 'idiomatic', 'similies', ],
|
||||
\ 'art-jargon',
|
||||
\ ['contractions', 'opinion', 'vague-time', 'said-synonyms', ],
|
||||
\ ]
|
||||
endif
|
||||
|
||||
function! <SID>chooseDict(ArgLead, CmdLine, CursorPos)
|
||||
return wordy#flatten(g:wordy#ring)
|
||||
endfunction
|
||||
|
||||
" Wordy {dict_name}
|
||||
command -nargs=1
|
||||
\ -complete=customlist,<SID>chooseDict
|
||||
\ Wordy
|
||||
\ call wordy#init({ 'd': <f-args> })
|
||||
|
||||
" start.DEPRECATED - will be removed at some point in future
|
||||
command -nargs=0 BeingWordy call wordy#init({ 'd': 'being' })
|
||||
command -nargs=0 PassiveWordy call wordy#init({ 'd': ['passive-voice', 'being',] })
|
||||
command -nargs=0 WeakWordy call wordy#init({ 'd': 'weak' })
|
||||
command -nargs=0 LazyWordy call wordy#init({ 'd': 'weak' })
|
||||
command -nargs=0 ProblemWordy call wordy#init({ 'd': 'problematic' })
|
||||
command -nargs=0 WordyWordy call wordy#init({ 'd': 'redundant' })
|
||||
command -nargs=0 JargonWordy call wordy#init({ 'd': 'business-jargon' })
|
||||
command -nargs=0 ArtJargonWordy call wordy#init({ 'd': 'art-jargon' })
|
||||
command -nargs=0 PuffWordy call wordy#init({ 'd': 'puffery' })
|
||||
command -nargs=0 WeaselWordy call wordy#init({ 'd': 'weasel' })
|
||||
command -nargs=0 TriteWordy call wordy#init({ 'd': ['colloquial', 'idiomatic', 'similies',] })
|
||||
command -nargs=0 VagueTimeWordy call wordy#init({ 'd': 'vague-time' })
|
||||
command -nargs=0 OpineWordy call wordy#init({ 'd': 'opinion' })
|
||||
command -nargs=0 SaidWordy call wordy#init({ 'd': 'said-synonyms' })
|
||||
command -nargs=0 AintWordy call wordy#init({ 'd': 'contractions' })
|
||||
" end.DEPRECATED
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
" vim:ts=2:sw=2:sts=2
|
||||
|
||||
Reference in New Issue
Block a user