Home

Awesome

dmacro.nvim / dmacro.vim

[!CAUTION]

Text editors have evolved to support input in different ways.

All of these were hailed as revolutionary when they first appeared. What's the next big assistive feature? I say operation completion. Currently, completion is for new code. But most coding isn't new creation. It's overwriting, like editing or updating. Shouldn't this be supported?

Related works

Example

dmacro.webm

This plugin dynamically defines a macro. You do not need to make any markers for the macro. To define a macro, this plugin detects the reputation as follows:

Usage

You need to bind the <Plug>(dmacro-play-macro) to a key sequence.

vim.keymap.set({ "i", "n" }, '<C-y>', '<Plug>(dmacro-play-macro)')
inoremap <C-y> <Plug>(dmacro-play-macro)
nnoremap <C-y> <Plug>(dmacro-play-macro)

Licence

This software is released under the MIT licence.