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!
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!
5 Comments
bloopernova@programming.dev · 1 pts · 2y
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.
paul@techy.news · 1 pts · 2y
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.
bloopernova@programming.dev · 1 pts · 2y
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.
paul@techy.news · 2 pts · 2y
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/)
lakeeffect@lemmy.world · 1 pts · 1y
https://discourse.joplinapp.org/t/how-to-change-editor-to-vim-in-mac-os/2327/14