My vim configuration
Vim script Python CSS TeX XSLT Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Dan's Vim Configuration

I'm running MacVim Snapshot 67 on Mac OS X 10.9.

This repo exists for two reasons.

  1. It's a backup for when I inevitably screw something up.
  2. It might help vim enthusiasts of beginners figure out what works for them. I recommend taking a look through the .vimrc file and seeing if some of the options appeal to you. They've generally been cherrypicked from all over the web.

Read the documentation below before trying out any of my files on your own install.

Try it out

If you want to try out my vim configuration, you can. Here's my recommended method of how:

  1. Backup your current configuration!* On a *nix system, that might look like:

     cd ~
     mkdir vim-backup
     mv .vimrc vim-backup
     mv .gvimrc vim-backup
     mv .vim vim-backup

*Seriously! Don't forget to backup your current setup!

  1. Clone this repository and move the files into place.

     cd ~
     git clone git://
     cd vim-config
     mv .vim ..
     mv .vimrc ..
     mv .gvimrc ..
  2. That should be it! Reopen vim and it should all be working.

  3. How do I uninstall it?
    It's easy to uninstall too:

     cd ~
     rm -rf .vim
     rm .vimrc
     rm .gvimrc
     mv vim-backup/.vimrc ..
     mv vim-backup/.gvimrc ..
     mv vim-backup/.vim ..

And you're done!


  • .vimrc: this is vim's runtime configuration file and contains the settings that make my vim special; this is commented to help you understand what lines are doing
  • .gvimrc: these are just a few settings that pertain particularly to vim running in a graphic user interface (aka gvim); this too has comments to help explain it


  • WC: running :WC gives you a wordcount in your statusbar
  • CB: running :CB for "Center Buffer" creates two vertical splits, one to the right and one to the left of your current buffer, and then sets all three equal in width—this is nice in fullscreen in MacVim
  • Markdown Preview: Press ,+p in a markdown document to open it in


The following are directories inside the .vim directory:

  • after: I have a file in here which stops Vim from spellchecking my Startify screen.
  • bundle: Vundle uses this to store my plugins
  • colors: contains the wombat colorscheme which I use
  • spell: this contains the words added to vim's built in dictionary—I recently reset it so right now it hardly contains anything

Plugins Installed

  • HTML5: support for html5 tags in syntax highlighting
  • SuperTab: insert-mode tab-key autocompletion
  • Vim-Airline: a light-weight statusline replacement
  • vim-endwise: autoinsert "end" for Ruby
  • Vim-Latex: tools for LaTeX editing in vim
  • vim-markdown: adds markdown syntax detection for vim
  • vim-startify: gives me a nice startup page for vim
  • Vundle: lets me easily manage my plugins and also automatically update them using Git :)