Scott Watermasysk

  1. Vim Tip: Past Commands

    This week’s, how the hell did I not know about this sooner vim moment: q:.

    I primarily use vim via terminal these days. One of the nice things in MacVim is the ability to arrow through previous commands (just ‘:’ then up and down arrows). Since arrows do not work (which is kind of great) navigating and reviewing recent commands didn’t appear to be easily possible….and of course, I was really wrong. :)

    Summary:

    1. q: - brings up recent commands
    2. Select a line you want to run
    3. Remember that you can edit the line in place
    4. Execute the command with Control+C (capital C).

    Here are some good docs on Using Command Line History.

    • Permalink
    • 1 year ago
    • View comments
    • 0 Tweets
    • Reblog Post

About Scott Watermasysk

Quick links, thoughts, and other really important stuff you absolutely need to know.

  • Z
  • @
  • #
  • "
  • !
  • /

About Scott Watermasysk

Quick links, thoughts, and other really important stuff you absolutely need to know.

Latest From Twitter