Spyke
joplinapp·Joplinbypaul

[Question] using vim in iterm2 on osx as an external editor

Does anyone have a way of launching vim in iterm2 under osx as an external editor? I saw a empty discussion on deadit and tried a few things out so I'd love a recipe if someone else has it figured out. Thanks in advance!

View original on techy.news

As in via an icon? You can probably start a specific profile, and in that profile automatically start vim.

I'm not at my desk or I'd figure it out exactly for you.

1
paulreply
techy.news

Yikes, left off a crucial detail. I meant setting up iterm2/vim as an external editor. Updated my post.

Or was this what you were talking about? Under linux, I just have it launching gnome-terminal with "-- vim" as the command line flags.

1
programming.dev

Ah, I understand what you mean now. Unfortunately I don't know exactly how to do that, but search for "open file with specific application macOS". Then set up like my first comment and use that to open files.

1

I'm having trouble figuring it out still. A lot of results are using appplescript and seem to interact with iterm2 different than I would with joplin. As an aside, I did learn a neat trick for configuring iterm2 to open a file in vim after clicking a filename in a terminal while holding down ctl. (https://tosbourn.com/iterm2-open-files-paths-in-vim/)

2

You reached the end

[Question] using vim in iterm2 on osx as an external editor | Spyke