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!

  • bloopernova@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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.newsOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      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
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        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.newsOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          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/)