MacVim comes with mvim
, a command-line wrapper that allows you to launch the MacVim GUI from the command-line with $ mvim filename
and the MacVim CLI executable directly in your shell with $ mvim -v filename
.
Both work well with sudo
so you can perfectly do $ sudo mvim filename
to open filename
with write privileges in a new MacVim Window or $ sudo mvim --remote filename
to do the same in the current MacVim window.