From 27274a32a43a731e635b930aa3172aa13720a1c4 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Wed, 30 Jan 2013 08:03:53 +0900 Subject: [PATCH] - Added autoload snippet in Vim snip. --- autoload/neosnippet/snippets/vim.snip | 8 ++++++++ doc/neosnippet.txt | 3 +++ 2 files changed, 11 insertions(+) diff --git a/autoload/neosnippet/snippets/vim.snip b/autoload/neosnippet/snippets/vim.snip index ddf4c8f..a1869a0 100644 --- a/autoload/neosnippet/snippets/vim.snip +++ b/autoload/neosnippet/snippets/vim.snip @@ -108,3 +108,11 @@ abbr NeoBundleLazy '' \ ${0} \ }} +snippet autoload +abbr autoload func endfunc +alias afunction afunc +prev_word '^' + function! `substitute(matchstr(neosnippet#util#expand('%:p:r'), '/autoload/\zs.*$'), '/', '#', 'g')`#${1:#:func_name}(${2:#:args}) + ${0} + endfunction + diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 63913f4..273b99e 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -718,6 +718,9 @@ A: Please try below settings. It defines snipMate function. ============================================================================== CHANGELOG *neosnippet-changelog* +2013-01-30 +- Added autoload snippet in Vim snip. + 2013-01-22 - Added NeoBundleLazy snippet.