/config.old

my configuration files

Primary LanguageVim Script

Dotfile Configuration for OSX and Linux

Maintains a (mostly) homogenous configuration setup across Linux and OSX platforms.

Anthony M. Cook 2012 - http://github.com/acook | @anthony_m_cook | http://anthonymcook.com

How to Use

  1. Open a terminal in the same directory as this file.
  2. Run ./script/install.sh or ./script/config_my_ride.sh
  3. Enjoy!
  • Use the ./script/update.sh script to update your Vim bundles (or other submodules in the repo).
  • The ./script/config_my_ride.sh ensures you have the basic prerequisites and a clean config directory before running the install script.
  • Pass the -n flag to install.sh to skip the Q&A section.

What the install.sh script does

  • Asks you for info to set up your git config.
  • Backs up any existing configuration files.
  • Creates symlinks to the dotfiles in the repo.
  • Pulls all the submodules contained in this repo.
  • Sources your .bash_profile script.

Prerequisites

  • git : http://git-scm.com - Without git the install script will complain at the end and you won't get any of the submodules, but it will still happily do everything else.
  • vim : http://www.vim.org - Several of the configuration files included here are for or involve Vim.
  • coreutils : http://www.gnu.org/s/coreutils - GNU basic utilities, some aliases and functions in the bash configuration may fail.
  • fileutils : http://www.gnu.org/s/fileutils - GNU file manipulation utilities, some aliases and functions in the bash configuration may fail.

Note that my configuration files use GNU syntax, not BSD syntax.

Recommended

You can use the script with your own collection of dotfiles

  1. Fork this repo.
  2. Clear out the dotfiles directory.
  3. Drop in your own configuration files.
  4. Commit and push to your repo.
  5. Run with ./install.sh.

Cheatsheet

Vim Commands

There are three File Navigation related plugins, they each have a different use case.

CtrlP

Full tree fuzzy file, tag, buffer, quickfix, and MRU file matching. Its amazing. It replaces FuzzyFinder. Just don't use the file finder in a massive directory like / or ~, because it will lag on startup.

  • ff - Opens fuzzy file finder.
  • ft - Opens fuzzy tag finder.
  • fb - Opens fuzzy buffer finder.
  • fd - Opens fuzzy directory finder.
  • fm - Opens fuzzy MRU finder.
  • fq - Opens fuzzy quickfix finder.

When its open you can also do a few more things:

  • - refreshes the cache
  • - disables full path search, does filename only matching
  • :45 - a colon at the end of a file can be followed by a vim command

Lusty Explorer

Quick open files, does fuzzy matching per directory. Very fast, no startup lag. Also includes some Buffer Navigation commands.

  • lf - Opens filesystem explorer.
  • lr - Opens filesystem explorer at the directory of the current file.
  • lb - Opens buffer explorer.
  • lg - Opens buffer grep.
  • lj - Opens buffer juggler.

NERDtree

Useful for exploring directory structures, or keeping open on the side like a project window.

  • :NERDtree
  • :e .

Future

  • Ignore failures when unable to find files or commands from my personal script repo.
  • Multiple backups.
  • Support mercurial.