atom-vim-mode-plus icon indicating copy to clipboard operation
atom-vim-mode-plus copied to clipboard

Support macro (record by `q`, replay by `@`).

Open indigo0086 opened this issue 9 years ago • 11 comments

vim has the ability to record macros with q and play them back with the @. It would add very useful functionality to the plugin.

indigo0086 avatar Apr 18 '16 09:04 indigo0086

I know and I can implement it, but I don't want to for now. Until I feel I can manage complex situation brought by Macro feature, I will postpone to provide macro.

t9md avatar Apr 18 '16 09:04 t9md

You should see the following: https://github.com/JunSuzukiJapan/atom-keyboard-macros https://github.com/JunSuzukiJapan/atom-keyboard-macros-vim https://github.com/JunSuzukiJapan/atom-keyboard-macros-vim/issues/5

expelledboy avatar Apr 21 '16 10:04 expelledboy

I have just started using Atom, about two days ago, having used vim for years.

Was just pointing those interested in the issue to an existing implementation, which doesn’t actually work very well with vim-mode… but it might be a start?

If you don’t get to it in time then in about 2 months I will do it myself (actually very interested in Electron).

expelledboy avatar Apr 22 '16 08:04 expelledboy

OK, I think I won't implement macro feature within 2months or more. It's interesting if you can create it. For vim-mod-plus, I've released several packages as vim-mode-plus's plugin.

Wiki section have short instruction and list of vmp plugin packages for reference.

t9md avatar Apr 22 '16 08:04 t9md

+1

sahil-a avatar Jun 09 '16 04:06 sahil-a

PSA: this worked for me - got me macros in vim-mode-plus!

https://github.com/JunSuzukiJapan/atom-keyboard-macros-vim/issues/5#issuecomment-212849566 via @expelledboy

rtfeldman avatar Jun 30 '16 18:06 rtfeldman

All you need to do is install atom-keyboard-macros-vim now. The author merged in vim-mode-plus support

https://github.com/JunSuzukiJapan/atom-keyboard-macros-vim/commit/4804fb4a67a7f325814d83f470225260912c1364

avindra avatar Jul 05 '17 12:07 avindra

btw: atom-keyboard-macros doesn't fully support vim-mode-plus. Seems like a bunch of motions/commands are not supported. For example, df<something> will not be recorded in a macro.

suo avatar Jul 29 '17 19:07 suo

I agree that atom-keyboard-macros does not provide extensive functionality, and it would be nice—if t9 gets a change—to provide macro replay/recording.

dylnmc avatar Jul 30 '17 00:07 dylnmc

Somebody made a package a month ago for that (vim-mode-plus-macros).

johannesschweig avatar Jun 26 '18 07:06 johannesschweig

PSA: all the current plugins mentioned in this thread are terribly broken to the degree I wouldn't bother with them. Any chance of revisiting this, @t9md?

mwielondek avatar Sep 16 '20 17:09 mwielondek