Open iTerm2 links in Vim

A quick tip on how you can open iTerm2 links in Vim (or any text editor you can access from the command line)

Until recently I didn’t know that in iTerm2 you can hold down and click on a file or path and it would open said file or path.

This was kind of neat, but for me what would make it epic is if you could open the file or path inside of vim.

Turns out it is really straight forward.

  • Open your preferences pane (⌘ + ,)
  • Click on “Profiles”
  • Click on “Advanced”
  • Under Semantic History select “Run coprocess…” and paste in the text echo vim \1

Now whenever you click a file or path it will open in Vim for you.

Recent posts View all

Talk CSS

FrontEnders - Web Performance

Sharing some of my thoughts on a FrontEnders meetup on the topic of Web Performance

Conferences

Tips for how to ask for time off to attend conferences

Asking for time off to attend a conference can be nerve-racking, these tips will get you closer to attending the conferences you're interested in.