/dotvim

vimmy vim vim.

Primary LanguageVim ScriptMIT LicenseMIT

ohai .vim

My Vim files.

Prereqs

You'll need Homebrew, Git, and Node set-up. The install guides linked above should be pretty self-explanatory, and you can use Homebrew to install your dependencies. And when you install Xcode (from the App Store), you'll need to accept their terms from the terminal using

$ sudo xcodebuild -license

Installation

First, install Source Code Pro. It's a nice font that supports Powerline characters.

Next,

$ brew install cmake node ripgrep vim --with-custom-python

At this point I check to make sure I have +python enabled so YouCompleteMe works. This is easy to do via vim --version.

If you're using OmniSharp for C# completion, you'll need to download and install the latest Mono. Homebrew's version of Mono doesn't really work well here, unfortunately.

Some Node libraries to install:

$ npm install -g jsxhint eslint

Then the easy part:

$ git clone git@github.com:bergren2/dotvim.git ~/.vim
$ cd $_
$ ruby install.rb
$ mkdir autoload
$ vim +PlugInstall

Troubleshooting

If Vim crashes due to Python errors, make sure you have Python installed before compiling YouCompleteMe or installing Homebrew Vim. MacOS ships with Python, but this could also be due to pyenv madness.

rbenv and nodenv madness exist as well. Proceed with caution.

If you're trying to do a clean reinstall of vim + plugins, be sure to wipe out the plugged directory.

Post Install

If you care, you can make sure Git uses the right Vim for editing commit messages.

$ git config --global core.editor "vim"

What about Java?

For Java we use Eclipse. You should install it using Homebrew Cask. Then go to "Help > Install New Software..." and enter in the URL "http://vrapper.sourceforge.net/update-site/stable". Check the options you'd like and then you're good to go! Also make sure to change the Eclipse editor keys to use the Vim configuration.

You can also install the Eclipse Color Plugin ("http://eclipse-color-theme.github.io/update") for theming.

What about .NET?

For .NET and other Windows-y languages, we use Visual Studio. Community should do the trick but if you need Pro or Ultimate you'll need to contact your school, work, etc.

Here are some plugins you might want to install:

When this list becomes too long we'll think about automating their installation.

Theming

Since we try to stay consistent between editors, our theme of choice is Tomorrow by Chris Kempson. It's available for Vim, Eclipse, Visual Studio, and a lot of other editors you might use.