Commit Graph

397 Commits

Author SHA1 Message Date
Holger Rapp
6b12b11411 Only set autocommands when there are snippets.
This speeds up cursor movement when there is no snippet activated.

Fixes #518.
2015-07-11 17:11:04 +02:00
Holger Rapp
2ed217a059 Remove deprecated functions like a boss. 2015-07-11 16:36:09 +02:00
Holger Rapp
becab789a8 Remove bootstrap.vim. Simplify startup.
The python module is now pulled in autoload/UltiSnips.vim. This means
that parsing of the .vimrc will only map the keys and set some options -
very cheap.

Unfortunately, the autocommands set up in plugin/UltiSnips.vim pulls in
the python code basically immediately still.
2015-07-11 16:17:50 +02:00
Holger Rapp
5f75dde205 Remove snipMate compatibility script.
The engine does not use this and it should therefore live in
vim-snippets.
2015-07-11 13:39:39 +02:00
Holger Rapp
c3a0924b77 Require Vim 7.4 in preparation of removal of compatibility features. 2015-06-11 07:53:47 +02:00
Holger Rapp
de70b1ed5d Exit snippets when entering/exiting command window.
Fixes #510.
2015-06-11 07:22:00 +02:00
Holger Rapp
bca51cb403 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 2014-04-30 07:09:08 +02:00
Holger Rapp
2f84899445 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. 2014-04-13 10:04:12 +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
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
35e57fad0b Removes snippets. Please track honza/vim-snippets. 2014-03-04 17:44:51 +01:00
Holger Rapp
cecc7aad88 Fixed a typo that might make problems when there is no python available. 2014-02-19 22:54:37 +01:00
Holger Rapp
c1b41d0fbf Adds 'priority' keyword and removes '!' option. 2014-02-19 21:04:52 +01:00
Holger Rapp
d6ebf85fc8 Added deprecation warnings for old functions. 2014-02-19 20:30:46 +01:00
Holger Rapp
ba772b0d14 after script maps Keys again. Needed some refactorings. This fixes supertab integration and closes #212. 2014-02-17 08:15: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
7c9d0c0c71 Refactored retaining of unnamed register to be done in VimState. 2014-02-10 21:27:51 +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
c78a54b158 More linting. 2014-02-07 10:20:30 +01:00
Holger Rapp
bd132bc379 More linting warnings and a small bug fix. 2014-02-07 09:50:20 +01:00
Holger Rapp
2377a4405b More linting and some code simplifications. 2014-02-07 09:03:24 +01:00
Holger Rapp
4f7cec61ae More linter warnings down. 2014-02-07 08:50:38 +01:00
Holger Rapp
fefef4e39f More lint warnings gone and simplified some code. 2014-02-06 21:42:07 +01:00
Holger Rapp
dc00dd983d Added a preliminary pylintrc to the project.
and started to fix linting errors.
2014-02-05 23:20:53 +01:00
Holger Rapp
ec8bc5b1b5 util -> indent_util 2014-02-05 21:06:46 +01:00
Holger Rapp
47479ea802 Done with simplifying __init__.py. 2014-02-05 20:58:40 +01:00
Holger Rapp
3d4e408b32 Moved SnippetsFileParser into a file of its own. 2014-02-05 20:47:05 +01:00
Holger Rapp
975aca0c8e Moved SnippetDictionary into a file of its own. 2014-02-05 20:37:07 +01:00
Holger Rapp
03bb556799 Moved VisualContentPreserver into its own file. 2014-02-05 20:31:47 +01:00
Holger Rapp
98a676f8ac Moved some code from __init__.py into a file of its own. 2014-02-05 20:26:33 +01:00
Holger Rapp
a408ba5ce9 Whitespace cleanups. 2014-02-05 20:17:23 +01:00
Holger Rapp
daf778f59c Some minor refactorings. 2014-02-05 20:12:21 +01:00
Holger Rapp
2cdaac1b1c Merge branch 'master' into mMontu-master 2014-02-05 17:21:33 +01:00
LFDM
60f1089d9d Escapes the cached string 2014-01-31 16:55:42 +01:00
LFDM
bf3bfdac9c Adds eventhandler to restore the unnamed register 2014-01-31 16:33:46 +01:00
LFDM
fee8a23d2d Retains the unnamed register during jumps 2014-01-31 16:33:38 +01:00
Holger Rapp
1545b8327d Do not use xrange since py3 does not define it. 2014-01-07 07:01:52 +01:00
Holger Rapp
728cec37d1 Merge branch 'bug_1179630/autodetect_path_search_order' of git://github.com/saikobee/ultisnips into saikobee-bug_1179630/autodetect_path_search_order 2014-01-05 08:02:42 +01:00
Holger Rapp
fc5d2e61dd Small refactoring. 2014-01-05 08:01:42 +01:00
Brian Mock
ccbefbc209 Fixed search order detection for symlinked vim dir 2014-01-03 23:08:29 -08: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
Sergey Alexandrov
dc313f8c7b Fix for bug 1251994
See: https://bugs.launchpad.net/ultisnips/+bug/1251994
2013-12-29 01:56:09 +04: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
Brian Mock
0d17585bf8 Launchpad bug-1179630 Autodetect path search order 2013-12-12 23:55:28 -08:00
mMontu
ecb7dfdf64 Change default value/check, fix for nested snippets 2013-11-10 21:15:24 -02:00
marshall-lee
cf51610c3a fixed KeyboardInterrupt bug when listing snippets 2013-10-30 03:50:30 +03:00