Commit Graph

222 Commits

Author SHA1 Message Date
Christian
bb35409199 Fix and improve rst_char_len
The previously used regex was plainly wrong (see #394). This solution should be more solid.
2014-07-03 12:52:40 +02:00
Jan Mollowitz
f11ec0bf18 Added basic class with namespace snippet. 2014-07-01 21:47:05 +02:00
zauguin
753e0ae39d Added ${VISUAL} to C once snippet 2014-06-30 06:46:10 +02:00
Felix Jung
4a63c78bd1 Added b option, removed todo snippet. 2014-06-25 11:01:10 +02:00
Felix Jung
db3a57e104 Initial commit
Adds snippets for function and type documentation, as used by the
DataArrays package for Julia.

Adds TODO snippet.
2014-06-23 13:48:32 +02:00
opennota
6acd456aae Add fori snippet for Go 2014-06-15 10:01:27 +07:00
emzap79
b76fe5e8ef add cleaned-up snippets for R 2014-06-09 10:47:43 +02:00
Piotr Jawniak
b0733edacc One new snippet and one small fix for Rust 2014-06-01 12:39:50 +02:00
Holger Rapp
c3db5beee9 Merge pull request #372 from Sawyer47/rust-snippets
Rust: new snippets and cleanup.
2014-05-31 15:51:40 +02:00
Piotr Jawniak
c80c281219 New snippets and cleanup for Rust 2014-05-31 14:35:25 +02:00
rsw0x
0100f9c7ea Fixed final switch in the UltiSnippets snippet 2014-05-28 06:48:18 -04:00
Holger Rapp
4ed409154b Merge pull request #360 from lucc/descriptions
tex,vim: add snippet descriptions
2014-05-12 05:23:07 -07:00
Josh Wainwright
7adbe2eed7 Merge branch 'master' of https://github.com/honza/vim-snippets 2014-05-08 08:59:34 +01:00
Josh Wainwright
0326b5ba97 Use more readable format for snippets including ending semi-colon. 2014-05-08 08:48:09 +01:00
Josh Wainwright
3cb138312f Removed implicit $0 at end of snippent 2014-05-08 08:47:05 +01:00
Josh Wainwright
33830aea0c Added couple of $0 anchors where missing. 2014-05-07 22:46:43 +01:00
Josh Wainwright
2438821340 Added semi-colons to end of lines where missing. 2014-05-07 22:45:53 +01:00
Gilad Peleg
e7f047b666 Update javascript.snippets 2014-05-07 15:10:33 +03:00
Gilad Peleg
98b1b48d92 add b flag and edit placeholder 2014-05-07 15:09:41 +03:00
Gilad Peleg
d0d1e59ad0 Add useful javascript snippets 2014-05-07 10:19:01 +03:00
Lucas Hoffmann
2672bde2fb add snippet options to some snippets 2014-05-06 14:55:24 +02:00
Lucas Hoffmann
27c2c2ba7b add quotation marks 2014-05-06 14:52:35 +02:00
Lucas Hoffmann
85004a6c60 add snippet descriptions 2014-05-06 14:50:22 +02:00
Lucas Hoffmann
7011d0f9d5 remove some duplicates
Remove some snippets from the Ultisnips/ directory which are present in the
snippets/ directory.
2014-05-06 11:33:41 +02:00
Felix Jung
0561ba640a Fixed sapply snippet 2014-04-30 10:14:30 +02:00
tinyladi
1d5adc300f add priority and inword option 2014-04-28 14:40:10 +02:00
tinyladi
a34551bdd9 add codeblock and inline code snippets to markdown.snippets 2014-04-28 13:39:08 +02:00
tinyladi
8fe86059fb create pandoc.snippets & extend markdown.snippets 2014-04-28 13:38:45 +02:00
r4d2
5edbfec786 Fix syntax in R for loop 2014-04-24 21:14:31 -04:00
Ryan Pineo
b1af469ff7 Rename angular config. Add angular controller. 2014-04-21 14:13:00 -04:00
Ryan Pineo
ec973080f4 Add angular snippets.
Add two jasmine snippets for use with angular that prepoulate the
"it" and "before" functions with "inject".  Add an angular config
snippet.
2014-04-21 14:07:28 -04:00
David C. Bishop
7b5d7de5e9 Remove /* code */ placeholders from c, cpp and d. 2014-04-18 18:10:50 +10:00
David C. Bishop
28fc19552f Add b option to rust snippets. 2014-04-18 18:08:13 +10:00
David C. Bishop
7af4b8f424 Remove /* code */ placeholders in rust.snippets. 2014-04-18 18:04:17 +10:00
David C. Bishop
dba38fc382 Add 'priority -50' to rust.snippets. 2014-04-18 18:02:36 +10:00
Holger Rapp
44d6f6a91d Merge pull request #344 from dbarnett/soy
Soy: Add snippets for soy filetype (a.k.a. closure templates)
2014-04-17 21:52:43 +02:00
David Barnett
f770dab87d Add "priority -50" to UltiSnips/soy.snippets 2014-04-16 09:03:41 -07:00
Holger Rapp
00231357c8 Remove placeholder text in proto snippets. 2014-04-16 08:19:50 +02:00
David Barnett
0b8a04fee0 Add snippets for soy filetype (a.k.a. closure templates) 2014-04-14 20:57:59 -07:00
David Barnett
cf39d41acc rm unnecessary empty lines 2014-04-13 22:58:20 -07:00
David Barnett
3f3b2d561c Add tabstop for message body 2014-04-13 09:17:57 -07:00
David Barnett
e3c6399f8c Add type completions 2014-04-13 09:11:58 -07:00
David Barnett
280f775ab3 Merge branch 'master' of https://github.com/honza/vim-snippets into proto 2014-04-13 08:52:27 -07:00
Holger Rapp
4b9f18c531 Add a common pythonx directory containing helper methods for snippets. 2014-04-13 10:24:56 +02:00
David Barnett
76a4d7eae9 Add message and field snippets for proto filetype 2014-04-11 21:49:14 -07:00
Gilad Peleg
039a1c0801 update meta charset in html 2014-04-10 12:13:17 +03:00
David C. Bishop
513fad93b1 Add rust.snippets 2014-04-09 00:18:29 +10:00
Holger Rapp
0d64ef6eb6 Merge pull request #333 from jdavis/r
R: fix snippets syntax error
2014-04-01 07:42:07 +02:00
Josh Davis
653a814dea Fix snippets syntax error 2014-03-31 23:59:21 -05:00
Holger Rapp
0bcf724e04 Merge pull request #332 from jdavis/r
New R and Rnoweb snippets
2014-04-01 06:18:28 +02:00
Josh Davis
8c7bb5d4aa Remove trigger from the end of the description 2014-03-31 21:11:47 -05:00
Josh Davis
6b5d7d3377 Remove duplicate snippet 2014-03-30 15:32:13 -05:00
Josh Davis
d1f23164d5 Add a few more snippets, fix errors as per #332
Hopefully this looks better, @SirVer!
2014-03-30 11:39:03 -05:00
Josh Davis
bd8ef3d110 Tidy up some parts of r.snippets 2014-03-30 01:04:00 -05:00
Ryan Pineo
87ea532f41 Bug fix for java case coercion helpers.
If an empty tab stop was used with either of the java case coercion
helper functions then they would blow up.  Fixed by returning an empty
string if the word passed to them is falsey.
2014-03-29 20:39:14 -04:00
Josh Davis
55887f0db4 Add R snippets to Rnoweb 2014-03-29 16:52:21 -05:00
Josh Davis
53f8dd5a7a Add in r.snippets file
I converted these over from the snipMate r.snippets in the snippets/ directory and removed some ones.
2014-03-29 16:46:23 -05:00
Josh Davis
77bc9bdf80 Add support for rnoweb filetype
Rnoweb is a filetype that combines LaTeX and R. It's used by systems like Sweave and Knitr.
2014-03-29 16:28:00 -05:00
Ryan Pineo
e5f3d6bdf5 Change java set/get snippets to use mixedCase.
The java setter and getter snippets were incorrectly formatting the
set/get name as all lowercase.  It should be mixed case, as per java's
coding standard.

A new function was made (mixedCase) to handle that.
2014-03-28 15:32:39 -04:00
Ryan Pineo
ad8883ddca Fix java setter method param case, remove return.
The paramater was keeping the case of the setter name.  It should
have been lowercased.  The other uses of the paramter were already
lowercased correctly.

There should also not be a return statement in a void method.
2014-03-28 12:11:46 -04:00
Ryan Pineo
1d41c715e2 Allow java else/elif to be expanded mid line. 2014-03-26 15:39:47 -04:00
gfixler
16630a5c8e Fix spelling throughout UltiSnips/python.snippets 2014-03-22 22:33:17 -07:00
Ryan Pineo
391d4fea47 Add python google style docstrings. 2014-03-22 15:03:16 -04:00
Jorge López Pérez
db3b240783 Fix PHP getter and setter UltiSnips snippet
Was broken due to complex regular expressions applied to $1,
which made UltiSnips to complain about not knowing it.

Simplified the snippet using the already working getter and setter snippets.
2014-03-19 14:43:08 +01:00
Holger Rapp
929aceebb7 Adjusted priority again. 2014-03-05 06:44:16 +01:00
Sebastian Röder
215c5674fb Add back closing curly braces for puppet type snippets
This braces got lost when #70 was merged
2014-03-04 18:27:38 +01:00
Holger Rapp
b327c8a8b7 Remove credit line as requested. 2014-03-04 17:47:04 +01:00
Holger Rapp
39fe0b562b Adjusted priority. 2014-03-04 17:46:35 +01:00
Holger Rapp
59dcc2b72d Brings current UltiSnips snippets into the repository. 2014-03-04 09:17:27 +01:00
René
5063a02b50 Remove space at end of \section 2014-02-17 10:37:44 +01:00
yuhuanbo
3a5001d0d3 fix twig css 2013-12-26 21:31:44 +08:00
yuhuanbo
218eb0adb9 add twig snippets 2013-12-14 20:34:50 +08:00
Filipe Giusti
f4d4005393 Create '=' and '%' UltiSnips format shortcuts for eruby files
That matches the snippets for snipmate
2013-11-25 18:52:33 -02:00
yuhuanbo
fe4c59fa2d [php] [symfony] some bugfix and improve
symfony snippet `ent` now support abstract class
2013-09-25 21:15:35 +08:00
yuhuanbo
3218737414 table name auto add underscore if entity name consists of more than two word 2013-09-11 19:39:10 +08:00
yuhuanbo
2a0cd591e7 add symfony2 form snip 2013-09-08 14:56:16 +08:00
Honza Pokorny
2ab7f91dc4 Merge pull request #272 from chrisyue/master
add symfony2 doctrine entity template
2013-08-31 11:11:52 -07:00
yuhuanbo
5386637570 add symfony2 doctrine entity template 2013-08-31 12:55:47 +08:00
Honza Pokorny
b410c9e3c4 Merge pull request #269 from chrisyue/master
add phpunit snippets
2013-08-26 13:21:15 -07:00
Martxel Lasa
5d4cad3316 Fix html5 snippet indentation and meta tag. 2013-08-26 19:43:20 +02:00
yuhuanbo
702844eb2b add phpunit snippets 2013-08-26 21:16:33 +08:00
yuhuanbo
2f9163ddb5 add symfony2 DataTransformer and EventSubscriber 2013-08-23 14:00:21 +08:00
yuhuanbo
1eb75e363e nc support trait 2013-08-21 11:29:40 +08:00
yuhuanbo
786f9a66fa snip nc auto detect Abstract and Interface 2013-08-19 12:00:07 +08:00
Jorge García
89c6f17ee9 Added Ember.js snippets 2013-08-13 23:51:47 -07:00
Honza Pokorny
9143c65495 Merge pull request #258 from zph/master
Converted snipmate elixir snippets into ultisnip
2013-08-08 06:53:00 -07:00
Marc Weber
8024cfcecd while -> wh, see #230 and README.md 2013-08-08 11:24:27 +02:00
Marc Weber
c0cddc9f86 ruby: count from 1, not 0 (I think its very important to think about the name)
add static_var snippet
2013-08-08 09:28:08 +02:00
ZPH
4b0712a652 Converted snipmate elixir snippets into ultisnip
Credit belongs to @iurifq for the snippets
Translation from snipmate to ultisnip format @zph
2013-08-07 21:34:23 -04:00
yuhuanbo
ea27dc4627 fixup 2013-08-02 22:16:05 +08:00
yuhuanbo
0805491b05 add symfony2 snippets 2013-08-02 22:12:34 +08:00
yuhuanbo
04a98ad387 hotfix: move cursor in var_dump call, correct the case of class name 2013-08-01 22:42:37 +08:00
yuhuanbo
fdf1e6e174 remove old php snippet which Ultisnip already include, add something new 2013-07-31 21:56:59 +08:00
Marc Weber
737508c613 UltiSnips JS: fix placeholders, remove trailing ;, they are optional 2013-07-31 01:36:35 +02:00
Marc Weber
533fe487a1 ruby snippets:
use do dov for both engines
drop #TODO comments

changing defaults is bad, but I expect ruby folks to expect do to type
do ..

doo has the advantage to get a completion popup .. but its too long to
type

The UtiSnips do snippet didn't make sense: the nested placeholder still
didn't remove the space after the "do" when deleting it - so it was
written badly. Could be fixed, by why bother?

Thus learn do and dov and be happy forever. Would Do be a better choice
(upper case chars?) Don't know. This was used by UltiSnips.

Comment on this commit if you don't like this choice.
2013-07-08 23:47:14 +02:00
Marc Weber
80697bea6f replace Filename by vim_snippets#Filename and document it
It doesn't make sense that all snippet engines have to
keep this function somewhere
2013-07-08 23:47:14 +02:00
Holger Rapp
abd64b18ce Merge pull request #225 from mengzhuo/master
Much improved rst snippets by mengzhuo.
2013-06-30 22:27:25 -07:00
Meng Zhuo
92eb5c6363 CMT update li comment 2013-06-26 13:57:08 +08:00
Meng Zhuo
9ab873b6ea A docstring
C change img/inc/fig snippet into id
U update em/st with CJK detection
2013-06-26 09:48:50 +08:00
Marc Weber
344ac6ea2c new policies for if, eif, el
What about wh(ile)?
drop some placeholder comments which don't add (enough) value to keep
for patterns used very often.
2013-06-23 02:30:26 +02:00
Meng Zhuo
8e1e176998 update fig/inc/img 2013-06-21 14:55:09 +08:00
Meng Zhuo
ab4daaf4ce change blocks into sa 2013-06-20 16:21:04 +08:00
Meng Zhuo
317dddc096 add docstring 2013-06-20 15:40:12 +08:00
Meng Zhuo
ab97140f5d get python code together 2013-06-20 11:31:41 +08:00
Meng Zhuo
6ac725a309 fix CJK lens 2013-06-20 11:29:44 +08:00
Meng Zhuo
d666cfc6a5 add usage for enumberic items 2013-06-20 10:27:05 +08:00
Meng Zhuo
382ad016d3 set a proper name to function 2013-06-20 10:15:00 +08:00
Meng Zhuo
1c80d84e9c fix Out of Code detetction indexerror 2013-06-19 18:12:12 +08:00
Meng Zhuo
d41ca9e656 add rst auto complie most common code type 2013-06-19 18:08:51 +08:00
Meng Zhuo
f2e535fd94 add emphasize 2013-06-19 17:37:01 +08:00
Meng Zhuo
af19fb1d85 update UltiSnips/rst.snippets 2013-06-19 15:35:26 +08:00
Donny Yang
ee2a486dac add newline checks to avoid leaving trailing whitespace 2013-06-10 02:08:39 +09:00
Donny Yang
beedbaa29b apply some python magic to reduce the tabstops needed 2013-06-10 00:46:27 +09:00
Donny Yang
81f8593442 inline snippets, arg-less function, new swit snippet 2013-06-08 23:45:35 +09:00
Donny Yang
f16295f3c1 It is better to have an else clause in a switch 2013-06-08 08:29:31 +09:00
Donny Yang
f216cebf54 Interpolated Code should be usable as in-word snippet 2013-06-08 08:25:02 +09:00
Donny Yang
e92b1e83f9 binding function should be usable in middle of a line 2013-06-08 08:14:52 +09:00
Marc Weber
c8783fd02f adding alternative html-minimal snippets illustrating a somewhat minimal setup which is useful to me 2013-06-06 13:44:30 +02:00
Jinzhu
17f194c204 Fix issues in eruby.snippets 2013-04-16 14:08:14 +08:00
Marc Weber
ef8fa2b97e MarcWeber's UltiSnips does no longer understand extends, drop it. See its Quickstart.txt file BUG [1] 2013-04-02 22:10:32 +02:00
Marc Weber
93a06c235a adding ocaml /xml snippets from UltiSnips 2013-04-02 22:00:55 +02:00
Marc Weber
d07009f27f Adding UltiSnips snippets, updating Readme
UltiSnips snippets are taken from UltiSnips repo.
Putting them nearby the engine seems to be the wrong thing to do.
One reason is that there are two forks now.
2013-03-17 20:13:47 +01:00