A rewrite of vim-ditto in lua. This README will only go through new features and removals. If you want to know what this plugin does, read the vim-ditto-README. Note that this plugin doesn't use setup
.
- Doesn't permanently save words:
- No
g:ditto_file
org:ditto_dir
- No
- All
<Plug>
mappings :DittPar
,:DittoFile
,:DittoSent
and their*On
version- Option
vim.g.ditto_mode='sentence'
:Ditto
now does the same thing as:DittoOn
(Same with other:Ditto*
cmds):NoDitto
now does the same thing as:DittoOff
:DittoUpdate
will now run onInsertLeave
andTextChanged
g:ditto_hlgroups
is now a string instead of a list with the nameg:ditto_hlgroup
sentece
andparagraph
detection uses regex
g:ditto_autocmds
: list of autocmd which run:DittoUpdate
(default:InsertLeave,TextChanged
)- Every cmd now has a lua snake_case equivalent, Ex.
:NoDitto
->require'ditto'.no_ditto()