Commit Graph

363 Commits

Author SHA1 Message Date
Shougo Matsushita
efb7202876 - Improved default snippet files. 2012-10-30 12:06:31 +09:00
Shougo Matsushita
ad5e0067e1 - Added <Plug>(neosnippet_register_oneshot_snippet). 2012-10-30 11:27:59 +09:00
Shougo Matsushita
c8a337b6aa - Added indent option. 2012-10-30 10:58:26 +09:00
Shougo Matsushita
6ec0f14a87 - Improved targetted placeholder behavior. 2012-10-30 10:47:52 +09:00
Shougo Matsushita
d1831744d6 - Fixed expand snippet. 2012-10-30 09:12:48 +09:00
Shougo Matsushita
dc4ad41100 - Improved targetted placeholder. 2012-10-30 08:03:53 +09:00
Shougo Matsushita
efecca4fb8 - Implemented target placeholder. 2012-10-30 07:38:37 +09:00
Shougo Matsushita
be5b8e37cd - Fixed for alias. 2012-10-30 05:18:59 +09:00
Shougo Matsushita
ff281e5171 - Improved python snippets. 2012-10-30 05:11:23 +09:00
Shougo Matsushita
9e96a69061 - Implemented commented placeholder. 2012-10-30 05:09:50 +09:00
Shougo Matsushita
c1cfe686ad - Added get_selected_text(). 2012-10-29 19:27:18 +09:00
Shougo Matsushita
d4870c9987 - Improved clear select mode mappings. 2012-10-29 12:28:33 +09:00
Shougo Matsushita
e1bb6d58ef - Improved syntax. 2012-10-29 11:32:38 +09:00
Shougo Matsushita
d30ce7fe79 - Improved syntax of markers. 2012-10-29 11:27:22 +09:00
Shougo Matsushita
de453e5a16 - Improved parse of snippets file. 2012-10-29 11:22:37 +09:00
Shougo Matsushita
2b5eb202f7 - Improved filter behavior. 2012-10-28 19:15:58 +09:00
Shougo Matsushita
6f2f181cb3 - Improved expand behavior. 2012-10-28 18:58:55 +09:00
Shougo
77375e8fd3 Merge pull request #61 from vinsonchuong/refactor-folding-fix
Simplified fix not working for some snippets
2012-10-28 02:54:47 -07:00
Shougo
d74196b4fd Merge pull request #63 from vinsonchuong/fix-conceal-autocmd
Fix autocmd not firing for initial buffer
2012-10-28 02:53:28 -07:00
Shougo Matsushita
a0cae1175e - Improved ruby snippets. 2012-10-28 18:49:19 +09:00
Shougo Matsushita
f1a6401519 - Improved snipMate compatibility. 2012-10-28 18:47:26 +09:00
Christian Höltje
d305dde1cc - Merged. 2012-10-28 18:35:14 +09:00
Christian Höltje
2fde49493b Add compatability for SnipMate-style abbr
SnipMate-style snippets set the `abbr` (they call it `name`) via
the snippet line.  Note: If both styles are used, then neosnippet
style wins.

Example of SnipMate-style:

    snippet   if   if ... end
    if ${1:condition}
      ${2}
    end

Example of neosnippet-style:

    snippet   if
    abbr      if ... end
    if ${1:condition}
      ${2}
    end
2012-10-28 18:30:51 +09:00
Vinson Chuong
5470da2546 Fix autocmd not firing for initial buffer 2012-10-27 19:07:17 -07:00
Vinson Chuong
870db7dfca Simplified fix not working for some snippets 2012-10-27 17:10:09 -07:00
Shougo Matsushita
0a3edfa3a0 - Improved a bit. 2012-10-27 18:06:46 +09:00
Shougo Matsushita
b955d17e5e - Improved g:neosnippet#disable_select_mode_mappings behavior. 2012-10-27 18:04:53 +09:00
Shougo Matsushita
e9db76f71f - Fixed for :SnippetEdit. 2012-10-27 12:20:00 +09:00
Vinson Chuong
aa0bc464fa Simplify folding fix 2012-10-25 22:43:28 -07:00
ujihisa
5b78c5c6f6 bugfix: javascript setTimeout(...); has semicolon in the end which means it's not an expression but a statement. 2012-10-25 18:55:12 -07:00
ujihisa
020c2f126e bugfix: JavaScript function literal is not only a statement but also an expression; you can pass the function literal as an argument for a function call. 2012-10-25 18:54:21 -07:00
Shougo Matsushita
e24b6baeb9 - Merged. 2012-10-26 10:48:41 +09:00
Shougo
d94e807286 Merge pull request #56 from vinsonchuong/fix-folding
Prevent folding of expanded snippet
2012-10-25 18:47:25 -07:00
Shougo Matsushita
2a4db10f9b - Improved javascript snippet file. 2012-10-26 10:46:05 +09:00
ujihisa
b01091afd7 ditto in lua and vim/vital 2012-10-25 09:12:39 -07:00
ujihisa
43247731b7 javascript snippet bugfix: follows changes in prev_word/options 2012-10-25 09:00:22 -07:00
Vinson Chuong
e25014e008 Prevent folding of expanded snippet 2012-10-25 07:56:08 -07:00
Shougo Matsushita
f46f36837e - Deleted sandbox execution. 2012-10-25 10:50:25 +09:00
Shougo Matsushita
f87a6b324a - Improved neosnippet#util#expand(). 2012-10-23 11:00:22 +09:00
Shougo Matsushita
f79f3df531 - Use head instead of prev_word. 2012-10-21 21:13:26 +09:00
Shougo Matsushita
fdc6880600 - Fixed print_error(). 2012-10-21 21:07:57 +09:00
Shougo Matsushita
e44c9d6562 - Improved options word behavior. 2012-10-21 20:48:02 +09:00
Shougo Matsushita
deaa1469f5 - Merged. 2012-10-21 18:03:39 +09:00
Shougo Matsushita
15e014ca10 - Added options word. 2012-10-21 18:03:10 +09:00
Shougo Matsushita
87b97cd385 - Added options head. 2012-10-21 17:51:07 +09:00
ujihisa
898488cccd Added vim/vital snip. 2012-10-20 19:48:13 -07:00
ujihisa
5919706b02 Added haskelll snip. 2012-10-20 19:16:15 -07:00
ujihisa
76e8612410 Improved scala snip -- prev_word wasn't used properly 2012-10-20 00:24:26 -07:00
Shougo Matsushita
77b3a1950d - Fixed markdown snip. 2012-10-19 19:26:30 +09:00
Shougo Matsushita
a0c387de1e - Improved documentation. 2012-10-19 18:38:52 +09:00
Shougo Matsushita
f0a97fa957 - Fixed make cache behavior. 2012-10-19 18:31:55 +09:00
Shougo Matsushita
355789b029 - Search snippets recursively. 2012-10-19 16:07:15 +09:00
Shougo Matsushita
de6dd9aae2 - Improved documentation. 2012-10-19 11:02:08 +09:00
Shougo Matsushita
5970efcf6b - Fixed menu pattern. 2012-10-18 16:31:45 +09:00
Shougo Matsushita
ae1c34cdfa - Improved unite__new_candidate action. 2012-10-18 12:35:04 +09:00
Shougo Matsushita
befa939da6 - Added unite__new_candidate action in snippet source. 2012-10-18 12:28:51 +09:00
Shougo Matsushita
97b0a2a246 - Fixed s:get_sources_list(). 2012-10-18 11:57:09 +09:00
Shougo Matsushita
e17f326239 - Improved escape placeholder. 2012-10-17 08:27:52 +09:00
Shougo Matsushita
33de2273e8 - Fixed alias problem. 2012-10-17 08:19:37 +09:00
Shougo Matsushita
25d448c133 Merge branch 'neosnippet' of github.com:Shougo/neocomplcache-snippets-complete into neosnippet 2012-10-17 08:06:05 +09:00
Dave Marshall
b6f4c54716 Allow backslashes in placeholder defaults
I managed to put a backslash in a placeholder default, by escaping it like \\, and then changing this pattern.

I've no idea how safe it is, the placeholder in a placeholders still seem to work, but I don't know if it will have messed anything else up.
2012-10-16 16:04:04 +02:00
ujihisa
b5afaa3363 Improved C++ snip 2012-10-15 23:05:24 -07:00
ujihisa
776b5801a3 improved lua snip 2012-10-15 23:03:51 -07:00
rhysd
2f30c8c83e Added C++ snippets
- static_cast ( this is C++11 feature )
- namespace
- new casts
2012-10-16 14:55:50 +09:00
Shougo Matsushita
e260e63b95 Merge branch 'neosnippet' of github.com:Shougo/neocomplcache-snippets-complete into neosnippet 2012-10-15 08:41:27 +09:00
Shougo Matsushita
7219f062fa - Improved error check. 2012-10-15 08:39:34 +09:00
ujihisa
030e98deda improving C snip -- abbr has more info 2012-10-13 18:11:05 -07:00
ujihisa
50b9a3a059 Improved vim snip -- adding augroup snippet. 2012-10-07 14:36:32 -07:00
Shougo Matsushita
c301eea419 - Fixed for E749. 2012-10-06 20:18:15 +09:00
Shougo Matsushita
23dd5a099e Don't create file in editting snippet file 2012-10-06 20:05:36 +09:00
Shougo Matsushita
4e8f2ab813 - Fixed setfiletype. 2012-10-06 19:54:47 +09:00
Shougo Matsushita
cc22621217 - Fixed vim snippets. 2012-10-06 18:00:21 +09:00
Shougo Matsushita
2ce74aabd7 - Improved indentation behavior. 2012-10-06 17:56:10 +09:00
Shougo Matsushita
365357b741 - Fixed substitute marker. 2012-10-06 17:16:56 +09:00
Shougo Matsushita
88821a7d9b - Improved indent snippet behavior. 2012-10-06 16:22:36 +09:00
Shougo Matsushita
d7d138090e - Changed prev_word behavior. 2012-10-04 18:49:16 +09:00
Shougo Matsushita
e370a62d44 - Changed g:neosnippet#disable_runtime_snippets behavior. 2012-10-04 17:51:15 +09:00
Shougo Matsushita
2e6791e870 - Fixed typo. 2012-10-04 15:37:13 +09:00
Shougo Matsushita
ce8e095c9c - Fixed s:get_cursor_snippet(). 2012-10-04 14:28:37 +09:00
ujihisa
e7ac14bf34 scala snip tweaks 2012-10-03 21:24:24 -07:00
ujihisa
ab9dc6873b Adding new snip: scala 2012-10-03 21:22:37 -07:00
Shougo Matsushita
6eef3d5462 - Changed :NeoSnippetEdit behavior. 2012-10-04 12:35:07 +09:00
Shougo Matsushita
82dce7fb66 Merge branch 'neosnippet' of github.com:Shougo/neocomplcache-snippets-complete into neosnippet 2012-10-04 10:22:56 +09:00
Shougo Matsushita
6e733a5ccb - Refactored snippets filter. 2012-10-04 10:22:35 +09:00
Shougo Matsushita
04dd784a5b - Added <Plug>(neocomplcache_start_unite_snippet). 2012-10-03 18:13:18 +09:00
ujihisa
eb19289a31 bugfix: :leftbelow command doesn't exit. now -split option will work. 2012-10-02 14:26:38 -07:00
Shougo Matsushita
6780dd60f6 - Improved python snippets. 2012-10-01 13:25:38 +09:00
Shougo Matsushita
f64bb1d55a - Deleted neosnippet#force_expandable(). 2012-10-01 10:26:09 +09:00
ujihisa
5cd0e35f10 bugfix: it was infinite loop! 2012-09-30 15:11:20 -07:00
Shougo Matsushita
e31b261755 - Fixed snippet source errors. 2012-09-30 23:16:26 +09:00
Shougo Matsushita
e3fa0bbf64 - Renamed commands. 2012-09-30 19:10:25 +09:00
Shougo Matsushita
f065035e7f - Changed neocomplcache source behavior. 2012-09-30 18:22:30 +09:00
Shougo Matsushita
83e20ff749 - Improved documentation. 2012-09-30 18:13:49 +09:00
Shougo Matsushita
ba03d23a91 - Fixed error. 2012-09-30 18:04:48 +09:00
Shougo Matsushita
0739b9b12e - Improved filetype complete. 2012-09-30 17:45:41 +09:00
Shougo Matsushita
d5e1a678d4 - Fixed errors. 2012-09-30 17:34:34 +09:00
Shougo Matsushita
9b4b9e6a02 - Improved for filetype. 2012-09-30 17:33:50 +09:00
Shougo Matsushita
67b59e9a1b - Deleted s:get_cursor_keyword_snippet(). 2012-09-30 17:30:21 +09:00
Shougo Matsushita
50cabbdce7 - Deleted neocomplcache depends. 2012-09-30 17:21:47 +09:00
Shougo Matsushita
2a0d6f18ad - Renamed vital. 2012-09-30 17:18:38 +09:00
Shougo Matsushita
6cebc087a2 - Refactored variables. 2012-09-30 17:17:31 +09:00
Shougo Matsushita
4fe36ca340 - Deleted neocomplcache#util functions. 2012-09-30 17:09:49 +09:00
Shougo Matsushita
c07fdec557 - Vitalized. 2012-09-30 17:06:28 +09:00
Shougo Matsushita
cb51dd674d - Changed runtime directory. 2012-09-30 17:04:46 +09:00
Shougo Matsushita
2359481091 - Fixed initialization. 2012-09-28 00:42:34 +09:00
Shougo Matsushita
a21c9ef22d - Renamed keymappings. 2012-09-27 21:30:33 +09:00
Shougo Matsushita
7f3241815d - Re-Fixed wrong indentation when 'expandtab'. 2012-09-27 14:42:37 +09:00
ujihisa
8e7e2d4ee4 expanding tabs to spaces. it'll indent well with 'expandtab' 2012-09-26 19:06:23 -07:00
Shougo Matsushita
9bfd793dfa - Improved add placeholder behavior. 2012-09-27 07:38:16 +09:00
ujihisa
c0503b0f00 c.snip: trivial spacing fixes 2012-09-22 23:52:30 -07:00
ujihisa
52d86e726c Improved ruby snip. 2012-09-22 22:55:13 -07:00
Shougo Matsushita
8bf26b819f - Merged. 2012-09-23 14:30:30 +09:00
Shougo Matsushita
fd9d2ea81a - Fixed column in select mode. 2012-09-23 14:30:02 +09:00
ujihisa
476f33018f adding new snippet: lua 2012-09-22 22:26:56 -07:00
ujihisa
c2c75968d7 javascript snippet bugfixes: some of them didn't need semicolons. some of them didn't space properly. 2012-09-22 22:19:54 -07:00
ujihisa
11a541c5cd consistant indentation 2012-09-22 22:16:41 -07:00
Shougo Matsushita
d321e4f1c9 - Improved cursor position. 2012-09-23 13:48:35 +09:00
Shougo Matsushita
20eedd2741 - Fixed substitute tab character. 2012-09-23 13:45:38 +09:00
Shougo Matsushita
589a3287db - Merged. 2012-09-06 11:00:35 +09:00
Shougo Matsushita
eed6af62f0 - Added neocomplcache__convertable attribute. 2012-09-05 17:03:56 +09:00
Shougo Matsushita
fcf3af4b46 - Changed <Plug>(neocomplcache_snippets_expand) behavior. 2012-09-01 10:50:22 +09:00
Shougo Matsushita
878130bcf0 Merge branch 'master' of github.com:Shougo/neocomplcache-snippets-complete 2012-08-27 12:20:48 +09:00
Shougo Matsushita
b45fc3a55f - Fixed neocomplcache#sources#snippets_complete#force_expandable(). 2012-08-27 12:20:31 +09:00
Ifaz Kabir
48bc8c32b1 fixed html-lists snippet typos 2012-08-15 23:20:21 -04:00
Shougo Matsushita
1367f60705 - Improved caching snippet files. 2012-08-02 11:11:44 +09:00
Shougo Matsushita
0dc85a33c5 - Added neocomplcache#sources#snippets_complete#get_snippets_dir(). 2012-06-06 10:01:42 +09:00
Shougo Matsushita
2bc321b8a5 - Fixed exapnd indentation. 2012-06-02 09:53:35 +09:00
Shougo Matsushita
cc5d07175c - Added ftdetect file. 2012-05-17 22:16:04 +09:00
Shougo Matsushita
cd025ee324 - Improved c snip. 2012-05-12 08:41:49 +09:00
Shougo Matsushita
c85e8c2303 - Fixed nested placeholder problem. 2012-04-05 09:53:52 +09:00
Shougo Matsushita
35a112de90 - Fixed substitute pattern bug. 2012-03-23 12:14:13 +09:00
Shougo Matsushita
809060696c - Fixed substitute marker. 2012-03-19 00:56:24 +09:00
Shougo Matsushita
f741685f9e - Fixed for expandtab. 2012-03-19 00:39:35 +09:00
Shougo Matsushita
60969f5ac0 - Fixed for echodoc. 2012-03-17 22:53:56 +09:00
Shougo Matsushita
16a651924c - Fixed snippets indentation. 2012-03-16 00:06:21 +09:00
Shougo Matsushita
bb74b83c7c - Don't conceal default codes. 2012-03-15 23:26:21 +09:00
Shougo Matsushita
f24fff3c60 - Fixed search(). 2012-03-15 21:29:33 +09:00
Shougo Matsushita
2923db87ab - Deleted echo. 2012-03-15 21:00:00 +09:00
Shougo Matsushita
17157a15ef - Fixed range(). 2012-03-15 20:50:45 +09:00
Shougo Matsushita
5fb35fce8d - Fixed range(). 2012-03-15 20:44:36 +09:00
Shougo Matsushita
5abf5cfdcd - Fixed nested snippet problem. 2012-03-15 20:25:16 +09:00
Shougo Matsushita
ae564154f4 - Fixed error. 2012-03-15 20:06:20 +09:00
Shougo Matsushita
7d33bf8058 - Fixed snippet range error. 2012-03-15 19:59:01 +09:00
Shougo Matsushita
a0bff2e441 - Fixed error. 2012-03-15 18:05:50 +09:00
Shougo Matsushita
2732687aaf - Improved search snippet markers behavior. 2012-03-15 17:23:26 +09:00
Shougo Matsushita
7e442e9a68 - Fixed errors. 2012-03-14 10:13:13 +09:00
Shougo Matsushita
4b24e4bc2f - Changed marker patterns. 2012-03-14 09:43:33 +09:00
Shougo Matsushita
7f78cba880 - Refactored substitute patterns. 2012-03-14 09:35:41 +09:00
Shougo Matsushita
02f0120c06 - Fixed expand bug. 2012-03-14 08:49:57 +09:00
Shougo Matsushita
55803fcfcd - Refactored expand snippet behavior. 2012-03-14 00:39:45 +09:00
Shougo Matsushita
23146787d0 - Fixed plugin indentation problem. 2012-03-08 18:38:58 +09:00
Shougo Matsushita
8ec6ee3f82 - Use shiftwidth instead of softabstop. 2012-03-08 18:01:53 +09:00
Shougo Matsushita
2da0d192af - Improved snippet source. 2012-03-07 10:05:00 +09:00
Shougo Matsushita
c214bafc5b - Fixed snippet source behavior. 2012-03-07 08:39:08 +09:00
Shougo Matsushita
54b9c1d128 - Added snippet source. 2012-03-07 08:19:01 +09:00
Shougo Matsushita
7ab14b958c - Added neocomplcache#sources#snippets_complete#force_expandable() and
neocomplcache#sources#snippets_complete#jumpable().
2012-03-03 16:35:48 +09:00
Shougo Matsushita
a9aaca8582 - Added neocomplcache#sources#snippets_complete#force_expandable() and
neocomplcache#sources#snippets_complete#jumpable().
2012-03-03 16:32:39 +09:00
Shougo Matsushita
322041ae04 - Improved split(). 2012-02-25 23:05:10 +09:00
Shougo Matsushita
dc607f8468 - Fixed error. 2012-02-24 13:57:00 +09:00
Shougo Matsushita
105485ac1d - Improved a bit. 2012-02-24 13:42:12 +09:00
Shougo Matsushita
505d8f96ee - Fixed prev_word behavior. 2012-02-22 12:59:57 +09:00
Shougo Matsushita
a7093fd652 - Fixed variable name. 2012-02-05 10:24:59 +09:00
Shougo Matsushita
81c4b428c2 - Initial version. 2012-02-02 13:33:35 +09:00