How To Install Vim Editor For Mac

  1. How To Use Vim Editor Mac
  2. Vim How To Edit
  3. Mac Update Vim
  • How to install Vim Text Editor on Ubuntu 15.04, Ubuntu 14.04 and Derivatives. Vim Text Editor (Vi IMproved) is an advance text editor built to enable efficient text editing. It is a highly configurable improved version of the vi editor distributed with most UNIX systems.
  • Vim Text Editor (Vi IMproved) is an advance text editor built to enable efficient text editing. It is a highly configurable improved version of the vi editor distributed with most UNIX systems. Vim is often called a “programmer’s editor,” and so useful for programming that many consider it an entire IDE.
  • 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. It is included as 'vi' with most UNIX systems and with Apple OS X.
  • Vim - the text editor - for Mac OS X. Contribute to macvim-dev/macvim development by creating an account on GitHub.
  • 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. To install the latest version, use homebrew: brew install vim.
Active7 years, 7 months ago

The other day I was doing some web development work in Netbeans 7 like I had been doing for months. I was working on, at most, two or three files...real light-weight work. It gets late, I go to bed with the computer running. In the morning I wake up to a lot of the memory on my computer being used up by something. I look at NetBeans, and it's hogging up an insane amount of memory.

This is a simple tutorial on how to use the text editor VIM. VIM is most programmers prefered program to use. For more assistance: www.openubuntu.com.

It had to go. After hearing the countless 'nerdgasms' about Vim I had to try it out. Although I've only just gotten started with it, and I have a ways to go before I get the kind of customization I am looking for, I am extremely impressed with it. I love how easy it is to move around and edit code. I can only imagine what it will be like when I really feel comfortable with it.

How To Install Vim Editor For Mac

One of the things that I would like to do is upgrade to Vim 7.3. I don't want to use MacVim (I've already tried it), and I don't want to install via MacPorts/HomeBrew/Whatever. I want Vim 7.3 from source.

Vim

I've only just entered the world of Unix and having already bricked my computer once I have no desire to do it again. So, I want to make sure I know what I'm doing before I do anything stupid.

I currently have the default version of Vim 7.2. I know what directory this is located in. I can access this by typing vim into a terminal.

I currently have a working version of Vim 7.3 installed in ~/Source Code/vim/ that I can gain access to by typing out the complete path to the Vim binary file.

My question is:

How do I safely change the command vim in a terminal or xterm to point to my new version in ~/Source Code/vim/?

I have a feeling symbolic links are involved, but I know this is getting outside my area of comfort. So far the only thing I've been able to find on Google is the normal 'Just do this through MacPorts.'

Well, I don't actually learn anything through MacPorts. I don't want to just get a better editor, I want to learn something in the process.

Peter Mortensen
8,55916 gold badges62 silver badges85 bronze badges
Charles SprayberryCharles Sprayberry

migrated from stackoverflow.comJul 12 '11 at 11:41

This question came from our site for professional and enthusiast programmers.

1 Answer

Type this into your terminal:

This makes bash search ~/Source Code/vim/ for executables before any other directory, so it will find the vim there instead of the vim in /usr/bin/.

user7541user7541

Not the answer you're looking for? Browse other questions tagged macosvim or ask your own question.

Active5 months ago
Editor

How do I enable syntax highlighting in vim on Mac?

bmike
168k46 gold badges304 silver badges662 bronze badges
StrangeRangerStrangeRanger

2 Answers

How To Use Vim Editor Mac

There are two common methods:

Method 1: One of the easiest and most commonly recommended methods is by creating a file called .vimrc in your home directory. The one and only command you need to run is echo syntax on >> ~/.vimrc. The next time you access a non-txt file with vim, you will notice highlighted text.

Method 2: Another method, one that I personally use/used, is by installing 'vim --override-system-vim'. First run vim --version in the terminal. Notice the +(s) and -(s) and keep it in mind, maybe even take a picture. Next we will install a package manager, if one is not already installed on your computer. We will use Homebrew for this tutorial. Run xcode-select --install in the terminal. It will take about 10-15 min to install the Xcode Command Line Tools. Once the installation is complete, run ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'. After brew has installed, run brew doctor to make sure that everything is in working order. If it recommends you run any commands to resolve an issue, run them first before continuing. After the previous step is complete, run brew install vim --override-system-vim. After vim is installed, run vim --version and notice the difference of the +(s) and -(s) in comparison to when you first ran the command. Not only has syntax highlighting been enabled, but there are other features that have been enabled as well.

nohillside
57k14 gold badges120 silver badges168 bronze badges
StrangeRangerStrangeRanger

if you want to toggle this on/off (without creating a .vimrc file) simply type

:syntax on

Vim How To Edit

while in vi/vim

agrayrayagrayray

You must log in to answer this question.

Mac Update Vim

Not the answer you're looking for? Browse other questions tagged macosvi .