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_fileorg:ditto_dir
- No
- All
<Plug>mappings :DittPar,:DittoFile,:DittoSentand their*Onversion- Option
vim.g.ditto_mode='sentence'
:Dittonow does the same thing as:DittoOn(Same with other:Ditto*cmds):NoDittonow does the same thing as:DittoOff:DittoUpdatewill now run onInsertLeaveandTextChangedg:ditto_hlgroupsis now a string instead of a list with the nameg:ditto_hlgroupsenteceandparagraphdetection 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()