Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have space mapped to execute the macro in 'q':

  noremap <Space> @q
This lets me set a macro by first wacking qq, then q to finish, and then replay it by wacking space. I find myself using quick throw-away macros that only have a use for maybe 10 seconds far more often with this setup. (Plus wailing on the spacebar to get work done can be really satisfying ;)


This ain't bad but you know you can re-execute last macro with @@? So it ends up being @q and then hold down the @ key to repeat.


Yeah, that's how I use macros that I anticipate remaining useful longer.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: