The Ultimate Vim Distribution and Local Bundles
I picked the first one from a Google search for “vim coffeescript”, always a reliable way of choosing things in my experience. I followed the directions on adding local bundles but then got stuck when I tried to run :BundleInstall from within Vim. It seemed like it was ignoring it completely. After some floundering, the Windows
hostage user (and this page) in me decided to restart Vim and restart it with “mvim +BundleInstall +BundleClean +q”. Presto chango, CoffeeScript syntax and indentation was enabled.
I found documentation for BundleInstall and BundleClean (“:h vundle” is your friend) but I have no idea what the +q does. Anyway, this post brought to you by the fact I couldn’t figure out how to fit it in 140 characters on Twitter. Also, I’m half toying with trying to do NaNoWriMo after a year layoff and I need to be writing a LOT more, nonfiction or otherwise.
Alternatively, I just learned about the :BundleInstall! (notice the bang on the end, Emeril would be proud) command. That can be run without restarting Vim. Yay. However, you’ll still have to restart Vim to get the syntax highlighting you’re looking for.