Showing VIM Location

When working with Linux, every VIM editor automatically shows the little status bar at the bottom of the page. It displays useful tidbits of information like line number, column number, and location (as a percent). For some reason, Apple didn’t think to enable this in MacOS’s VIM editor. Fortunately that’s easy to fix by following these steps:

  1. Open a Terminal window
  2. If you’re not at the root of your home directory run cd ~
  3. Run command vi .vimrc This will create or open the .vimrc file which are you personal VIM “preferences”
  4. Enter set ruler on an empty line
  5. Save and quit