My personal VIM Configuration.
Vim 7.3 or better (Tested on Mac OS )
Introduction to Vim: http://blog.interlinked.org/tutorials/vim_tutorial.html
- Homebrew -
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
- MacVim -
brew install macvim
- Homesick -
gem install homesick
- discount -
brew install discount
- ctags -
brew install ctags
MacVim is not a requirement as the majority of the files work in most *nix environments including Terminal. It's recommended to use Homebrew's package of MacVim, as it compiles MacVim and Vim at 64 bit with Ruby, Python, Perl, installs the command line link mvim
, plus a bunch of other goodness. Homesick is required for easy management of dot files with the repository. The discount executable is recommended for converting markdown files to html for previewing. The ctags executable is helpful for taglist (jumping between files) and omni completion.
To install the files and default configuration run the following:
Quick Install
$ bash -c "$(curl -fsSL raw.github.com/vitorbritto/setup-vim/master/init.sh)"
Normal Install
# Backup for your existing VIM configuration
$ mv ~/.vim ~/.vim_bkp && mv ~/.vimrc ~/.vimrc_bkp && mv ~/.gvimrc ~/.gvimrc_bkp
# Installation
$ git clone --recursive http://github.com/vitorbritto/setup-vim.git .vim
$ ln -s ~/.vim/vimrc ~/.vimrc
$ ln -s ~/.vim/gvimrc ~/.gvimrc
$ rm -rf ~/.vim/init.sh
Plug-ins are managed using pathogen. All submodule plug-ins are stored in the bundle
directory.
New plug-ins need to be added to the bundle
directory and should be treated as submodules. To add a new one run:
$ git submodule add <repository> ~/.vim/bundle/<plugin-name>
$ git submodule init
$ git submodule update
To pull upstream changes for all of the submodules run the following:
$ cd ~/.vim
$ git submodule foreach git pull origin master
To sync this environment on another machine run the following:
$ cd ~
$ git clone http://github.com/vitorbritto/setup-vim.git ~/.vim
$ ln -s ~/.vim/vimrc ~/.vimrc
$ cd ~/.vim
$ git submodule init
$ git submodule update
- Delete the relevant line from the
.gitmodules
file - Delete the relevant section from
.git/config
- Run
git rm --cached path_to_submodule
(no trailing slash!!) - Remove the directory from
bundle
- Remove any descriptions from the
README.md
file
- vim-airline
- bufkill.vim
- camelcasemotion
- colorsel.vim
- Gundo
- HTML-AutoCloseTag
- IndexedSearch
- Specky
- tabular
- TailMinusF
- vim-ragtag
- vim-repeat
- vim-surround
- delimitMate
- vim-rake
- vim-bundler
- emmet-vim
- browser-refresh.vim
- gist-vim
- jade.vim
- json.vim
- markdown-preview.vim
- nerdcommenter
- nerdtree
- rvm.vim
- snipmate.vim
- statusline
- supertab
- syntastic
- taglist.vim
- vim-coffee-script
- vim-cucumber
- vim-fugitive
- vim-haml
- vim-javascript
- vim-markdown
- vim-rails
- vim-ruby
- vim-stylus
- vim-unimpaired
:help key-notation
- http://github.com/krisleech/vimfiles/wiki
- http://walking-without-crutches.heroku.com/image/images/vi-vim-cheat-sheet.png
- http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118
- http://stevelosh.com/blog/2010/09/coming-home-to-vim/#important-vimrc-lines
- http://vimcasts.org/
- http://tpo.pe/
- https://github.com/carlhuda/janus
- https://github.com/rson/vimfiles/blob/master/plugins.vim
- https://github.com/codegram/vimfiles
- https://www.destroyallsoftware.com/file-navigation-in-vim.html
- https://github.com/alexreisner/dotfiles/blob/master/.vimrc
- http://items.sjbach.com/319/configuring-vim-right
- https://github.com/sickill/dotfiles/blob/master/.vimrc
MIT License © Vitor Britto