Commit Graph

287 Commits

Author SHA1 Message Date
Stanislav Seletskiy
81a628c6ea Add option 'm' for trimming whitespaces in snippet
Fix #391
2015-02-04 11:55:28 +06:00
Stanislav Seletskiy
b47e686521 do not walk &rtp if abs path to snips specified 2015-01-21 17:57:33 +06:00
Holger Rapp
e1436a8aeb Accept numbers and text for disabling snipMate. 2015-01-15 08:17:37 +01:00
Holger Rapp
d240aa24df Added Pyrohh to the list of contributors. 2015-01-04 22:23:24 +01:00
Holger Rapp
7df82bbe53 Merge pull request #415 from seletskiy/toggle-snipmate
add g:UltiSnipsEnableSnipMate
2014-12-20 18:39:50 +01:00
Stanislav Seletskiy
fc080b4fd5 add g:UltiSnipsEnableSnipMate 2014-12-18 12:05:52 +06:00
Joe Lencioni
bbb07646a3 Fix typo "endglobals" in documentation
I was working on some snippets and looking at the documentation and
noticed a typo. "endglobals" should be "endglobal".
2014-12-02 09:39:50 -08:00
Tim Hofmann
185f96c4db Fix list of trigger functions in documentation 2014-11-30 16:20:18 -05:00
ibabarovic
d9691a9125 Added a terminal emulator warning line for using c-tab combo with usnips 2014-11-24 17:32:10 +01:00
Holger Rapp
1ad970379e Support for sw=0 in newer Vim versions. 2014-10-11 15:23:34 +02:00
Glenn Griffin
e3abd6678f Added test case for shiftwidth=0 and added myself to contributors list. 2014-10-08 10:30:40 -07:00
Daniel Hahler
14e5b4638b doc: add tags for trigger vars 2014-10-08 15:08:33 +02:00
petobens
2c3c4a7776 Add 'context' value to g:UltiSnipsEditSplit 2014-08-28 09:34:33 -03:00
Holger Rapp
279d6e63c9 Updates the doc for the new clearsnippets behavior. Slight rewording by me. 2014-08-02 14:59:42 +02:00
cwahbong
a9aa8c76a7 Update document for priority based clearsnippets. 2014-08-01 11:33:04 +08:00
Holger Rapp
9521b942b0 Merge pull request #340 from cwahbong/test-fix
Never rely on waiting for Vim to finish something, instead make it write a file.
2014-07-23 06:55:17 +02:00
cwahbong
0872600b9e Ahbong is contributer now. 2014-07-22 15:28:02 +08:00
Charles Ross
2d8ae2fcd9 Correct misspelling 2014-07-20 09:05:30 -07:00
Holger Rapp
d1f6f7ed81 Better syntax file. 2014-07-02 07:27:29 +02:00
Holger Rapp
e59a60cbea Fixed docu for clearsnippets. 2014-05-31 12:16:03 +02:00
Holger Rapp
f2d9e8b608 Support for selection=old. 2014-05-03 10:42:23 +02:00
skeept
fb58034b1a Re-add > before code. 2014-04-17 21:13:29 +00:00
skeept
98289510ca Update UltiSnips.txt 2014-04-15 14:20:31 +00:00
Holger Rapp
04ef0f8f5c Merged unite source by Skeept. 2014-04-15 08:19:23 +02:00
Andrew Ruder
cae27fba5c Ensure that _vim_{dec,enc} always succeeds on py3
In py2 we could get by with attempting to encode/decode a string and if
it failed just ignore and return.  Unfortunately on py3 a string decodes
to a bytearray and a bytearray encodes to a string.  We can't simply
return the original object when we fail.  We choose replace for handling
bytes we don't understand.

Test case (using python3 for UltiSnips):
open a new file
:set encoding=utf-8
qa<Backspace>q
"ap

Warning: this test case makes it very difficult to exit vim cleanly and
save files!

Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2014-04-10 08:06:56 -05:00
Holger Rapp
a3e654fc54 _vimfiles -> vimfiles. Patch b Oberon. 2014-04-06 16:33:02 +02:00
Helder Jorge Rodrigues Inacio
7bee824db2 use function to invoqe unite 2014-04-03 00:00:34 -04:00
Helder Jorge Rodrigues Inacio
cc15145429 add unite source 2014-03-31 21:44:31 -04:00
Holger Rapp
5116001246 Documentation fixes. 2014-03-23 09:54:41 +01:00
Ches Martin
fee999a71f Docs: remove a reference to defunct ! snippet option
Removed in c1b41d0fbf for priority system.
2014-03-23 15:36:14 +07:00
Holger Rapp
764fd65a78 Added a nice interactive demo. 2014-03-12 08:12:47 +01:00
Holger Rapp
001c2a9673 Added realname of petobens. 2014-03-08 09:09:21 +01:00
Holger Rapp
6398a598b5 Made UltiSnipsEdit more useful and consistent.
It now by default only edits private files, add a ! if you want to edit
non private files.
2014-03-06 09:10:48 +01:00
Holger Rapp
f446409230 Mention neocomplete in the docs. 2014-03-06 07:07:49 +01:00
Holger Rapp
ba2f30fdf9 Adapted neosnippets source. Examples by petobens. 2014-03-06 06:47:55 +01:00
Holger Rapp
147df653ae Snippet sources can now be registered.
It was not clearly supported though possible before. Now there is a
tested and documented API.
2014-03-05 19:02:30 +01:00
Holger Rapp
c017806b1d Added preliminary support for neocomplete.
Patch by lervag. Closes #228
2014-03-05 08:14:53 +01:00
Holger Rapp
7b51ec6f6b Removed snippet contributors from README. 2014-03-04 17:54:30 +01:00
Holger Rapp
c4fa2c03bd Barf when using "snipmate" for UltiSnips.
Fixes #224
2014-02-26 20:40:01 +01:00
Holger Rapp
c9681051ce Small fixes to the documentation. 2014-02-26 08:23:01 +01:00
Holger Rapp
fe7cb4cf8d Makes UltiSnips a drop in replacement for snipMate.
This includes massive refactorings and lots of new features.
2014-02-25 22:51:45 +01:00
Holger Rapp
fe2ab12c39 Removes UltiSnipsDontReverseSearchPath. 2014-02-19 21:22:01 +01:00
Holger Rapp
c1b41d0fbf Adds 'priority' keyword and removes '!' option. 2014-02-19 21:04:52 +01:00
Holger Rapp
e7868dd4fb Removed undocumented and untested g:UltiSnipsClearJumpTrigger. 2014-02-16 14:02:06 +01:00
Holger Rapp
d066fbd095 Small fixes to documentation. 2014-02-16 13:54:31 +01:00
Holger Rapp
333f689762 Project is now hosted on github.
Removes all references to launchpad from the docs.
2014-02-15 13:16:12 +01:00
Holger Rapp
991609e461 Do not pass filename to UltiSnips#AddSnippet. 2014-02-15 09:37:40 +01:00
Holger Rapp
2eb82d127b Moving towards Snippet providers.
Removed parsing responsibilities from SnippetManager and instead put
them into the new module providers. Renamed private methods on
SnippetManager that are not meant to be called by external libraries to
start with _. Refactored tests so that expected failures can be tested
and therefore removed the testing flag from SnippetManager.
2014-02-15 00:54:04 +01:00
Holger Rapp
82ca377aaf Moved the core of the plugin into autoload. This will not really impact loading times because UltiSnips is loaded on the first CursorMovedI command anyways, but it might fix some issues with --noplugin. 2014-02-11 07:56:56 +01:00
Holger Rapp
4005608bab Follow the Vim 7.4 convention where to place python files. 2014-02-07 10:38:44 +01:00
Holger Rapp
16c46616ad Be when to map Forward and Backwards Trigger
Only map Forward and Backwards jumping trigger while inside a snippet.
Patch by Marcelo D Montu (mMontu) with fixes by me.
2014-02-05 19:19:16 +01:00
Holger Rapp
2cdaac1b1c Merge branch 'master' into mMontu-master 2014-02-05 17:21:33 +01:00
Holger Rapp
4adc048c16 Try hard to retain the unnamed register. Patch by Gernot Höflechner - LFDM. 2014-02-03 18:14:27 +01:00
Maarten Slagter
2fca23830b Added bunch of snippets to tex.snippets 2014-01-25 10:41:03 +01:00
Holger Rapp
f596d98065 Pulled from master. 2014-01-04 07:42:15 +01:00
Holger Rapp
8622753d3b Pulled from saikobee's branch. 2014-01-04 07:30:01 +01:00
Holger Rapp
203d39bc88 Added taketwo to the list of contributors. 2013-12-30 22:37:17 +01:00
Brian Mock
bc391a330d Fixed contributors list; saner plugin dir checking. 2013-12-27 10:21:51 -08:00
Brian Mock
e9c00a746b More style cleanup; added docstrings 2013-12-25 10:47:48 -08:00
Brian Mock
9695633b21 Cleaned up code; updated docs. 2013-12-24 11:34:06 -08:00
guns
7cd4434a99 Evaluate word boundaries with Vim, not r'\b'
Certain non ALGOL-derived languages (notably LISP derivatives) do not
share the alphanumeric + underscore definition of a word character.

Fortunately, each language FileType has its own definition of a word
character, which Vim's regex engine uses when matching against the
boundary classes \< and \>.

We change the word matching routine of 'w' snippets to use Vim's regex
engine instead of a static pattern.
2013-12-23 16:34:45 -06:00
mMontu
ecb7dfdf64 Change default value/check, fix for nested snippets 2013-11-10 21:15:24 -02:00
Holger Rapp
331eae1529 Feature: a option for converting into ASCII before transforming. Patch by rgiot. 2013-10-23 08:16:59 +02:00
Holger Rapp
ef2c657721 Merge branch 'master' of git://github.com/rgiot/ultisnips into rgiot-master 2013-10-21 06:30:38 +02:00
Romain Giot
9e813c7f3e Improve the documentation 2013-10-19 15:26:44 +02:00
Holger Rapp
0b8c95645f Improvements to the docs by fehlerfix. 2013-10-18 11:43:10 +02:00
Romain Giot
2bf3d10884 Add a documentation to the 'a' flag 2013-10-07 09:48:34 +02:00
mMontu
a32473a5d4 Option for JumpTrigger only during snippet expansion 2013-10-05 13:19:20 -03:00
Holger Rapp
ced4f76db8 There are more than two functions now. 2013-09-10 06:29:02 +02:00
Holger Rapp
cd83608df3 Pass <s-tab> through to supertab. 2013-07-16 07:05:42 +02:00
Holger Rapp
3b2eb436b7 Buffer local overwrite for snippet directory. Patch by jszakmeister. 2013-06-19 08:00:52 +02:00
Holger Rapp
5d6f72949d Added UltiSnips_SnippetsInCurrentScope(). Patch by Jorge (skeept) 2013-06-10 18:27:48 +02:00
Holger Rapp
b272949b51 Improvements to the puppet snippets by Nikola Petrov. 2013-05-17 06:57:22 +02:00
Holger Rapp
064dfac638 Fold markers snippets in all.snippets. Patch by Von Welch. 2013-05-17 06:43:46 +02:00
Holger Rapp
015c78cba2 ipdb snippet. 2013-04-24 07:05:16 +02:00
Holger Rapp
3479a918bd Puppet style fixes by JHaals 2013-04-22 19:45:54 +02:00
Holger Rapp
4cc1996f6c Improvements to the tex snippets by rene vergara. 2013-04-22 07:22:38 +02:00
Holger Rapp
61291ecd83 Completion for UltiSnipsEdit. Patch by Zhao Cai. 2013-04-21 17:18:14 +02:00
Holger Rapp
40af7c8480 Fixes to eruby snippets by jinzhu. 2013-04-17 06:52:50 +02:00
Holger Rapp
2049a50c35 if, ife and ifee snippets for python by Josh Strater. 2013-04-17 06:50:40 +02:00
Holger Rapp
997294adc5 Small fixes and new c-sharp (cs) snippets by Matthew Strawbridge. 2013-04-15 07:19:07 +02:00
Holger Rapp
9333a5112b Enhancements to shell code intepolation: Try hard to find a directory where we actually can execute something. Patch by Keith Welch. 2013-04-12 06:55:37 +02:00
Holger Rapp
969b3a0164 Fixes to puppet snippets by javipolo. 2013-04-12 06:45:29 +02:00
Holger Rapp
c9bd9e96ee Fixed * -> |. 2013-04-01 16:20:24 +02:00
Holger Rapp
79b4baa3ac Added a section about other plugins UltiSnips plays well with and linked to Stanislav's work. 2013-03-25 09:07:49 +01:00
Holger Rapp
68361f3ca3 OCaml snippets by Rudi Grinberg. 2013-03-25 08:58:55 +01:00
Holger Rapp
7b41b188f1 Improvements to Javascript snippets by Vangelis Tsoumenis 2013-03-21 11:54:20 +01:00
Holger Rapp
7320873e04 Improvements to xml snippets by jhradilek 2013-03-21 11:35:31 +01:00
Holger Rapp
584bee0ab1 Improvements to the syntax file. 2013-03-21 11:32:17 +01:00
Holger Rapp
f698f33811 C snippet improvements by melko. 2013-02-21 09:17:11 +01:00
Holger Rapp
7cbf73e729 Improvements to the box snippet by Sergey Alexandrov 2013-02-21 09:15:11 +01:00
Melko
adcc2f79dd Add contributor name. 2013-02-20 11:24:40 +01:00
Holger Rapp
7be6694232 Improvements to c.snippets by melko. 2013-02-20 09:45:37 +01:00
Holger Rapp
831b3460ca Easy access to UltiSnips python modules. Patch by Stanislav Golovanov. 2013-02-18 20:41:54 +01:00
Stanislav Golovanov
1269fd26e4 add python module path to global variable 2013-02-08 21:57:29 +04:00
Holger Rapp
5abca2654c Correct commentstring for snippet files by Mike Morearty 2013-01-27 17:38:49 +01:00
Holger Rapp
f0e4d061d8 Improvements to JS snippets by tom cammann 2013-01-27 17:35:04 +01:00
Holger Rapp
d4bda4f95f Improvements to the js snippets by Harry Xu. 2013-01-25 08:27:41 +01:00
Holger Rapp
d8b60f2f05 Improvements to c and cpp snippets by David Brown. 2013-01-24 07:28:32 +01:00
Holger Rapp
eb2fbfa74f Merged doc updates by Matt Patterson and added him to the list of contributors. 2013-01-22 07:03:06 +01:00