Commit Graph

1108 Commits

Author SHA1 Message Date
Holger Rapp
9db85644bd updated github url in doc. 2012-12-20 21:08:38 +01:00
Holger Rapp
faa348d686 Perl improvements by Steven Humphrey 2012-12-20 20:47:35 +01:00
Steven Humphrey
fed052c80a Adjusted perl snippets for some best practices 2012-12-18 09:26:56 +00:00
Holger Rapp
86dcbf0a27 Merge pull request #41 from s0undt3ch/features/single-quotes
Support single quoting projects.
2012-12-17 02:03:10 -08:00
Holger Rapp
69c95f537d Added Pedro to the list of contributors. 2012-12-17 11:03:02 +01:00
Holger Rapp
7f920cf46e Merge pull request #42 from s0undt3ch/hotfix/pep-8
Remove un-used imports. PEP8 fixes.
2012-12-17 02:00:42 -08:00
Pedro Algarvio
bbb98007de Remove un-used imports. PEP8 fixes. 2012-12-11 12:42:11 +00:00
Pedro Algarvio
0d8c8b2363 Support single quoting projects. 2012-12-11 12:40:24 +00:00
Holger Rapp
e4274950ab Improvements to D snippets by Ferdinand Majerech 2012-12-03 07:10:14 +01:00
kiith-sa
6de6f25ddc Merge https://github.com/SirVer/ultisnips 2012-12-01 18:16:43 +01:00
kiith-sa
a236077901 A toString() snippet. 2012-12-01 18:15:01 +01:00
Holger Rapp
4c068bd008 New snippet option to strip whitespaces in front of cursor. Patch by aschrab 2012-11-27 09:54:24 +01:00
Holger Rapp
d4f4c718e8 Merge remote-tracking branch 'aschrab/trailing' into trailing 2012-11-27 09:36:48 +01:00
Holger Rapp
f81cc7a522 Fixed pythons rwprop snippet. 2012-11-25 08:14:03 +01:00
Aaron Schrab
3a4991fb32 Add option for stripping of trailing whitespace
Add "s" snippet option which, if set, will cause trailing whitespace to
be stripped from lines before jumping to the next tab stop.

When used with a snippet like the following this will allow the text
from the $1 tabstop to be removed and have the space in front of that
automatically deleted when the user jumps to $2. This will work even if
using the same key for snippet expansion and jumping to the next
tabstop, whereas if the space was manually removed the key would cause
the snippet to be expanded again.

    snippet do "do block" s
    do `!p snip.rv = "|" if t[1] else""`${1:args}`!p snip.rv = "|" if t[1] else""`
    	$2
    end
    $0
    endsnippet
2012-11-24 13:25:29 -05:00
Aaron Schrab
d4d1e86962 Make Snippet object available to SnippetInstance
When a Snippet object creates a SnippetInstance it should pass itself as
an argument, so that the instance can later get additional information
about the snippet.
2012-11-24 13:05:55 -05:00
Aaron Schrab
18b081b7fe Add has_option method to Snippet class
Encapsulate the fact that options are stored as the original string that
was pulled from the definition.  This will simplify things if that ever
needs to be changed.
2012-11-24 13:05:55 -05:00
Aaron Schrab
a6171d022b Avoid repetition in creating SnippetInstance
There's no need to use different code to create a SnippetInstance based
on whether or not there's a parent. The arguments passed either way are
the same.
2012-11-24 13:05:55 -05:00
Holger Rapp
54d917ddd4 Fixes and improvements to snipmate conversion util by Steve McKinney 2012-11-24 10:32:00 +01:00
Holger Rapp
b56e8991c7 Syntaxhighlighting for clearsnippets by Aaron Schrab 2012-11-24 10:12:36 +01:00
kiith-sa
59abbd6c96 Fixed the Par: snippet. 2012-11-15 23:57:35 +01:00
kiith-sa
fcb4ea1a2f Fixed a typo. 2012-11-11 01:42:46 +01:00
kiith-sa
a451f2fe99 Synchronized with source branch 2012-11-10 18:50:26 +01:00
kiith-sa
2a432a8db8 Added a "union" snippet. 2012-11-10 18:29:33 +01:00
Holger Rapp
09ba802800 Merge remote-tracking branch 'osse/master' 2012-11-08 19:26:44 +01:00
Øystein Walle
a599a6ee6a Add Øystein Walle to contributors list 2012-11-08 07:40:18 +01:00
Øystein Walle
d4b03a8195 Add comments to shell detection functions 2012-11-06 17:21:31 +01:00
kiith-sa
75f69ac34f catch snippet fix, assert snippet improvement. 2012-11-04 14:03:02 +01:00
Øystein Walle
5eeef2c4d8 Change snippets to use getShell() 2012-11-03 17:13:22 +01:00
Øystein Walle
630b74872b Add test to determine shell
The 'sh' filetype in Vim covers sh, bash and ksh. This function looks
for declared variables that results from Vim's own test. The global
variables are checked first since they are typically specifed by the
user in .vimrc
2012-11-03 17:12:50 +01:00
Øystein Walle
5f1f8d6700 Add snippets for zsh
zsh is a seperate filetype from sh in Vim. This uses the sh snippets
while changing the shebang-related snippets.
2012-11-03 15:48:27 +01:00
kiith-sa
b83eee6068 Fixed bugs in "catch" and "fdoc" snippets. 2012-11-02 18:40:53 +01:00
Holger Rapp
39f9d77fe3 Improvements to C snippets by Vivien Didelot 2012-11-02 12:46:19 +01:00
Holger Rapp
890e1b6bd5 Bug fixes for D snippets. 2012-11-02 12:20:50 +01:00
kiith-sa
a004ad3dd0 Fixed two minor bugs. 2012-11-01 20:37:58 +01:00
Holger Rapp
629ff849ec New D-snippets from Ferdinand Majerech 2012-11-01 18:34:42 +01:00
kiith-sa
80a60bf818 Added snippets for the D programming language. 2012-11-01 16:57:16 +01:00
Holger Rapp
30fac27e9d Improved documentation a bit. 2012-10-25 07:18:27 +02:00
Holger Rapp
da776e37b5 Updated the installation doc correctly this time. 2012-10-23 19:14:00 +02:00
Holger Rapp
57e08fbe87 Updated installation documentation 2012-10-17 10:13:34 +02:00
Holger Rapp
27cae38529 DEL and c-h now behave as BS in select mode. Patch partly by buztard 2012-10-14 11:41:22 +02:00
Holger Rapp
4d642ddee3 ife snippet for C by theocrite 2012-10-13 12:11:50 +02:00
Holger Rapp
ed941fb59a Removed content tag from html snippets. 2012-10-08 09:10:19 +02:00
Holger Rapp
1690986d23 Indicate success or failure of expansions and jumps
Patch by Jorge Rodrigues.
2012-09-06 19:38:41 +02:00
Holger Rapp
5fe09b8e3a Improved the div snippet in html a bit 2012-09-03 19:29:04 +02:00
Holger Rapp
bb75169301 Updated ChangeLog 2012-09-01 20:13:56 +02:00
Holger Rapp
3fc86a36a8 Fix for folding problem by Aaron 2012-08-22 11:55:31 +02:00
Holger Rapp
e283500a24 Patch by Aaron: optionally disable warning for no Python 2012-08-21 12:51:16 +02:00
Holger Rapp
a916c607b5 Matchit support + small fix by Aaron 2012-08-21 12:48:06 +02:00
Aaron Schrab
5f6d281687 Matchit support for snippet files
If the matchit (http://www.vim.org/scripts/script.php?script_id=39)
plugin is loaded, define pairs to be handled by the % key.
2012-08-21 12:47:20 +02:00