Skip to content

Instantly share code, notes, and snippets.

@shuntaroy
Created Jul 8, 2018
Embed
What would you like to do?
!cmd # = the latest exec starting with ``cmd``
!! # = !-1, previously used command
!$ # = !:-1, previouly used argument
!$:r # = real name
!$:e # = extension
!^:h # = parent dir
!^:t # = file name
!^ # = !:1
^ptn^rpl^ # = s/ptn/rpl/
:gs/ptn/rpl/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment