💾 Archived View for zigford.org › vim-tip-edit-macro.gmi captured on 2023-11-04 at 11:36:05. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

-=-=-=-=-=-=-

about

links

scripts

Sharing linux/windows scripts and tips

Vim tips, macro's

September 02, 2018 — Jesse Harris

Google it and you will find a couple of methods to edit vim macros. Here is the method I like and will continue to use.

~~~

The following will paste a register to a new line, you edit the line and then yank the content back to the register

Here are some key combo's you would have to type in for insert mode operations

You can also add a macro into your vimrc with the following vimscript

        let @q='oAn inserted macro^['

With this, the macro stored in the q register will use o to open a new line in insert mode, type 'An inserted macro' and then go back to normal mode.

If you have any comments or feedback, please email me and let me know if you will allow your feedback to be posted here.

email

Tags:

vim-tips

vim

vim-macros

© Jesse Harris

mailto:jesse@zigford.org

Generated with bashblog, a single bash script to easily create blogs like this one

bashblog