cd ~
git clone git://github.com/pixelhandler/vim-config.git ./.vim
cd ~/.vim
git submodule init
git submodule update
git submodule foreach git submodule init
git submodule foreach git submodule update
mkdir ~/.vim/_backup
mkdir ~/.vim/_temp
ln -s ~/.vim/.vimrc ~/.vimrc
cd ~
Note: for vagrant users I added a shell script you can use with your provision script, see the vagrant-vim.sh file
- Setup the repo
- Add submodules
- Setup pathogen
- Create a .vimrc file
- Use a symbolic link to .vimrc in my home directory
mkdir ~/.vim/
mkdir ~/.vim/{autoload,bundle}
cd ~/.vim/
git init
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
Add some colors
git submodule add https://github.com/w0ng/vim-hybrid.git bundle/hybrid
Initialize and update
git submodule init
git submodule update
git submodule foreach git submodule init
git submodule foreach git submodule update
-
neocomplete requires lua support, install vim with lua:
brew install vim --with-lua
pathogen.vim Install to ~/.vim/autoload/pathogen.vim
curl -so ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
Must haves in my .vimrc to use pathogen:
filetype off
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
" ----------------------------------------------------------
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible " Use vim, no vi defaults
" ----------------------------------------------------------
" Pathogen Initialization
" This loads all the plugins in ~/.vim/bundle
" Use tpope's pathogen plugin to manage all other plugins
" Filetype detection must be off when you run the commands
filetype off
call pathogen#runtime_append_all_bundles()
"call pathogen#infect()
call pathogen#helptags()
"… and so on, see the .vimrc file in this repo
ln -s ~/.vim/.vimrc ~/.vimrc