this post was submitted on 11 Jul 2026
41 points (93.6% liked)

Technology

86252 readers
3784 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] tal@lemmy.today 2 points 22 hours ago* (last edited 15 hours ago) (1 children)

But typing stuff like: /*********************************************************/ is pretty common for me and would be annoying without auto-repeat of the respective character…

If you're coding, your code editor may have some way to input that.

Some people who frequently input something like that use a snippet system.

In emacs, hitting most keys (like "*") runs self-insert-command. That takes a numeric parameter, so one can just do something like / M-5 M-6 * / (slash, hold Alt, type 56, hit asterisk, slash) to get a slash followed by 56 asterisks followed by a slash.

I'm not really a serious vim person, but I'm sure that vim has similar functionality.

searches

https://stackoverflow.com/questions/5054128/repeating-characters-in-vim-insert-mode

Looks like, in insert mode, / Control-o 56 a * Esc a /. Probably not using correct vim terminology for the keystrokes, but you get my drift.

[–] Multiplexer@discuss.tchncs.de 1 points 21 hours ago* (last edited 21 hours ago)

I have to reserve the limited keystroke remembering capacity of my aging brain to more crucial stuff, I am afraid...

Also, the tiny time span passing while mindlessly holding down the "*" key is a welcome pause to clear your mind, take a short breath and gather your thoughts on what the heck you are supposed to be writing in the comment body following the /**********/ line. ;-)