macvim
macvim copied to clipboard
Configure mvim as cli tool via the settings
Most of the time I would start mvim from the command line, but that is only possible if you add a softlink into /usr/local/bin/
so I would recommend a more user friendly version.
Described solution A clear and concise description of what you want to happen.
I would recommend a new check box within the settings panel which will add a softlink to /usr/local/bin/
from the GUI.
Currently way to add mvim to the cli A clear and concise description of any alternative solutions or features you've considered.
- Install macvim
- Add a softlink
sudo ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim
Most of the time I would start mvim from the command line, but that is only possible if you add a softlink into
/usr/local/bin/
so I would recommend a more user friendly version.
These days we usually just recommend adding /Applications/MacVim.app/Contents/bin
to your path directly so you don't have to make a symlink. See :h macvim-PATH
. It has pros and cons compared to making a symlink to /usr/local/bin/mvim
but I like the current recommendation more because it is easier and requires less permission to do.
The description already exists (see the above help link) but I admit it's a little hard to discover. It could be useful to have a button to do this for the user, but it's a little harder to add a folder to $PATH
(since the user may have different shells they use) compared to a simple symlink, which is a simple command to call (albeit needing root permissions).
Most of the time I would start mvim from the command line, but that is only possible if you add a softlink into
/usr/local/bin/
so I would recommend a more user friendly version.These days we usually just recommend adding
/Applications/MacVim.app/Contents/bin
to your path directly so you don't have to make a symlink. See:h macvim-PATH
. It has pros and cons compared to making a symlink to/usr/local/bin/mvim
but I like the current recommendation more because it is easier and requires less permission to do.
Thank you very much @ychin 🤩 good comment, I changed it directly…
The description already exists (see the above help link) but I admit it's a little hard to discover. It could be useful to have a button to do this for the user, but it's a little harder to add a folder to
$PATH
(since the user may have different shells they use) compared to a simple symlink, which is a simple command to call (albeit needing root permissions).
I think it can be very valuable to some users to bring the possibility to set this path into the macvim UI. Currently for me the macOS app kaleidoscope solved that very well.
Right. Let me think about it a little. Just need to play around with it a bit and triage when I get time to work on this.