forked from amix/vimrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
amix
committed
May 26, 2013
1 parent
630b462
commit 267c59c
Showing
15 changed files
with
242 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
" Language: Mako | ||
" Maintainer: Armin Ronacher <[email protected]> | ||
" URL: http://lucumr.pocoo.org/ | ||
" Last Change: 2008 September 12 | ||
" Version: 0.6.1 | ||
" Last Change: 2013-05-01 | ||
" Version: 0.6.1+ | ||
" | ||
" Thanks to Brine Rue <[email protected]> who noticed a bug in the | ||
" delimiter handling. | ||
|
@@ -27,6 +27,9 @@ endif | |
ru! syntax/html.vim | ||
unlet b:current_syntax | ||
|
||
" tell html.vim what syntax groups should take precedence (see :help html.vim) | ||
syn cluster htmlPreproc add=makoLine,makoVariable,makoTag,makoDocComment,makoDefEnd,makoText,makoDelim,makoEnd,makoComment,makoEscape | ||
|
||
"Put the python syntax file in @pythonTop | ||
syn include @pythonTop syntax/python.vim | ||
|
||
|
@@ -54,8 +57,8 @@ syn region makoAttributeValue containedin=makoTag contained start=/"/ skip=/\\"/ | |
syn region makoAttributeValue containedin=MakoTag contained start=/'/ skip=/\\'/ end=/'/ | ||
|
||
" Tags | ||
syn region makoTag matchgroup=makoDelim start="<%\(def\|call\|page\|include\|namespace\|inherit\|block\)\>" end="/\?>" | ||
syn match makoDelim "</%\(def\|call\|namespace\|block\)>" | ||
syn region makoTag matchgroup=makoDelim start="<%\(def\|call\|page\|include\|namespace\|inherit\|block\|[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*\)\>" end="/\?>" | ||
syn match makoDelim "</%\(def\|call\|namespace\|block\|[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*\)>" | ||
|
||
" Newline Escapes | ||
syn match makoEscape /\\$/ | ||
|
@@ -83,4 +86,4 @@ if version >= 508 || !exists("did_mako_syn_inits") | |
delc HiLink | ||
endif | ||
|
||
let b:current_syntax = "eruby" | ||
let b:current_syntax = "html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Contributors # | ||
|
||
SnipMate was originally authored by Michael Sanders | ||
([Vim](http://www.vim.org/account/profile.php?user_id=16544), | ||
[GitHub](https://github.com/msanders)). | ||
|
||
It is currently maintained by [Rok Garbas]([email protected]), [Marc | ||
Weber]([email protected]), and [Adnan Zafar](https://github.com/ajzafar) with | ||
additional contributions from: | ||
|
||
* [alderz](https://github.com/alderz) | ||
* [asymmetric](https://github.com/asymmetric) | ||
* [darkwise](https://github.com/darkwise) | ||
* [henrik](https://github.com/henrik) | ||
* [holizz](https://github.com/holizz) | ||
* [honza](https://github.com/honza) | ||
* [hpesoj](https://github.com/hpesoj) | ||
* [ironcamel](https://github.com/ironcamel) | ||
* [jb55](https://github.com/jb55) | ||
* [jbernard](https://github.com/jbernard) | ||
* [jherdman](https://github.com/jherdman) | ||
* [kozo2](https://github.com/kozo2) | ||
* [lilydjwg](https://github.com/lilydjwg) | ||
* [marutanm](https://github.com/marutanm) | ||
* [MicahElliott](https://github.com/MicahElliott) | ||
* [muffinresearch](https://github.com/muffinresearch) | ||
* [pielgrzym](https://github.com/pielgrzym) | ||
* [pose](https://github.com/pose) | ||
* [r00k](https://github.com/r00k) | ||
* [radicalbit](https://github.com/radicalbit) | ||
* [redpill](https://github.com/redpill) | ||
* [robhudson](https://github.com/robhudson) | ||
* [sickill](https://github.com/sickill) | ||
* [statik](https://github.com/statik) | ||
* [steveno](https://github.com/steveno) | ||
* [taq](https://github.com/taq) | ||
* [thisgeek](https://github.com/thisgeek) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SnipMate # | ||
|
||
SnipMate aims to provide support for textual snippets, similar to TextMate or | ||
other Vim plugins like [UltiSnips][ultisnips]. For | ||
example, in C, typing `for<tab>` could be expanded to | ||
|
||
for (i = 0; i < count; i++) { | ||
/* code */ | ||
} | ||
|
||
with successive presses of tab jumping around the snippet. | ||
|
||
Originally authored by [Michael Sanders][msanders], SnipMate was forked in 2011 | ||
after a stagnation in development. This fork is currently maintained by [Rok | ||
Garbas][garbas], [Marc Weber][marcweber], and [Adnan Zafar][ajzafar]. | ||
|
||
|
||
## Installing SnipMate ## | ||
|
||
SnipMate depends on [vim-addon-mw-utils][mw-utils] and [tlib][tlib]. We | ||
recommend one of the following ways of installing all three. | ||
|
||
* Using [Pathogen][pathogen], run the following commands: | ||
|
||
% cd ~/.vim/bundle | ||
% git clone https://github.com/tomtom/tlib_vim.git | ||
% git clone https://github.com/MarcWeber/vim-addon-mw-utils.git | ||
% git clone https://github.com/garbas/vim-snipmate.git | ||
|
||
* Using [VAM][vam], add `vim-snippets` to the list of packages to be installed. | ||
|
||
* Using [Vundle][vundle], add the following to your `vimrc` then run | ||
`:BundleInstall` | ||
|
||
Bundle "MarcWeber/vim-addon-mw-utils" | ||
Bundle "tomtom/tlib_vim" | ||
Bundle "garbas/vim-snipmate" | ||
|
||
Lastly, since SnipMate does not ship with any snippets, we suggest looking at | ||
the [vim-snippets][vim-snippets] repository. | ||
|
||
|
||
[ultisnips]: https://github.com/sirver/ultisnips | ||
[msanders]: https://github.com/msanders | ||
[garbas]: https://github.com/garbas | ||
[marcweber]: https://github.com/marcweber | ||
[ajzafar]: https://github.com/ajzafar | ||
[mw-utils]: https://github.com/marcweber/vim-addon-mw-utils | ||
[tlib]: https://github.com/tomtom/tlib_vim | ||
[vim-snippets]: https://github.com/honza/vim-snippets | ||
[vam]: https://github.com/marcweber/vim-addon-manager | ||
[pathogen]: https://github.com/tpope/vim-pathogen | ||
[vundle]: https://github.com/gmarik/vundle |
Oops, something went wrong.