Joined April 2012
·

Tad Hosford

Birmingham, AL
·
·

Posted to The Second Rule of vim over 1 year ago

Oh, fun - I'll golf. 3bdwi then type "bar "; or 3bdEi then type "bar".

Edit - that's 9 either way

Posted to Make your own gem over 1 year ago

Also, bundler includes a Rakefile with gem tasks for building and releasing your newly created gem: https://github.com/bundler/bundler/blob/master/lib/bundler/gem_helper.rb#L47-L50

Posted to Bang Cash (!$) over 1 year ago

Yeah @davidchase03 - but this won't work in fish

Posted to Bang Cash (!$) over 1 year ago

There's a bunch of these "bang arguments":

  • !:0 is the previous command name
  • !^, !:2, !:3, …, !$ are the arguments of the previous command
  • !* is all the arguments
  • !$ is the last argument. You can also use $_ to get the last argument of the previous command.

And more, see this good link

Clean, neat... Thanks, Javier

Achievements
100 Karma
493 Total ProTip Views