The script below will backup your existing Vim configuration files and plop my Vim files down in your home directory. This is by far the easiest way for installation, but you'll have to trust that this script won't do anything nasty (it doesn't).
$ curl -Lo- https://raw.github.com/aaronlake/vimrc/master/bootstrap.sh | bash
Launch vim and type :NeoBundleInstall
.
If you'd like a little more customization to the install follow these steps below:
- Backup your existing Vim configuration files
mv ~/.vim ~/.vim.old
mv ~/.vimrc ~/.vimrc.old
mv ~/.gvimrc ~/.gvimrc.old
- Clone this repo
git clone https://github.com/aaronlake/vimrc.git $HOME/.vim
- Create links to the my vimrc files.
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc
- Create Vim cache directories
mkdir -p $HOME/.cache/vim/backup $HOME/.cache/vim/cache $HOME/.cache/vim/undo
- Launch vim and type
:NeoBundleInstall
.
My .vimrc configuration uses Shougo's excellent NeoBundle plugin manager. I have a large number of plugins added by default, with some useful (but not to me) ones commented out. I'd recommend going through the list of plugins below and verifying that the plugins I've added are useful or otherwise.
- Comment out/uncomment useful plugins
- Run
:NeoBundleInstall
to install the plugins you selected - Update plugins using
:NeoBundleUpdate
to update all plugins to the latest version from Github or vim.org. - Remove any plugins you find not useful or intrusive by deleting or commenting them out in your
.vimrc
file and run:NeoBundleClean
.
I've documented the setting/setting.vim
and setting/keymap.vim
files fairly well though I'd recommend looking through both files to get a better idea how I have this vimrc configured. The plugins, listed below, add quite a bit of functionality and I'd highly recommend reading the documentation on each of them.
- mileszs/ack.vim.git
- tpope/vim-fugitive
- Lokaltog/vim-easymotion
- vim-scripts/BufOnly.vim
- bcaccinolo/bclose
- xolox/vim-session
- tpope/vim-sensible
- kana/vim-fakeclip
- altercation/vim-colors-solarized.git
- Lokaltog/powerline
- techlivezheng/vim-plugin-minibufexpl
- vim-scripts/ScrollColors
- vim-scripts/Color-Sampler-Pack
- tomasr/molokai
- shawncplus/skittles_berry
- veloce/vim-aldmeris
- Shougo/neocomplcache
- Shougo/neosnippet
- Shougo/neosnippet-snippets
- tpope/vim-surround
- godlygeek/tabular
- Raimondi/delimitMate
- ervandew/supertab
- majutsushi/tagbar
- scrooloose/syntastic
- bronson/vim-trailing-whitespace
- tomtom/tcomment_vim
- ezlr/vim-json
- nathanaelkane/vim-indent-guides
- Nothing here, have recommendations?
Thanks to various sources for most of the Vim settings, bootstrap script, and list of plugins. A lot of work has went in to making the best Vim configuration (for me), hopefully someone out there will find this equally useful.