<file_sep># <NAME>'s vim distribution

## Usage

    git clone git://github.com/ancorcruz/vimfiles.git ~/.vim
    cd ~/.vim
    rake install

### Helptags

To generate tags at first usage of vim invoke:

    :Helptags

This makes all plugins documentations available thru :help

### Updating

    cd ~/.vim
    rake update


## Customization

Add your local customizations in ~/.vimrc.local and ~/.gvimrc.local


## Mappings

* Leader + p  => Toggle NERDTree
* Leader + c  => Clean out all trailing whitespace or tabs
* Leader + t  => Open Command-t dialog
* Tab         => Next tab
* Shift + Tab => Previous tab
* Alt + (1-9) => Switch tabs
* Ctrl + n    => New tab

(Leader = \\)

## Bundled plugins

### Command-t

The Command-T plug-in for VIM provides an extremely fast, intuitive mechanism for opening files with a minimal number of keystrokes. It's named "Command-T" because it is inspired by the "Go to File" window bound to Command-T in TextMate.

https://github.com/wincent/Command-T

http://www.vim.org/scripts/script.php?script_id=3025

### delimitMate

Provides insert mode auto-completion for quotes, parens, brackets, etc

https://github.com/Raimondi/delimitMate

### Endwise

Wisely add "end" in ruby, endfunction/endif/more in vim script, etc

https://github.com/tpope/vim-endwise

### Fugitive

A Git wrapper so awesome.

https://github.com/tpope/vim-fugitive

### NerdTree

Tree explorer. Open with leader+p

http://www.vim.org/scripts/script.php?script_id=1658

### Pathogen

Makes it super easy to install plugins and runtime files in their own private directories.

https://github.com/tpope/vim-pathogen

### Rails

Rails support for vim

https://github.com/tpope/vim-rails

http://www.vim.org/scripts/script.php?script_id=1567

### Ruby

Ruby support for vim

https://github.com/vim-ruby/vim-ruby

https://github.com/vim-ruby/vim-ruby/wiki

### RVM

Switch Ruby versions from inside Vim

https://github.com/tpope/vim-rvm

### Solarized

Precision colors for machines and people

https://github.com/altercation/vim-colors-solarized

### Supertab

Pseudo auto-complete with tab

http://www.vim.org/scripts/script.php?script_id=1643

https://github.com/ervandew/supertab

### Syntastic

Syntax checking hacks for vim

https://github.com/scrooloose/syntastic/

http://www.vim.org/scripts/script.php?script_id=2736

### Vividchalk

A colorscheme strangely reminiscent of Vibrant Ink for a certain OS X editor

https://github.com/tpope/vim-vividchalk

## ToDo

* Add some mappings
* Add snipets
* And more

## Credits

<NAME>'s Vimfiles released under MIT License<br/>
Special thanks to <NAME>, <NAME>, <NAME>, <NAME>, etc.

<file_sep>desc "Install Vimfiles"
task :install do
  system "git submodule update --init"
  system "ln -sf ~/.vim/vimrc ~/.vimrc"
  system "ln -sf ~/.vim/gvimrc ~/.gvimrc"
  compile_command_t
end

desc "Update Vimfiles"
task :update do
  system "git pull"
  system "git submodule sync"
  system "git submodule update --init --recursive"
  compile_command_t
end

# Compile Command-t plugin
def compile_command_t
  system "cd #{File.join File.dirname(__FILE__), 'bundle', 'command-t'} && rake make"
end
