/myvim

ainformático vim config fork

Primary LanguageVimL

Myvim

My vim configuration file, snippets and plugins.

Installation script

Clone myvim to ~/.vim:

$ git clone git://github.com/ainformatico/myvim ~/.vim

Then cd and execute the installation script:

$ cd ~/.vim

$ ./install.sh

NOTE: you can easily hack the installation script to install wherever you want.

This script will:

  1. Fetch submodules
  2. Backup your old vimrc to /tmp, if exists
  3. Create a symbolic link to the new vimrc
  4. Backup your old snippets to /tmp, if needed
  5. Create a symbolic link for each new snippet

Manual Installation

  1. Clone repo and create a symbolic link to vimrc file
  2. $ git clone https://github.com/ainformatico/myvim.git ~/.vim/
  3. $ ln -s ~/.vim/vimrc ~/.vimrc
  4. Switch to the ~/.vim directory, and fetch submodules
  5. $ cd ~/.vim
  6. $ git submodule init
  7. $ git submodule update

Update repo and submodules

$ ./update.sh

  1. Pull changes from main repo, myvim
  2. Pull changes from each submodule

How To install new bundles (vim plugins)

  1. $ cd ~/.vim
  2. $ mkdir ~/.vim/bundle
  3. $ git submodule add {plugin_uri}
  4. $ git add .
  5. $ git commit -m "ADD {plugin_name}"

Included plugins