Running VimR From the Command Line

How you can go about running VimR from your command line

If you want to open VimR from the command line here is what you need to do;

Create a bash script in /usr/local/bin/ called vimr

In that file write the following;

#!/bin/bash

open -a VimR.app "$@"

Make the script writeable by calling chmod u+x vimr.

Now you can call vimr filename to open a specific file or folder, or if you call vimr . it will open the current working directory in VimR.

Notes

  • Thanks so much dnerdy for posting this script in a GitHub Issue I created.
  • You don’t need to have this in /usr/local/bin/ it can be anywhere that can be seen in your path.

Recent posts View all

Ruby

Forcing a Rails database column to be not null

How you can force a table column to always have something in it with Rails

Writing Marketing

We've deleted an article's worth of unhelpful words

We've improved several pages across our site by removing words that add no value, and often detract from the article.