diff --git a/autoload/neocomplcache/sources/snippets_complete.vim b/autoload/neocomplcache/sources/snippets_complete.vim index dbde1ab..931f358 100644 --- a/autoload/neocomplcache/sources/snippets_complete.vim +++ b/autoload/neocomplcache/sources/snippets_complete.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: snippets_complete.vim " AUTHOR: Shougo Matsushita -" Last Modified: 06 Jun 2012. +" Last Modified: 02 Aug 2012. " License: MIT license {{{ " Permission is hereby granted, free of charge, to any person obtaining " a copy of this software and associated documentation files (the @@ -366,10 +366,13 @@ function! s:caching_snippets(filetype)"{{{ \ &filetype : a:filetype let snippet = {} - let snippets_files = split(globpath(join(s:snippets_dir, ','), - \ filetype . '.snip*'), '\n') + let snippets_files = + \ split(globpath(join(s:snippets_dir, ','), + \ filetype . '.snip*'), '\n') \ + split(globpath(join(s:snippets_dir, ','), - \ filetype . '_*.snip*'), '\n') + \ filetype . '_*.snip*'), '\n') + \ + split(globpath(join(s:snippets_dir, ','), + \ filetype . '/*.snip*'), '\n') for snippets_file in snippets_files call s:load_snippets(snippet, snippets_file) endfor diff --git a/doc/neocomplcache-snippets-complete.txt b/doc/neocomplcache-snippets-complete.txt index 1f248e1..198cbfc 100644 --- a/doc/neocomplcache-snippets-complete.txt +++ b/doc/neocomplcache-snippets-complete.txt @@ -309,6 +309,9 @@ snippet *neocomplcache-snippets-complete-unite-action-snippet* ============================================================================== CHANGELOG *neocomplcache-snippets-complete-changelog* +2012-08-02 +- Improved caching snippet files. + 2012-06-06 - Added neocomplcache#sources#snippets_complete#get_snippets_dir().