Fixed vim and zsh

This commit is contained in:
2018-04-05 13:06:54 +02:00
parent f9db886bd3
commit 0331f6518a
2009 changed files with 256303 additions and 0 deletions

View File

@ -0,0 +1,72 @@
# Bootstrap Snippets
HTML and Haml snippets for [Twitter Bootstrap 3.3.2](http://getbootstrap.com/) markup, for the Vim plugin [snipMate](https://github.com/garbas/vim-snipmate).
![Animation](https://cloud.githubusercontent.com/assets/227274/5981940/c07ea88c-a901-11e4-859d-d87eeff19354.gif)
## Dependencies
- [vim-snipmate](https://github.com/garbas/vim-snipmate)
- [tlib\_vim](https://github.com/tomtom/tlib_vim)
- [vim-addon-mw-utils](https://github.com/MarcWeber/vim-addon-mw-utils)
## Installation using [Pathogen](https://github.com/tpope/vim-pathogen)
$ cd ~/.vim
$ mkdir bundle
$ cd bundle
# 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
# Install bootstrap-snippets
$ git clone -b bootstrap-3-3-2 git://github.com/bonsaiben/bootstrap-snippets.git
## Usage
In an html or haml file, type a trigger name in Insert mode, and press `Tab` to expand it into HTML markup.
Trigger names are meant to be as predictable as possible without being too long or redundant.
Most trigger names correspond directly to the relevant tag or class name, minus hyphens. For example, `btnprimary` becomes:
```html
<button type="button" class="btn btn-primary">Default</button>
```
##### Buttons
Markup with `.btn` class uses the `<button>` tag by default, however there is usually a corresponding `<a>` tag version with the same trigger preceded by an `a`. For example, with `btnprimary` there is also `abtnprimary` which becomes:
```html
<a href="#" class="btn btn-primary" role="button">Primary</a>
```
See Trigger Glossary below for a full list of triggers.
## Filetypes
By default html snippets will only work in html files, or file formats associated with the html filetype in vim. If you are using a format like Ruby ERB (`.html.erb`) and the html snippets are not working, you may have to tell Vim to associate `.html.erb` files with the html filetype, for example:
```vim
autocmd BufRead,BufNewFile *.html.erb set filetype=html
```
## Autocomplete
bootstrap-snippets ships with a dictionary file containing all of the triggers. This can be used as a vim dictionary for autocomplete (Insert mode CTRL+N/CTRL+P).
Add the dictionary file and enable dictionary autocomplete:
```vim
set dictionary+=~/.vim/bundle/bootstrap-snippets/dictionary
set complete+=k
```
## Trigger Glossary
You can find a trigger glossary in the Wiki [here](https://github.com/bonsaiben/bootstrap-snippets/wiki/Trigger-Glossary).

View File

@ -0,0 +1,9 @@
{
"name" : "bootstrap-snippets",
"author" : "Benjamin Sullivan",
"maintainer" : "Benjamin Sullivan",
"repository" : {"type": "git", "url": "git://github.com/bonsaiben/bootstrap-snippets.git"},
"dependencies" : {
},
"description" : "Bootstrap 3.2.2 snippets for snipMate"
}

View File

@ -0,0 +1,348 @@
abbr
abtn
abtnactive
abtnblock
abtncollapse
abtndanger
abtndefault
abtndisabled
abtngroup
abtngroupjustified
abtninfo
abtnlg
abtnlink
abtnprimary
abtnsm
abtnsuccess
abtnwarning
abtnxs
accordian
address
affix
alert
alertdanger
alertdismissible
alertinfo
alertlink
alertsuccess
alertwarning
alistgroupitem
alistgroupitemcontent
alistgroupitemdanger
alistgroupiteminfo
alistgroupitemsuccess
alistgroupitemwarning
apopover
apopoverbottom
apopoverdismissible
apopoverleft
apopoverright
apopovertop
atooltip
atooltipbottom
atooltipleft
atooltipright
atooltiptop
badge
badgebtn
badgenav
basictemplate
bgdanger
bginfo
bgprimary
bgsuccess
bgwarning
blockquote
blockquotereverse
blockquotesource
bootstrapcdn
breadcrumb
btn
btnactive
btnblock
btncollapse
btndanger
btndefault
btndisabled
btndropdown
btndropdownsplit
btndropup
btngroup
btngroupcheckbox
btngroupjustified
btngrouplg
btngroupradio
btngroupsm
btngroupvertical
btngroupxs
btninfo
btnlg
btnlink
btnprimary
btnsingletoggle
btnsm
btnstatetext
btnsuccess
btntoolbar
btnwarning
btnxs
caret
carousel
centerblock
checkbox
checkboxhaserror
checkboxhassuccess
checkboxhaswarning
checkboxinline
clearfix
close
code
collg
collgoffset
collgpull
collgpush
colmd
colmdoffset
colmdpull
colmdpush
colsm
colsmoffset
colsmpull
colsmpush
colxs
colxsoffset
colxspull
colxspush
container
containerfluid
del
divider
dl
dlhorizontal
dropdown
dropdownheader
dropdownmenuright
em
embedresponsive
fieldsetdisabled
form
formcontrolstatic
formgrouphaserror
formgrouphasfeedback
formgrouphassuccess
formgrouphaswarning
formgrouplg
formgroupsm
formhorizontal
forminline
glyphicon
h1
h1small
h2
h2small
h3
h3small
h4
h4small
h5
h5small
h6
h6small
hidden
hiddenlg
hiddenmd
hiddenprint
hiddensm
hiddenxs
html5
imgcircle
imgresponsive
imgrounded
imgthumbnail
initialism
input
inputbtn
inputdisabled
inputgroup
inputgroupbtn
inputgroupbtndropdown
inputgroupcheckbox
inputgrouplg
inputgroupradio
inputgroupsm
inputhelpblock
inputlg
inputreadonly
inputsm
ins
invisible
jumbotron
jumbotroncontainer
kbd
label
labeldanger
labeldefault
labelinfo
labelprimary
labelsuccess
labelwarning
lead
lidisabled
listgroup
listgroupitem
listgroupitembadge
listgroupitemcontent
listgroupitemdanger
listgroupitemdisabled
listgroupiteminfo
listgroupitemsuccess
listgroupitemwarning
listinline
listunstyled
mark
media
mediabody
mediabottom
medialeft
medialist
mediamiddle
mediaright
modal
modallg
modalsm
navbar
navbarbtn
navbarfixedbottom
navbarfixedtop
navbarform
navbarinverse
navbarlink
navbarstatictop
navbartext
navpills
navpillsdropdown
navpillsjustified
navpillsstacked
navtabs
navtabsdropdown
navtabsjustified
ol
p
pageheader
pager
pageraligned
pagination
paginationlg
paginationsm
panel
panelbody
paneldanger
paneldefault
panelfooter
panelheading
panelheadingtitle
panelinfo
panellistgroup
panelprimary
panelsuccess
paneltable
panelwarning
popover
popoverbottom
popoverleft
popoverright
popovertop
pre
progress
progressdanger
progressinfo
progressstacked
progressstriped
progressstripedactive
progresssuccess
progresswarning
pullleft
pullright
radio
radioinline
row
s
samp
scrollspy
select
selectlg
selectmultiple
selectsm
show
small
sronlyfocusable
strong
submitbtn
table
tablebordered
tablecondensed
tablehover
tableresponsive
tablestriped
tabpanel
tdactive
tddanger
tdinfo
tdsuccess
tdwarning
textarea
textcapitalize
textcenter
textdanger
texthide
textinfo
textjustify
textleft
textlowercase
textmuted
textnowrap
textprimary
textright
textsuccess
textuppercase
textwarning
thactive
thdanger
thinfo
thsuccess
thumbnail
thumbnailcontent
thwarning
tooltip
tooltipbottom
tooltipleft
tooltipright
tooltiptop
tractive
trdanger
trinfo
trsuccess
trwarning
u
ul
var
viewport
viewportnozoom
visiblelgblock
visiblelginline
visiblelginlineblock
visiblemdblock
visiblemdinline
visiblemdinlineblock
visibleprintblock
visibleprintinline
visibleprintinlineblock
visiblesmblock
visiblesminline
visiblesminlineblock
visiblexsblock
visiblexsinline
visiblexsinlineblock
well
welllg
wellsm

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff