
I believe the last time I wrote this thing I had it set-up so that every new file I opened was opened in a new tmux window in the current instance of iTerm2. (at least I did since I always used slightly non standard stuff and wanted it done my own way, ie., inside tmux). You'll probably have to edit the wrapper script a few times.
Macvim cli executable how to#
Step 3 is trying to open your *.txt file and then banging your forehead on the table when it doesn't work. MacVim Vim - the text editor - for macOS Download MacVim Release Notes (r173) GitHub: MacVim GitHub page Releases: Binary releases and release notes FAQ: Answers to some frequently asked questions Troubleshooting: How to track down the source of common problems Debugging: How to generate a debug log MacVim is maintained by macvim-dev. I've forgotten where everything is but this will most likely be in /Library/ somewher) same everywhere: one build-type, one command Modern terminal features such as cursor styling, focus events, bracketed paste Built-in terminal emulator. EDIT: An even better way to use MacVims CLI executable in your shell is to move the mvim script bundled with MacVim somewhere in your PATH and use this. (Again, I used guides on the internet for this. You can probably sorta do this using dialogue menus n what not for OSX but trust me when I say it's far more robust and easier if you do this by creating/editing a mysterious plist file somewhere. Step 2 is setting this thing as default for all *.txt files, blank no-extension files, *.md, and whatever other file extension you want. I followed (99% copy/paste) some guides on the internet for this.

The script is going to launch your executable (vim), inside your terminal, and open the file in it. MacVim comes with a CLI executable that you can use in place of Mac OS X's default Vim if you add a single alias to your /.bashrc / /.profile. The wrapper script will be the "app" that you set as default for *.txt files. Step 1 is gonna be making a "wrapper" script (language will be AppleScript).

Ok so this is actually possible, don't worry! I'm going off of memory here since it's been years since I've actually used a mac.
