TGViewer
std::aelloc std::aelloc @aellocate · 98 subscribers
Post #1106 215
std::aelloc https://www.vimfromscratch.com/articles/vim-macros
Vim Macros are great. But I struggle with applying macros to multiple lines. However, there is one thing I have found related to it.

:g//norm! @a

It's used to apply the macro "a" to all results of the last search.

:g -> global command
// -> last search
norm! -> execute a command in default NORMAL mode(! for force)
@a -> apply the macro
  • ❤ 1
More from @aellocate
  1. Sep 15, 2026https://lobste.rs/s/lbavmm/what_blog_posts_influenced_your_thinking
  2. Aug 9, 2026photo post
  3. Aug 9, 2026photo post
  4. Aug 4, 2026Until you see this.
  5. Aug 1, 2026photo post
  6. Jul 30, 2026photo post
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →