![]() ![]() Now when I type in the terminal which gvim it lists that location, and I can run gvim from the terminal to open a file. bash_profile file, then loaded my change with source. bash_profile file, and added the following line to add MacVim's bin file to the $PATH variable:Įxport PATH=$PATH:/Applications/MacVim.app/Contents/bin If it's really that way in your vimrc then take the spaces out, they're not valid around equals sign in set statements (actually I think a space before the equals is okay, but not after). (If you don't have this file, see if you have any other other profile files, or search the web to determine which to use or add, so that you can set the following additions to your $PATH variable and have them persist after you log out and back in.)įrom the home directory, I used my favorite editor to edit the. kit: The code in your post has spaces before and after the equals sign in your set guifont statement. From the home directory, I typed ls -al to list all files even the hidden ones which start with a dot, and verify there was a. It works well alone, but is intended to be paired with the plugins. It is on GitHub so you can always grab the latest. I opened a terminal, and changed directory to the home directory by typing cd ~. I have spent the last few years tweaking and refining my VIM configuration. Then I opened Contents/bin and there found a set of symlinks from mvim and gvim to vim. I recently downloaded the latest MacVim.dmg file from, opened it, in the window that pops up, dragged the MacVim icon to the Applications icon, then closed that window and ejected the MacVim.dmg installer from the finder.įrom a finder window I navigated to the /Applications folder, I right-clicked on MacVim.app and selected "Show Package Contents". TL DR: gvim is aliased from the MacVim application's bin folder and you can add that bin directory to your $PATH variable to enable access to gvim from the terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |