Bootstrap Snippets
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.
Dependencies
How to install
- Install vim-snipmate and dependencies
- Install bootstrap-snippets
Pathogen
Installation using$ 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
Usage
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}