News for hackers. Stuff that matters.
Re:Vim tricks by CalChris on Sunday June 02, 2019 @04:56PM (#20078123)
":, @: ": is the register storing the last executed command. You can write ":p to print it to the buffer. @: reruns the last command.

That seems like a mouthful. I use :<up arrow> to run the last command and <up arrow> some more to run the ones before that.

Re:Vim tricks by tartrate on Sunday June 02, 2019 @05:27PM (#20078345)
And if you wanted to repeat that 10 times you would...?
Re:Vim tricks by jonahx on Sunday June 02, 2019 @10:28PM (#20079947)
Re:Vim tricks by mises on Sunday June 02, 2019 @09:31PM (#20079726)
Press up ten times. That's still what a lot of us do in terminal (particularly when we're on a machine without fancy shell history fuzzy-searching etc.).

I guess I might press and hold at ten.

Re:Vim tricks by grimgrin on Monday June 03, 2019 @01:20AM (#20080580)
Your machine probably has ^r for working through bash history

But that aside, if you’re into arrow pressing, a few lines in your .inputrc can go a long ways

Test this out sometime:

  # Incremental searching with Up and Down and Left and Right
  "\e[A": history-search-backward
  "\e[B": history-search-forward
Now you can type “find” and press up/down arrow to just cycle through history that starts with find
Re:Vim tricks by lithiumfrost on Monday June 03, 2019 @02:13AM (#20080788)
Personally, I would do 9@@ after the first @:
Re:Vim tricks by frutiger on Sunday June 02, 2019 @05:24PM (#20078321)
You can also use `:^F` to navigate your history in a horizontal split using regular motion/search keys.