It is based on bonsaiben's repo, but amended for Bootstrap v3. And not finished... so if something is wrong or missing help is welcome. This repository contains HTML and Haml snippet files for Twitter Bootstrap, for the famous snipmate plugin for Vim.
- Install vim-snipmate and dependencies
- Install bootstrap-snippets
Installation using Pathogen
$ cd ~/.vim
$ mkdir bundle
$ cd bundle
$ git clone git://github.com/bonsaiben/bootstrap-snippets.git
# Install dependencies:
$ git clone https://github.com/garbas/vim-snipmate.git
$ git clone https://github.com/tomtom/tlib_vim.git
$ git clone https://github.com/MarcWeber/vim-addon-mw-utils.git
Generally the snippet trigger will be the name of the relevant class or combination of classes (without hyphens).
For example, btnprimary
converts to:
%button.btn.btn-primary{:type => "button"} ${1:Default}