- Deleted neocomplcache#util functions.
This commit is contained in:
parent
c07fdec557
commit
4fe36ca340
@ -45,7 +45,7 @@ function! s:initialize()"{{{
|
|||||||
|
|
||||||
if exists('g:neocomplcache_snippets_dir')
|
if exists('g:neocomplcache_snippets_dir')
|
||||||
for dir in split(g:neocomplcache_snippets_dir, '\s*,\s*')
|
for dir in split(g:neocomplcache_snippets_dir, '\s*,\s*')
|
||||||
let dir = neocomplcache#util#expand(dir)
|
let dir = neosnippet#util#expand(dir)
|
||||||
if !isdirectory(dir)
|
if !isdirectory(dir)
|
||||||
call mkdir(dir, 'p')
|
call mkdir(dir, 'p')
|
||||||
endif
|
endif
|
||||||
@ -594,7 +594,7 @@ function! s:get_snippet_range(begin_line, begin_patterns, end_line, end_patterns
|
|||||||
if empty(a:begin_patterns)
|
if empty(a:begin_patterns)
|
||||||
let begin = line('.') - 50
|
let begin = line('.') - 50
|
||||||
else
|
else
|
||||||
let [begin, _] = searchpos('^' . neocomplcache#util#escape_pattern(
|
let [begin, _] = searchpos('^' . neosnippet#util#escape_pattern(
|
||||||
\ a:begin_patterns[0]) . '$', 'bnW')
|
\ a:begin_patterns[0]) . '$', 'bnW')
|
||||||
if begin <= 0
|
if begin <= 0
|
||||||
let begin = line('.') - 50
|
let begin = line('.') - 50
|
||||||
@ -608,7 +608,7 @@ function! s:get_snippet_range(begin_line, begin_patterns, end_line, end_patterns
|
|||||||
if empty(a:end_patterns)
|
if empty(a:end_patterns)
|
||||||
let end = line('.') + 50
|
let end = line('.') + 50
|
||||||
else
|
else
|
||||||
let [end, _] = searchpos('^' . neocomplcache#util#escape_pattern(
|
let [end, _] = searchpos('^' . neosnippet#util#escape_pattern(
|
||||||
\ a:end_patterns[0]) . '$', 'nW')
|
\ a:end_patterns[0]) . '$', 'nW')
|
||||||
if end <= 0
|
if end <= 0
|
||||||
let end = line('.') + 50
|
let end = line('.') + 50
|
||||||
|
@ -54,6 +54,13 @@ function! neosnippet#util#iconv(...)"{{{
|
|||||||
return call(s:V.iconv, a:000)
|
return call(s:V.iconv, a:000)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
|
function! neosnippet#util#expand(path)"{{{
|
||||||
|
return s:V.substitute_path_separator(
|
||||||
|
\ (a:path =~ '^\~') ? substitute(a:path, '^\~', expand('~'), '') :
|
||||||
|
\ (a:path =~ '^\$\h\w*') ? substitute(a:path,
|
||||||
|
\ '^\$\h\w*', '\=eval(submatch(0))', '') :
|
||||||
|
\ a:path)
|
||||||
|
endfunction"}}}
|
||||||
function! neosnippet#util#set_dictionary_helper(...)"{{{
|
function! neosnippet#util#set_dictionary_helper(...)"{{{
|
||||||
return call(s:V.set_dictionary_helper, a:000)
|
return call(s:V.set_dictionary_helper, a:000)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
@ -320,6 +320,7 @@ CHANGELOG *neosnippet-changelog*
|
|||||||
2012-09-30
|
2012-09-30
|
||||||
- Changed runtime directory.
|
- Changed runtime directory.
|
||||||
- Vitalized.
|
- Vitalized.
|
||||||
|
- Deleted neocomplcache#util functions.
|
||||||
|
|
||||||
2012-09-27
|
2012-09-27
|
||||||
- Ver.3 development is started.
|
- Ver.3 development is started.
|
||||||
|
Loading…
Reference in New Issue
Block a user