no horses were harmed while horsing around with this vim setup
VimL Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
after/plugin
autoload
backup
plugins
rc
.gitignore
LICENSE.txt
README.md
Rakefile
plugins.txt
snippets
vimrc

README.md

This is my ~/.vim dir and this, dear reader, is a horse:

               ,
              / \,,_  .'|
           ,{{| /}}}}/_.'
          }}}}` '{{'  '.
        {{{{{    _   ;, \
     ,}}}}}}    /o`\  ` ;)
    {{{{{{   /           (
    }}}}}}   |            \
   {{{{{{{{   \            \          ,-------------------------------.
   }}}}}}}}}   '.__      _  |        /       HI                        \
   {{{{{{{{       /`._  (_\ /       /      /   \                        |
    }}}}}}'      |    //___/   --= <   VVVI     HI-HI-HI                |
jgs `{{{{`       |     '--'         \                   \               |
     }}}`                            \                  HIM-HIM-HIM!!!  /
                                      '--------------------------------'

Installation

Install will move existing ~/.vim* to ~/.vim*.old and installs plugins

git clone https://github.com/cldwalker/vimfiles.git ~/.vim && rake install

Usage

To update all plugins: rake update

To add a vim plugin: rake add PLUGIN=https://github.com/tpope/vim-fugitive.git

To remove a vim plugin: rake rm PLUGIN=https://github.com/tpope/vim-fugitive.git

A github repo can be referenced as :name/:repo : rake add PLUGIN=tpope/vim-fugitive

About

This setup uses pathogen to allow each vim plugin its own directory. plugins.txt contains the list of active vim plugins and is simply a list of git repositories.

Path descriptions:

  • after/plugin/: plugin-specific vim files
  • autoload/: contains pathogen.vim
  • backup/: used by &backupdir to store backup files
  • plugins/: where plugins are git cloned and added to runtime by pathogen
  • plugins.txt: list of plugins
  • rc/: additional files sourced by vimrc, split up by use i.e. keys + functions
  • snippets: used by snipmate plugin
  • vimrc: where it all starts - mostly setting options