eesdil / bootstrap-snippets

Twitter Bootstrap snippets for vim-snipmate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

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}

About

Twitter Bootstrap snippets for vim-snipmate