Holger Rapp
eff62c336a
Be more correct about encoding/decoding strings under py3. Patch by aeruder.
2014-04-11 19:51:36 +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
15f39c0801
Do not barf more than once when python is not found. Patch by blueyed.
2014-04-10 07:44:48 +02:00
Daniel Hahler
210304884a
Define all/other dummy functions used in autocommands
2014-04-09 19:32:26 +02:00
Daniel Hahler
7da9dbe2af
Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled
2014-04-09 19:31:00 +02:00
Daniel Hahler
3208654c4e
Do not map keys if 'g:_uspy' could not be set
2014-04-09 19:30:00 +02:00
Daniel Hahler
c57c717e33
Delete autocommands when Bootstrap failed
...
When bootstrapping fails to setup `g:_uspy` (e.g. without Python),
the functions used in the autocommands are not being defined.
Since it makes no sense to have autocommands defined for UltiSnips in this
case, this patch deletes them (via a new augroup 'UltiSnips').
2014-04-09 19:04:30 +02:00
Daniel Hahler
2ad6ad4493
Fix E168: :finish used outside of a sourced file
2014-04-09 19:04:08 +02:00
Holger Rapp
a3e654fc54
_vimfiles -> vimfiles. Patch b Oberon.
2014-04-06 16:33:02 +02:00
Holger Rapp
b6d545ecdf
Properly escape locations on windows.
2014-03-30 11:13:34 +02:00
skeept
ae70ec8956
Escape correctly file names in windows.
...
In windows when expanding snippets the names of the snippet files look weird because \ is not escaped properly.
Also I think there should be an option to show only part of the file name, say the path relative to ~/.vim, because this way most of the screen is taken with the paths of the file.
Going even further I think it would it look nicer if you had some kind of alignment for the string. Say "%2i: %-15s (%s)".
Of course this last suggestion might not be consensual, but maybe a option might be offered to the user.
2014-03-30 05:57:44 +00:00
Holger Rapp
4b4ee48858
Overwrite all snippets with lower priority on expansion.
...
Fixes #233 .
2014-03-23 17:30:44 +01: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
360f58dbf6
Show where snippets are defined in selection.
...
Fixes #184 .
2014-03-22 20:20:56 +01:00
Holger Rapp
7c34a3400b
Escape \ when asking for snippets.
...
Fixes #176 .
2014-03-22 19:53:01 +01:00
Holger Rapp
cd99bdd3b3
selection=old cannot work with UltiSnips.
...
Kind of fixes #173 .
2014-03-22 19:47:59 +01:00
Holger Rapp
69e0acd58a
Change the way placeholders are selected.
...
Fixes #157 .
2014-03-22 16:43:57 +01:00
Holger Rapp
5aaeae5e85
Do not delete child that is already gone.
...
Fixes #154
2014-03-22 11:28:44 +01:00
Holger Rapp
1b21741a2d
Update ChangeLog.
2014-03-22 11:06:24 +01:00
Holger Rapp
f40c3ac5e0
Made UltiSnipsEdit! more consistent with multiple filetypes.
2014-03-15 15:55:03 +01:00
Holger Rapp
5ac0436694
Retry unmapping when we switched buffers.
...
Fixes #229 .
2014-03-14 20:35:14 +01:00
Holger Rapp
b0a3266a61
More tweaking.
2014-03-12 08:23:22 +01:00
Holger Rapp
940f4d9f27
tweaked readme
2014-03-12 08:22:58 +01:00
Holger Rapp
5fe88fdc94
Use the demo in the README.
2014-03-12 08:21:00 +01: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
c6906d85be
Fixed a bug in UltiSnipsEdit!
...
Closes #237
2014-03-07 10:51:04 +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
e6d335aa40
Make the cloning direcotory explicit on stdout.
2014-03-06 06:47:29 +01:00
Holger Rapp
96557f3972
Added integration test for SuperTab.
2014-03-05 19:22:55 +01:00
Holger Rapp
a800b51e0e
Removed no longer planned TODOs
2014-03-05 19:04:16 +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
1ce706e3a9
Adapted neocomplete integration.
2014-03-05 08:55:16 +01:00
Holger Rapp
a23911f7f9
Add option to only clone and immediately exit the test runner.
2014-03-05 08:39:37 +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
1ec523801d
Added version checking for other plugins.
2014-03-05 07:50:23 +01:00
Holger Rapp
f4cda88027
Add integration tests with YouCompleteMe.
2014-03-04 20:36:27 +01:00
Holger Rapp
b65efa5aa7
Added quickstart to readme.
...
And reworded a bit.
2014-03-04 18:09:26 +01:00
Holger Rapp
7b51ec6f6b
Removed snippet contributors from README.
2014-03-04 17:54:30 +01:00
Holger Rapp
35e57fad0b
Removes snippets. Please track honza/vim-snippets.
2014-03-04 17:44:51 +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
1ec2f187b0
Updated ChangeLog.
2014-02-26 08:22:16 +01:00
Holger Rapp
c690a36102
Empty lines do not end a snippet for snipMate.
2014-02-25 23:17:05 +01:00
Holger Rapp
14fca85231
Ups. Forgot to add this.
2014-02-25 23:01:58 +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
6b8bb1b642
Launch and exit vim for each test.
...
This makes the testsuite slower, but avoids leaking state. Also the code
has to be less aware of being under test. It will also allow to to more
integration tests with other plugins that have support for UltiSnips or
that UltiSnips supports.
2014-02-22 09:26:03 +01:00