Commit Graph

1274 Commits

Author SHA1 Message Date
Honza Pokorny
a6bdf9b239 Merge pull request #416 from idbrii/add-modeline
Add vim modeline snippets
2014-08-04 03:21:07 -03:00
Holger Rapp
a93de17182 Merge pull request #415 from joshaw/master
java: Add VISUAL to several snippets
2014-08-02 11:07:39 +02:00
pydave
2f20b96a50 Add vim modeline snippets
Add an 'all' and a 'help' snippet for vim modelines.

The 'all' snippet implements the advice in tabstop's docs about setting
softtabstop when using noexpandtab what other variables (expandtab,
shiftwidth, and tabstop) to set. It sets these variables to their
current values.

Vim supports two forms of modelines, but only the second (that includes
the 'set') works in languages with comment terminators (/* like C */).

The 'help' snippet uses exactly what vim help files use (including the
leading space -- I expect users will insert the modeline at the start of
a line).

Does some unnecessary interpolation ('set' and 'vim') to prevent vim
from interpreting the snippet definition as a modeline for the snippets
file.
2014-08-01 09:31:13 -07:00
Josh Wainwright
437196368e Don't highlight selected text after wrapping 2014-08-01 16:26:29 +01:00
Josh Wainwright
ae1631ca09 Correct anchor 2014-08-01 15:51:04 +01:00
Josh Wainwright
a7fc95dfbe Add VISUAL to several snippets to allow wrapping selected text 2014-08-01 15:48:11 +01:00
Tobias Witt
a83775cfeb Add snippets for requirejs module definitions for coffee- and javascript
The snippet that generates a require block is called `reqjs` in order to
have no collision with the existing `req` snippet.
2014-08-01 10:08:21 +02:00
Honza Pokorny
6414b58211 Merge pull request #406 from jasonsjones/master
Add html comment snippet
2014-07-29 06:55:22 -03:00
Holger Rapp
bdea1dfeca Merge pull request #413 from nickjj/master
eruby: Extends html
2014-07-28 20:51:41 +02:00
Eustáquio Rangel
74ff88e25c Merge pull request #412 from majjoha/rspec-snippets
Move the RSpec snippets from rails.snippets to ruby.snippets.
2014-07-28 14:22:39 -03:00
Honza Pokorny
fa2b5cb402 Merge pull request #409 from Oberon00/add-gitignore
.gitignore pyc files.
2014-07-28 05:14:35 -03:00
Nick Janetakis
506d5a3728 Extend html in eruby 2014-07-27 19:20:29 -04:00
majjoha
0f712a1423 Move the RSpec snippets from rails.snippets to ruby.snippets. 2014-07-26 17:36:16 -04:00
Holger Rapp
23e1406784 Merge pull request #408 from Oberon00/rst-fix-python3
rst: Improve compatibility of snippets with Python 3
2014-07-26 14:42:08 +02:00
Christian Neumüller
71e770a4d9 rst: Replace xrange() by Python 3 compatible range(). 2014-07-26 13:09:34 +02:00
Holger Rapp
e47ab15aeb Merge pull request #410 from Oberon00/rst-add-visual
rst: Add $VISUAL.
2014-07-26 12:26:46 +02:00
Christian Neumüller
079710814f rst: Add $VISUAL. 2014-07-26 11:48:39 +02:00
Christian Neumüller
c5e6a6d2a7 .gitignore pyc files. 2014-07-26 11:41:27 +02:00
Christian Neumüller
5eaa61ae27 rst: Make has_cjk() Python 3 compatible.
In Python 3, iterators no longer have a next() method: it has been renamed to
__next__(). This could be worked around by using the builtin function next(),
but a simpler fix is to just use the regex' object search() method instead of
finditer().
2014-07-26 11:38:30 +02:00
Holger Rapp
84050b4b8d Merge pull request #407 from joshaw/master
Java: Make trigger for "else" inline with recommendations.
2014-07-26 11:20:22 +02:00
Josh Wainwright
2cc6493457 Make trigger for "else" inline with recommendations.
Also make it require word boundary so does not expand within a word.
2014-07-26 09:49:49 +01:00
Jason S. Jones
1a2e6e8311 Add html comment snippet 2014-07-25 21:30:28 -07:00
Holger Rapp
4cd2d9bc09 Merge pull request #404 from okcompute/master
python: Add snippets for assertIsNone and assertIsNotNone
2014-07-25 22:59:51 +02:00
Pascal
c6983fcd6a Add python test snippets for assertIsNone and assertIsNotNone 2014-07-25 10:59:07 -04:00
Eustaquio Rangel
0073abacb2 Minitest snippets 2014-07-19 11:33:29 -03:00
Eustaquio Rangel
e311671659 Revised the Rails snippets according to Ruby code styles. 2014-07-18 19:11:31 -03:00
Eustaquio Rangel
8bb5faebbc Revised the Ruby snippets to conform to Rubocop rules. 2014-07-18 10:52:57 -03:00
Eustaquio Rangel
4cdf9dbf86 Changed double quotes to single quotes.
We'll start to change this to make valid Ruby source files according to
Rubocop (https://github.com/bbatsov/rubocop). Changes here came from
https://github.com/honza/vim-snippets/pull/401, thanks for warning us, @mkroman!
2014-07-16 19:40:38 -03:00
Eustaquio Rangel
cbcc23571f Starting to split Ruby and Rails snippets 2014-07-16 19:20:00 -03:00
Holger Rapp
66189ef371 Merge pull request #403 from ravl1084/testing
ledger: Correct spacing.
2014-07-16 06:21:46 +02:00
Rene Vergara
e9c9ea0b41 Merge branch 'testing' of https://github.com/ravl1084/vim-snippets into testing
Conflicts:
	UltiSnips/ledger.snippets
2014-07-15 16:13:02 -05:00
Rene Vergara
d883a0ca82 Correct spacing for vim highlighting 2014-07-15 16:10:04 -05:00
Rene Vergara
ede995ce81 Correct spacing for vim highlighting 2014-07-15 16:02:19 -05:00
Honza Pokorny
291f349155 Merge pull request #400 from ZzAntares/patch-1
PHP Class snippet was working wrong
2014-07-07 01:01:25 -03:00
Cézar Antáres
91a31b1fba PHP Class snippet was working wrong 2014-07-06 22:22:35 -05:00
Holger Rapp
f76d9356a2 Merge pull request #397 from lucc/bug/tex/newcommand
Tex: Escape a \.
2014-07-04 17:17:27 +02:00
Lucas Hoffmann
fe949a3477 Escape backslash before tabstop. 2014-07-03 22:49:07 +02:00
Holger Rapp
0d31e68682 Merge pull request #398 from Oberon00/patch-1
rst: Fix and improve rst_char_len
2014-07-03 22:36:03 +02:00
Honza Pokorny
060fb094c8 Merge pull request #399 from kevinschaul/master
Add javascript console.debug snippet
2014-07-03 16:26:01 -03:00
Christian
3dcb2900b2 rst: Remove comment about requiring Python 2.4+.
Ultisnips needs 2.6, so this is save.
2014-07-03 20:40:09 +02:00
Kevin Schaul
6c0f3aa278 Add javascript console.debug snippet 2014-07-03 10:04:20 -04:00
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
Holger Rapp
19e30308c9 Merge pull request #396 from phux/master
php: Added basic class with namespace snippet.
2014-07-02 07:07:12 +02:00
Jan Mollowitz
f11ec0bf18 Added basic class with namespace snippet. 2014-07-01 21:47:05 +02:00
Marc Weber
43b272fd39 name/array/bar in php's fun snippet is annoying, remove them
There are anonymous functions, too: $a = function(){ .. };
2014-07-01 20:35:16 +02:00
Holger Rapp
bece421bda Merge pull request #395 from zauguin/master
C: Added ${VISUAL} to once snippet
2014-06-30 06:58:55 +02:00
zauguin
753e0ae39d Added ${VISUAL} to C once snippet 2014-06-30 06:46:10 +02:00
Holger Rapp
368acf7e27 Merge pull request #392 from feju/master
Julia: New documentation snippets
2014-06-26 06:47:06 +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