Skip to content

altermo/vim-ditto-fork

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-ditto-fork.nvim

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.

Removed

  • Doesn't permanently save words:
    • No g:ditto_file or g:ditto_dir
  • All <Plug> mappings
  • :DittPar, :DittoFile, :DittoSent and their *On version
  • Option vim.g.ditto_mode='sentence'

Changed

  • :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 on InsertLeave and TextChanged
  • g:ditto_hlgroups is now a string instead of a list with the name g:ditto_hlgroup
  • sentece and paragraph detection uses regex

New features

  • 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()

About

🙊 Stop repeating yourself

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%