(Neo)vim Macros: Record...Replay...Profit!
Вставка
- Опубліковано 17 жов 2024
- In this video I talk about usefulness of (neo)vim macros and compare them with other automation methods; dot-repeat, substitutions, lua/vimscript functions.
This video is a part of an ongoing (neo)vim series, check out other videos in the playlist.
• (Neo)vim intro and dee...
Terminal presentation slides: github.com/Pio...
Macroni plugin for working with macros: github.com/jes...
00:02:23 Anatomy of a Macro
00:03:35 Dot-Repeat
00:04:53 When to use Macros
00:07:07 Introduction to Registries
00:11:56 Record first Macro
00:19:57 Execute Macro across multiple Files
00:21:06 Demos
00:30:00 Summary
very nice
i really enjoy the 'neovim series', thanks for the inspiration
I wish you could put a link to macroni since I can't seem to be able to find it anywhere
Sorry for that, here is the link: github.com/jesseleite/nvim-macroni. I also added it to vid description.
Thank you, yeah, I saw that repo, and I was like "the only thing common between the two is macroni, so this is definitely something else" 😆
Macros are amazing if you need to refactor the code in a way that requires multiple steps. It saves a huge amount of time then.
I was going to say that you can also combine macros with argdo, but in the meantime I noticed that you covered this trick as well. Seriously, you cover like 99% of the selected topic. I think it might become the best Neovim tutorial once you finish your series. Definitely it will be a great reference for me to go back and remember some tricks.
Btw. for the selection I think you can just type ":'
Thank you! There are still a few videos left :). Nice catch with the selection.