diff --git a/autoload/neocomplcache/sources/snippets_complete.vim b/autoload/neocomplcache/sources/snippets_complete.vim index c2994ec..36c60dc 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: 05 Apr 2012. +" Last Modified: 17 May 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 @@ -76,8 +76,6 @@ function! s:source.initialize()"{{{ autocmd FileType * call s:caching() " Recaching events autocmd BufWritePost *.snip,*.snippets call s:caching_snippets(expand(':t:r')) - " Detect syntax file. - autocmd BufNewFile,BufRead *.snip,*.snippets set filetype=snippet augroup END"}}} if has('conceal') diff --git a/doc/neocomplcache-snippets-complete.txt b/doc/neocomplcache-snippets-complete.txt index 68ebe57..e1e7250 100644 --- a/doc/neocomplcache-snippets-complete.txt +++ b/doc/neocomplcache-snippets-complete.txt @@ -300,6 +300,9 @@ snippet *neocomplcache-snippets-complete-unite-action-snippet* ============================================================================== CHANGELOG *neocomplcache-snippets-complete-changelog* +2012-05-16 +- Added ftdetect file. + 2012-05-12 - Improved c snip. diff --git a/ftdetect/snippet.vim b/ftdetect/snippet.vim new file mode 100644 index 0000000..61cb802 --- /dev/null +++ b/ftdetect/snippet.vim @@ -0,0 +1,2 @@ +" Detect syntax file. +autocmd BufNewFile,BufRead *.snip,*.snippets set filetype=snippet