I am trying to get started using VIM on OSX but I am having trouble trying to see which one I should use? I can go to terminal and type vim and the editor comes up, but I have also been reading up online and some people say to use MacVim. I am not sure on what the difference is between the built in vim and MacVim.
Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X.
Just select the file and hit Cmd-i, then go to the "Open with" tab, select app and hit "Change all...". This will change the default application for that file and the open command will work as you wish. Then you can type edit filename in Terminal and the file will open in MacVim.
The Vim that ships with OS X is outdated and doesn't come with a GUI, if you care about that. MacVim is current and you can use it from the terminal as well, you just have to install the mvim utility that comes with it and make a symlink named vim that points to mvim. See :h mvim
in MacVim.
For most purposes vim
at the command-line is the same as what is in MacVim, minus some bug fixes and the GUI.
I use them both. For longer editing jobs, or when I need to have many files open, I tend to go with the GUI version, though the command-line version can open them too. I just prefer the look.
Using either/both is fine, because the command-line version will honor the settings in your ~/.vimrc
and plugins in ~/.vim
. I use vim/gvim on all my machines (Mac OS, Linuxes like Centos, Ubuntu and Mint, and Windows) and just copy a tarball around of the settings when I compile a new version on some machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With