From 5ccca08ff894548000b5d54df5b97df5f6db651e Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 9 Nov 2012 08:47:12 +0900 Subject: [PATCH] - Improved snippet rank. --- autoload/neocomplcache/sources/snippets_complete.vim | 4 +++- doc/neosnippet.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/neocomplcache/sources/snippets_complete.vim b/autoload/neocomplcache/sources/snippets_complete.vim index 731cc2e..709e601 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: 04 Nov 2012. +" Last Modified: 09 Nov 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 @@ -79,6 +79,7 @@ function! s:keyword_filter(snippets, cur_keyword_str)"{{{ for snippet in list " reset refresh flag. let snippet.neocomplcache__refresh = 0 + let snippet.rank = 5 endfor if len(a:cur_keyword_str) > 1 && a:cur_keyword_str =~ '^\h\w*$' @@ -89,6 +90,7 @@ function! s:keyword_filter(snippets, cur_keyword_str)"{{{ for snippet in partial_list " Set refresh flag. let snippet.neocomplcache__refresh = 1 + let snippet.rank = 0 endfor let list += partial_list diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 96c54a5..9011b50 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -715,6 +715,7 @@ CHANGELOG *neosnippet-changelog* 2012-11-09 - Improved syntax error. - Fixed error in java snippet. +- Improved snippet rank. 2012-11-07 - Fixed s:indent_snippet().