| 1 | "============================================================================= |
|---|
| 2 | " FILE: neocomplcache.vim |
|---|
| 3 | " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> |
|---|
| 4 | " Last Modified: 14 May 2009 |
|---|
| 5 | " Usage: Just source this file. |
|---|
| 6 | " License: MIT license {{{ |
|---|
| 7 | " Permission is hereby granted, free of charge, to any person obtaining |
|---|
| 8 | " a copy of this software and associated documentation files (the |
|---|
| 9 | " "Software"), to deal in the Software without restriction, including |
|---|
| 10 | " without limitation the rights to use, copy, modify, merge, publish, |
|---|
| 11 | " distribute, sublicense, and/or sell copies of the Software, and to |
|---|
| 12 | " permit persons to whom the Software is furnished to do so, subject to |
|---|
| 13 | " the following conditions: |
|---|
| 14 | " |
|---|
| 15 | " The above copyright notice and this permission notice shall be included |
|---|
| 16 | " in all copies or substantial portions of the Software. |
|---|
| 17 | " |
|---|
| 18 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|---|
| 19 | " OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|---|
| 20 | " MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|---|
| 21 | " IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
|---|
| 22 | " CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|---|
| 23 | " TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|---|
| 24 | " SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 25 | " }}} |
|---|
| 26 | " Version: 2.45, for Vim 7.0 |
|---|
| 27 | "----------------------------------------------------------------------------- |
|---|
| 28 | " ChangeLog: "{{{ |
|---|
| 29 | " ChangeLog NeoComplCache2: "{{{ |
|---|
| 30 | " 2.45: Caching on editing file. |
|---|
| 31 | " - Optimized NeoComplCacheCachingBuffer. |
|---|
| 32 | " - Implemented neocomplcache#close_popup() and neocomplcache#cansel_popup(). |
|---|
| 33 | " - Fixed ignore case behaivior. |
|---|
| 34 | " - Fixed escape error. |
|---|
| 35 | " - Improved caching. |
|---|
| 36 | " - Deleted g:NeoComplCache_TryKeywordCompletion and g:NeoComplCache_TryDefaultCompletion options. |
|---|
| 37 | " - Deleted g:NeoComplCache_MaxInfoList and g:NeoComplCache_DeleteRank0 option. |
|---|
| 38 | " - Don't save info in keyword completion. |
|---|
| 39 | " 2.44: Improved popup menu in tags completion. |
|---|
| 40 | " - Improved popup menu in tags completion. |
|---|
| 41 | " - Fixed escape error. |
|---|
| 42 | " - Fixed help. |
|---|
| 43 | " 2.43: Improved wildcard. |
|---|
| 44 | " - Improved wildcard. |
|---|
| 45 | " - Changed 'abbr_save' into 'abbr'. |
|---|
| 46 | " - Fixed :NeoComplCacheCachingBuffer bug. |
|---|
| 47 | " 2.42: |
|---|
| 48 | " - Call completefunc when original completefunc. |
|---|
| 49 | " - Added g:NeoComplCache_TryFilenameCompletion option. |
|---|
| 50 | " - Fixed g:NeoComplCache_TryKeywordCompletion bug. |
|---|
| 51 | " - Fixed menu padding. |
|---|
| 52 | " - Fixed caching error. |
|---|
| 53 | " - Implemented underbar completion. |
|---|
| 54 | " - Added g:NeoComplCache_EnableUnderbarCompletion option. |
|---|
| 55 | " 2.41: |
|---|
| 56 | " - Improved empty check. |
|---|
| 57 | " - Fixed eval bug in snippet complete. |
|---|
| 58 | " - Fixed include bug in snippet complete. |
|---|
| 59 | " 2.40: |
|---|
| 60 | " - Optimized caching in small files. |
|---|
| 61 | " - Deleted buffer dictionary. |
|---|
| 62 | " - Display cached from buffer. |
|---|
| 63 | " - Changed g:NeoComplCache_MaxInfoList default value. |
|---|
| 64 | " - Improved calc rank. |
|---|
| 65 | " - Improved caching timing. |
|---|
| 66 | " - Added NeoComplCacheCachingDisable and g:NeoComplCacheCachingEnable commands. |
|---|
| 67 | " - Fixed commentout bug in snippet complete. |
|---|
| 68 | " 2.39: |
|---|
| 69 | " - Fixed syntax highlight. |
|---|
| 70 | " - Overwrite snippet if name is same. |
|---|
| 71 | " - Caching on InsertLeave. |
|---|
| 72 | " - Manual completion add wildcard when input non alphabetical character. |
|---|
| 73 | " - Fixed menu error in syntax complete. |
|---|
| 74 | " 2.38: |
|---|
| 75 | " - Fixed typo. |
|---|
| 76 | " - Optimized caching. |
|---|
| 77 | " 2.37: |
|---|
| 78 | " - Added g:NeoComplCache_SkipCompletionTime option. |
|---|
| 79 | " - Added g:NeoComplCache_SkipInputTime option. |
|---|
| 80 | " - Changed g:NeoComplCache_SlowCompleteSkip option into g:NeoComplCache_EnableSkipCompletion. |
|---|
| 81 | " - Improved ruby omni pattern. |
|---|
| 82 | " - Optimized syntax complete. |
|---|
| 83 | " - Delete command abbreviations in vim filetype. |
|---|
| 84 | " 2.36: |
|---|
| 85 | " - Implemented snipMate like snippet. |
|---|
| 86 | " - Added syntax file. |
|---|
| 87 | " - Detect snippet file. |
|---|
| 88 | " - Fixed default value selection bug. |
|---|
| 89 | " - Fixed ignorecase. |
|---|
| 90 | " 2.35: |
|---|
| 91 | " - Fixed NeoComplCacheDisable bug. |
|---|
| 92 | " - Implemented <Plug>(neocomplcache_keyword_caching) keymapping. |
|---|
| 93 | " - Improved operator completion. |
|---|
| 94 | " - Added syntax highlight. |
|---|
| 95 | " - Implemented g:NeoComplCache_SnippetsDir. |
|---|
| 96 | " 2.34: |
|---|
| 97 | " - Increment rank when snippet expanded. |
|---|
| 98 | " - Use selection. |
|---|
| 99 | " - Fixed place holder's default value bug. |
|---|
| 100 | " - Added g:NeoComplCache_MinSyntaxLength option. |
|---|
| 101 | " 2.33: |
|---|
| 102 | " - Implemented <Plug>(neocomplcache_snippets_expand) keymapping. |
|---|
| 103 | " - Implemented place holder. |
|---|
| 104 | " - Improved place holder's default value behaivior. |
|---|
| 105 | " - Enable filename completion in lisp filetype. |
|---|
| 106 | " 2.32: |
|---|
| 107 | " - Implemented variable cache line. |
|---|
| 108 | " - Don't complete '/cygdrive/'. |
|---|
| 109 | " - Fixed popup preview window bug if g:NeoComplCache_EnableInfo is 0. |
|---|
| 110 | " 2.31: |
|---|
| 111 | " - Optimized caching. |
|---|
| 112 | " - Improved html omni syntax. |
|---|
| 113 | " - Changed g:NeoComplCache_MaxInfoList default value. |
|---|
| 114 | " - Try empty keyword completion if candidate is empty in manual complete. |
|---|
| 115 | " - Delete candidate from source if rank is low. |
|---|
| 116 | " - Disable filename completion in tex filetype. |
|---|
| 117 | " 2.30: |
|---|
| 118 | " - Deleted MFU. |
|---|
| 119 | " - Optimized match. |
|---|
| 120 | " - Fixed cpp keyword bugs. |
|---|
| 121 | " - Improved snippets_complete. |
|---|
| 122 | " 2.29: |
|---|
| 123 | " - Improved plugin interface. |
|---|
| 124 | " - Refactoring. |
|---|
| 125 | " 2.28: |
|---|
| 126 | " - Improved autocmd. |
|---|
| 127 | " - Fixed delete source bug when g:NeoComplCache_EnableMFU is set. |
|---|
| 128 | " - Implemented snippets_complete. |
|---|
| 129 | " - Optimized abbr. |
|---|
| 130 | " 2.27: |
|---|
| 131 | " - Improved filtering. |
|---|
| 132 | " - Supported actionscript. |
|---|
| 133 | " - Improved syntax. |
|---|
| 134 | " - Added caching percent support. |
|---|
| 135 | " 2.26: |
|---|
| 136 | " - Improved ruby and vim and html syntax. |
|---|
| 137 | " - Fixed escape. |
|---|
| 138 | " - Supported erlang and eruby and etc. |
|---|
| 139 | " - Refactoring autocmd. |
|---|
| 140 | " 2.25: |
|---|
| 141 | " - Optimized syntax caching. |
|---|
| 142 | " - Fixed ruby and ocaml syntax. |
|---|
| 143 | " - Fixed error when g:NeoComplCache_AlphabeticalOrder is set. |
|---|
| 144 | " - Improved syntax_complete caching event. |
|---|
| 145 | " 2.24: |
|---|
| 146 | " - Optimized calc rank. |
|---|
| 147 | " - Optimized keyword pattern. |
|---|
| 148 | " - Implemented operator completion. |
|---|
| 149 | " - Don't use include completion. |
|---|
| 150 | " - Fixed next keyword bug. |
|---|
| 151 | " 2.23: |
|---|
| 152 | " - Fixed compound keyword pattern. |
|---|
| 153 | " - Optimized keyword pattern. |
|---|
| 154 | " - Fixed can't quick match bug on g:NeoComplCache_EnableCamelCaseCompletion is 1. |
|---|
| 155 | " 2.22: |
|---|
| 156 | " - Improved tex syntax. |
|---|
| 157 | " - Improved keyword completion. |
|---|
| 158 | " - Fixed sequential caching bug. |
|---|
| 159 | " 2.21: |
|---|
| 160 | " - Fixed haskell and ocaml and perl syntax. |
|---|
| 161 | " - Fixed g:NeoComplCache_EnableCamelCaseCompletion default value. |
|---|
| 162 | " - Extend skip time. |
|---|
| 163 | " - Added NeoComplCacheAutoCompletionLength and NeoComplCachePartialCompletionLength command. |
|---|
| 164 | " - Fixed extend complete length bug. |
|---|
| 165 | " - Improved camel case completion. |
|---|
| 166 | " 2.20: |
|---|
| 167 | " - Improved dictionary check. |
|---|
| 168 | " - Fixed manual complete wildcard bug. |
|---|
| 169 | " - Fixed assuming filetype bug. |
|---|
| 170 | " - Implemented camel case completion. |
|---|
| 171 | " - Improved filetype and filename check. |
|---|
| 172 | " 2.19: |
|---|
| 173 | " - Plugin interface changed. |
|---|
| 174 | " - Patterns use very magic. |
|---|
| 175 | " - Fixed syntax_complete. |
|---|
| 176 | " 2.18: |
|---|
| 177 | " - Implemented tags_complete plugin. |
|---|
| 178 | " - Fixed default completion bug. |
|---|
| 179 | " - Extend complete length when consecutive skipped. |
|---|
| 180 | " - Auto complete on CursorMovedI. |
|---|
| 181 | " - Deleted similar match. |
|---|
| 182 | " 2.17: |
|---|
| 183 | " - Loadable autoload/neocomplcache/*.vim plugin. |
|---|
| 184 | " - Implemented syntax_complete plugin. |
|---|
| 185 | " 2.16: |
|---|
| 186 | " - Fixed caching initialize bug. |
|---|
| 187 | " - Supported vim help file. |
|---|
| 188 | " - Created manual. |
|---|
| 189 | " - Fixed variables name. |
|---|
| 190 | " - Deleted g:NeoComplCache_CalcRankMaxLists option. |
|---|
| 191 | " 2.15: |
|---|
| 192 | " - Improved C syntax. |
|---|
| 193 | " - Added g:NeoComplCache_MaxTryKeywordLength option. |
|---|
| 194 | " - Improved prev rank. |
|---|
| 195 | " - Optimized if keyword is empty. |
|---|
| 196 | " 2.14: |
|---|
| 197 | " - Optimized calc rank. |
|---|
| 198 | " 2.13: |
|---|
| 199 | " - Optimized caching. |
|---|
| 200 | " - Optimized calc rank. |
|---|
| 201 | " - Fixed calc rank bugs. |
|---|
| 202 | " - Optimized similar match. |
|---|
| 203 | " - Fixed dictionary bug. |
|---|
| 204 | " 2.12: |
|---|
| 205 | " - Added g:NeoComplCache_CachingRandomize option. |
|---|
| 206 | " - Changed g:NeoComplCache_CacheLineCount default value. |
|---|
| 207 | " - Optimized caching. |
|---|
| 208 | " - Caching current cache line on idle. |
|---|
| 209 | " - Fixed key not present error. |
|---|
| 210 | " - Fixed caching bug. |
|---|
| 211 | " 2.11: |
|---|
| 212 | " - Implemented prev_rank. |
|---|
| 213 | " - Fixed disable auto complete bug. |
|---|
| 214 | " - Changed g:NeoComplCache_MinKeywordLength default value. |
|---|
| 215 | " - Changed g:NeoComplCache_CacheLineCount default value. |
|---|
| 216 | " - Fixed MFU. |
|---|
| 217 | " - Optimized calc rank. |
|---|
| 218 | " - Fixed freeze bug when InsertEnter and InsertLeave. |
|---|
| 219 | " 2.10: |
|---|
| 220 | " - Divided as plugin. |
|---|
| 221 | " - NeoComplCacheToggle uses lock() and unlock() |
|---|
| 222 | " - Abbreviation indication of the end. |
|---|
| 223 | " - Don't load MFU when MFU is empty. |
|---|
| 224 | " - Changed g:AltAutoComplPop_EnableAsterisk into g:NeoComplCache_EnableWildCard. |
|---|
| 225 | " - Added wildcard '-'. |
|---|
| 226 | " - Fixed key not present error. |
|---|
| 227 | " 2.02: |
|---|
| 228 | " - Supported compound filetype. |
|---|
| 229 | " - Disable partial match when skipped. |
|---|
| 230 | " - Fixed wildcard bug. |
|---|
| 231 | " - Optimized info. |
|---|
| 232 | " - Added g:NeoComplCache_EnableInfo option. |
|---|
| 233 | " - Disable try keyword completion when wildcard. |
|---|
| 234 | " 2.01: |
|---|
| 235 | " - Caching on InsertLeave. |
|---|
| 236 | " - Changed g:Neocomplcache_CacheLineCount default value. |
|---|
| 237 | " - Fixed update tags bug. |
|---|
| 238 | " - Enable asterisk when cursor_word is (, $, #, @, ... |
|---|
| 239 | " - Improved wildcard. |
|---|
| 240 | " 2.00: |
|---|
| 241 | " - Save keyword found line. |
|---|
| 242 | " - Changed g:Neocomplcache_CacheLineCount default value. |
|---|
| 243 | " - Fixed skipped bug. |
|---|
| 244 | " - Improved commands. |
|---|
| 245 | " - Deleted g:NeoComplCache_DrawWordsRank option. |
|---|
| 246 | " "}}} |
|---|
| 247 | " ChangeLog NeoComplCache: "{{{ |
|---|
| 248 | " 1.60: |
|---|
| 249 | " - Improved calc similar algorithm. |
|---|
| 250 | " 1.59: |
|---|
| 251 | " - Improved NeoComplCacheSetBufferDictionary. |
|---|
| 252 | " - Fixed MFU bug. |
|---|
| 253 | " - Don't try keyword completion when input non word character. |
|---|
| 254 | " 1.58: |
|---|
| 255 | " - Fixed s:SetOmniPattern() and s:SetKeywordPattern() bugs. |
|---|
| 256 | " - Changed g:NeoComplCache_MinKeywordLength default value. |
|---|
| 257 | " - Implemented same filetype completion. |
|---|
| 258 | " 1.57: |
|---|
| 259 | " - Deleted g:NeoComplCache_FirstHeadMatching option. |
|---|
| 260 | " - Deleted prev_rank. |
|---|
| 261 | " - Implemented 3-gram completion. |
|---|
| 262 | " - Fixed MFU bug. |
|---|
| 263 | " 1.56: |
|---|
| 264 | " - Use vim commands completion in vim filetype. |
|---|
| 265 | " 1.55: |
|---|
| 266 | " - Implemented NeoComplCacheCreateTags command. |
|---|
| 267 | " - Fixed tags auto update bug. |
|---|
| 268 | " - Added g:NeoComplCache_TryKeywordCompletion option. |
|---|
| 269 | " 1.54: |
|---|
| 270 | " - Added tags syntax keyword. |
|---|
| 271 | " - Implemented local tags. |
|---|
| 272 | " - Implemented local tags auto update. |
|---|
| 273 | " - Fixed s:prepre_numbered_list bug. |
|---|
| 274 | " 1.53: |
|---|
| 275 | " - Disable similar completion when auto complete. |
|---|
| 276 | " - Calc rank when NeoComplCacheCachingBuffer command. |
|---|
| 277 | " - Added NeoComplCacheOutputKeyword command. |
|---|
| 278 | " 1.52: |
|---|
| 279 | " - Fixed syntax keyword bug. |
|---|
| 280 | " - Improved syntax keyword. |
|---|
| 281 | " - Implemented similar completion. |
|---|
| 282 | " 1.51: |
|---|
| 283 | " - Added g:NeoComplCache_PartialCompletionStartLength option. |
|---|
| 284 | " - Fixed syntax keyword bug. |
|---|
| 285 | " 1.50: |
|---|
| 286 | " - Deleted g:NeoComplCache_CompleteFuncLists. |
|---|
| 287 | " - Set filetype 'nothing' if filetype is empty. |
|---|
| 288 | " - Implemented omni completion. |
|---|
| 289 | " - Added debug command. |
|---|
| 290 | " - Improved syntax keyword. |
|---|
| 291 | " 1.49: |
|---|
| 292 | " - Fixed g:NeoComplCache_MFUDirectory error. |
|---|
| 293 | " - Changed g:NeoComplCache_KeywordPatterns['default'] value. |
|---|
| 294 | " 1.48: |
|---|
| 295 | " - Implemented NeoComplCacheSetBufferDictionary command. |
|---|
| 296 | " - Implemented 2-gram MFU. |
|---|
| 297 | " - Improved syntax completion. |
|---|
| 298 | " - Fixed "complete from same filetype buffer" bug. |
|---|
| 299 | " 1.47: |
|---|
| 300 | " - Implemented 2-gram completion. |
|---|
| 301 | " - Improved ruby keyword. |
|---|
| 302 | " 1.46: |
|---|
| 303 | " - Complete from same filetype buffer. |
|---|
| 304 | " 1.45: |
|---|
| 305 | " - Fixed g:NeoComplCache_MFUDirectory bug. |
|---|
| 306 | " - Improved syntax keyword. |
|---|
| 307 | " - Deleted g:NeoComplCache_FirstCurrentBufferWords option. |
|---|
| 308 | " - Implemented previous keyword completion. |
|---|
| 309 | " 1.44: |
|---|
| 310 | " - Improved most frequently used dictionary. |
|---|
| 311 | " - Improved if bufname changed. |
|---|
| 312 | " - Restore wildcard substitution '.\+' into '.*'. |
|---|
| 313 | " - Fixed next keyword completion bug. |
|---|
| 314 | " 1.43: |
|---|
| 315 | " - Refactoring when caching source. |
|---|
| 316 | " - Initialize source if bufname changed. |
|---|
| 317 | " - Implemented most frequently used dictionary. |
|---|
| 318 | " 1.42: |
|---|
| 319 | " - Caching when InsertLeave event. |
|---|
| 320 | " - Changed g:NeoComplCache_CacheLineCount value. |
|---|
| 321 | " - Changed wildcard substitution '.*' into '.\+'. |
|---|
| 322 | " - Allow word's tail '*' if g:NeoComplCache_EnableAsterisk. |
|---|
| 323 | " - Allow word's head '*' on lisp. |
|---|
| 324 | " - Allow word's head '&' on perl. |
|---|
| 325 | " - Optimized global options definition. |
|---|
| 326 | " 1.41: |
|---|
| 327 | " - Added g:NeoComplCache_SmartCase option. |
|---|
| 328 | " - Optimized on completion and caching. |
|---|
| 329 | " - Fixed g:NeoComplCache_ManualCompleteFunc bug. |
|---|
| 330 | " 1.40: |
|---|
| 331 | " - Fixed freeze bug when many - inputed. |
|---|
| 332 | " - Improved next keyword completion. |
|---|
| 333 | " - Improved caching. |
|---|
| 334 | " - Fixed next keyword completion bug. |
|---|
| 335 | " 1.39: |
|---|
| 336 | " - Fixed filename completion bug. |
|---|
| 337 | " - Fixed dup bug. |
|---|
| 338 | " - Implemented next keyword completion. |
|---|
| 339 | " 1.38: |
|---|
| 340 | " - Fixed PHP completion bug. |
|---|
| 341 | " - Improved filetype detection. |
|---|
| 342 | " - Added space between keyword and file name. |
|---|
| 343 | " - Implemented randomize rank calculation. |
|---|
| 344 | " - Added g:NeoComplCache_CalcRankRandomize option. |
|---|
| 345 | " 1.37: |
|---|
| 346 | " - Improved file complete. |
|---|
| 347 | " - Fixed file complete bug. |
|---|
| 348 | " 1.36: |
|---|
| 349 | " - Added g:NeoComplCache_FirstHeadMatching option. |
|---|
| 350 | " - Fixed list order bug. |
|---|
| 351 | " - Changed g:NeoComplCache_QuickMatchMaxLists default value. |
|---|
| 352 | " - Optimized when buffer renamed. |
|---|
| 353 | " 1.35: |
|---|
| 354 | " - Improved syntax complete. |
|---|
| 355 | " - Improved NeoComplCacheToggle. |
|---|
| 356 | " 1.34: |
|---|
| 357 | " - Fixed g:NeoComplCache_FirstCurrentBufferWords bug. |
|---|
| 358 | " - Fixed quick match bug. |
|---|
| 359 | " - Not change lazyredraw. |
|---|
| 360 | " 1.33: |
|---|
| 361 | " - Added g:NeoComplCache_QuickMatchMaxLists option. |
|---|
| 362 | " - Changed g:NeoComplCache_QuickMatch into g:NeoComplCache_QuickMatchEnable. |
|---|
| 363 | " - Implemented two digits quick match. |
|---|
| 364 | " 1.32: |
|---|
| 365 | " - Improved completion cancel. |
|---|
| 366 | " - Improved syntax keyword vim, sh, zsh, vimshell. |
|---|
| 367 | " - Implemented g:NeoComplCache_NonBufferFileTypeDetect option. |
|---|
| 368 | " 1.31: |
|---|
| 369 | " - Added g:NeoComplCache_MinKeywordLength option. |
|---|
| 370 | " - Caching keyword_pattern. |
|---|
| 371 | " - Fixed current buffer filtering bug. |
|---|
| 372 | " - Fixed rank calculation bug. |
|---|
| 373 | " - Optimized keyword caching. |
|---|
| 374 | " - Fixed lazyredraw bug. |
|---|
| 375 | " 1.30: |
|---|
| 376 | " - Added NeoCompleCachingTags, NeoComplCacheDictionary command. |
|---|
| 377 | " - Renamed NeoCompleCachingBuffer command. |
|---|
| 378 | " 1.29: |
|---|
| 379 | " - Added NeoComplCacheLock, NeoComplCacheUnlock command. |
|---|
| 380 | " - Dup check when quick match. |
|---|
| 381 | " - Fixed error when manual complete. |
|---|
| 382 | " 1.28: |
|---|
| 383 | " - Improved filetype detection. |
|---|
| 384 | " - Changed g:NeoComplCache_MaxFilenameWidth default value. |
|---|
| 385 | " - Improved list. |
|---|
| 386 | " 1.27: |
|---|
| 387 | " - Improved syntax keyword. |
|---|
| 388 | " - Improved calc rank timing. |
|---|
| 389 | " - Fixed keyword filtering bug. |
|---|
| 390 | " 1.26: |
|---|
| 391 | " - Ignore if dictionary file doesn't exists. |
|---|
| 392 | " - Due to optimize, filtering len(cur_keyword_str) >. |
|---|
| 393 | " - Auto complete when InsertEnter. |
|---|
| 394 | " 1.25: |
|---|
| 395 | " - Exclude cur_keyword_str from keyword lists. |
|---|
| 396 | " 1.24: |
|---|
| 397 | " - Due to optimize, filtering len(cur_keyword_str) >=. |
|---|
| 398 | " - Fixed buffer dictionary bug. |
|---|
| 399 | " 1.23: |
|---|
| 400 | " - Fixed on lazyredraw bug. |
|---|
| 401 | " - Optimized when no dictionary and tags. |
|---|
| 402 | " - Not echo calculation time. |
|---|
| 403 | " 1.22: |
|---|
| 404 | " - Optimized source. |
|---|
| 405 | " 1.21: |
|---|
| 406 | " - Fixed overwrite completefunc bug. |
|---|
| 407 | " 1.20: |
|---|
| 408 | " - Implemented buffer dictionary. |
|---|
| 409 | " 1.10: |
|---|
| 410 | " - Implemented customizable complete function. |
|---|
| 411 | " 1.00: |
|---|
| 412 | " - Renamed. |
|---|
| 413 | " - Initial version. |
|---|
| 414 | " "}}} |
|---|
| 415 | " ChangeLog AltAutoComplPop: "{{{ |
|---|
| 416 | " 2.62: |
|---|
| 417 | " - Set lazyredraw at auto complete. |
|---|
| 418 | " - Added g:AltAutoComplPop_CalcRankMaxLists option. |
|---|
| 419 | " - Improved calc rank timing. |
|---|
| 420 | " - Improved filetype check. |
|---|
| 421 | " 2.61: |
|---|
| 422 | " - Improved keyword patterns. |
|---|
| 423 | " - Changed g:AltAutoComplPop_CacheLineCount default value. |
|---|
| 424 | " - Implemented :Neco command. |
|---|
| 425 | " 2.60: |
|---|
| 426 | " - Cleanuped code. |
|---|
| 427 | " - Show '[T]' or '[D]' at completing. |
|---|
| 428 | " - Implemented tab pages tags completion. |
|---|
| 429 | " - Fixed error when tab created. |
|---|
| 430 | " - Changed g:AltAutoComplPop_CalcRankCount default value. |
|---|
| 431 | " 2.50: |
|---|
| 432 | " - Implemented filetype dictionary completion. |
|---|
| 433 | " 2.14: |
|---|
| 434 | " - Fixed 'Undefined Variable: s:cur_keyword_pos' bug. |
|---|
| 435 | " - Implemented tags completion. |
|---|
| 436 | " 2.13: |
|---|
| 437 | " - Added g:AltAutoComplPop_DictionaryLists option. |
|---|
| 438 | " - Implemented dictionary completion. |
|---|
| 439 | " 2.12: |
|---|
| 440 | " - Added g:AltAutoComplPop_CalcRankCount option. |
|---|
| 441 | " 2.11: |
|---|
| 442 | " - Added g:AltAutoComplPop_SlowCompleteSkip option. |
|---|
| 443 | " - Removed g:AltAutoComplPop_OptimiseLevel option. |
|---|
| 444 | " 2.10: |
|---|
| 445 | " - Added g:AltAutoComplPop_QuickMatch option. |
|---|
| 446 | " - Changed g:AltAutoComplPop_MaxList default value. |
|---|
| 447 | " - Don't cache help file. |
|---|
| 448 | " 2.09: |
|---|
| 449 | " - Added g:AltAutoComplPop_EnableAsterisk option. |
|---|
| 450 | " - Fixed next cache line cleared bug. |
|---|
| 451 | " 2.08: |
|---|
| 452 | " - Added g:AltAutoComplPop_OptimiseLevel option. |
|---|
| 453 | " If list has many keyword, will optimise complete. |
|---|
| 454 | " - Added g:AltAutoComplPop_DisableAutoComplete option. |
|---|
| 455 | " 2.07: |
|---|
| 456 | " - Fixed caching miss when BufRead. |
|---|
| 457 | " 2.06: |
|---|
| 458 | " - Improved and customizable keyword patterns. |
|---|
| 459 | " 2.05: |
|---|
| 460 | " - Added g:AltAutoComplPop_DeleteRank0 option. |
|---|
| 461 | " - Implemented lazy caching. |
|---|
| 462 | " - Cleanuped code. |
|---|
| 463 | " 2.04: |
|---|
| 464 | " - Fixed caching bug. |
|---|
| 465 | " 2.03: |
|---|
| 466 | " - Fixed rank calculation bug. |
|---|
| 467 | " 2.02: |
|---|
| 468 | " - Fixed GVim problem at ATOK X3 |
|---|
| 469 | " 2.01: |
|---|
| 470 | " - Fixed rank calculation bug. |
|---|
| 471 | " - Faster at caching. |
|---|
| 472 | " 2.0: |
|---|
| 473 | " - Implemented Updates current buffer cache at InsertEnter. |
|---|
| 474 | " 1.13: |
|---|
| 475 | " - Licence changed. |
|---|
| 476 | " - Fix many bugs. |
|---|
| 477 | " 1.1: |
|---|
| 478 | " - Implemented smart completion. |
|---|
| 479 | " It works in vim, c, cpp, ruby, ... |
|---|
| 480 | " - Implemented file completion. |
|---|
| 481 | " 1.0: |
|---|
| 482 | " - Initial version. |
|---|
| 483 | ""}}} |
|---|
| 484 | " }}} |
|---|
| 485 | "----------------------------------------------------------------------------- |
|---|
| 486 | " TODO: "{{{ |
|---|
| 487 | " - Nothing. |
|---|
| 488 | ""}}} |
|---|
| 489 | " Bugs"{{{ |
|---|
| 490 | " - Nothing. |
|---|
| 491 | ""}}} |
|---|
| 492 | "============================================================================= |
|---|
| 493 | |
|---|
| 494 | if exists('g:loaded_neocomplcache') || v:version < 700 |
|---|
| 495 | finish |
|---|
| 496 | endif |
|---|
| 497 | |
|---|
| 498 | command! -nargs=0 NeoComplCacheEnable call neocomplcache#enable() |
|---|
| 499 | command! -nargs=0 NeoComplCacheToggle call neocomplcache#toggle() |
|---|
| 500 | |
|---|
| 501 | " Global options definition."{{{ |
|---|
| 502 | if !exists('g:NeoComplCache_MaxList') |
|---|
| 503 | let g:NeoComplCache_MaxList = 100 |
|---|
| 504 | endif |
|---|
| 505 | if !exists('g:NeoComplCache_MaxKeywordWidth') |
|---|
| 506 | let g:NeoComplCache_MaxKeywordWidth = 50 |
|---|
| 507 | endif |
|---|
| 508 | if !exists('g:NeoComplCache_MaxFilenameWidth') |
|---|
| 509 | let g:NeoComplCache_MaxFilenameWidth = 15 |
|---|
| 510 | endif |
|---|
| 511 | if !exists('g:NeoComplCache_PartialMatch') |
|---|
| 512 | let g:NeoComplCache_PartialMatch = 1 |
|---|
| 513 | endif |
|---|
| 514 | if !exists('g:NeoComplCache_KeywordCompletionStartLength') |
|---|
| 515 | let g:NeoComplCache_KeywordCompletionStartLength = 2 |
|---|
| 516 | endif |
|---|
| 517 | if !exists('g:NeoComplCache_PartialCompletionStartLength') |
|---|
| 518 | let g:NeoComplCache_PartialCompletionStartLength = 3 |
|---|
| 519 | endif |
|---|
| 520 | if !exists('g:NeoComplCache_MinKeywordLength') |
|---|
| 521 | let g:NeoComplCache_MinKeywordLength = 4 |
|---|
| 522 | endif |
|---|
| 523 | if !exists('g:NeoComplCache_IgnoreCase') |
|---|
| 524 | let g:NeoComplCache_IgnoreCase = 1 |
|---|
| 525 | endif |
|---|
| 526 | if !exists('g:NeoComplCache_SmartCase') |
|---|
| 527 | let g:NeoComplCache_SmartCase = 0 |
|---|
| 528 | endif |
|---|
| 529 | if !exists('g:NeoComplCache_AlphabeticalOrder') |
|---|
| 530 | let g:NeoComplCache_AlphabeticalOrder = 0 |
|---|
| 531 | endif |
|---|
| 532 | if !exists('g:NeoComplCache_CacheLineCount') |
|---|
| 533 | let g:NeoComplCache_CacheLineCount = 70 |
|---|
| 534 | endif |
|---|
| 535 | if !exists('g:NeoComplCache_DisableAutoComplete') |
|---|
| 536 | let g:NeoComplCache_DisableAutoComplete = 0 |
|---|
| 537 | endif |
|---|
| 538 | if !exists('g:NeoComplCache_EnableWildCard') |
|---|
| 539 | let g:NeoComplCache_EnableWildCard = 1 |
|---|
| 540 | endif |
|---|
| 541 | if !exists('g:NeoComplCache_EnableQuickMatch') |
|---|
| 542 | let g:NeoComplCache_EnableQuickMatch = 1 |
|---|
| 543 | endif |
|---|
| 544 | if !exists('g:NeoComplCache_CalcRankRandomize') |
|---|
| 545 | let g:NeoComplCache_CalcRankRandomize = has('reltime') |
|---|
| 546 | endif |
|---|
| 547 | if !exists('g:NeoComplCache_QuickMatchMaxLists') |
|---|
| 548 | let g:NeoComplCache_QuickMatchMaxLists = 100 |
|---|
| 549 | endif |
|---|
| 550 | if !exists('g:NeoComplCache_EnableSkipCompletion') |
|---|
| 551 | let g:NeoComplCache_EnableSkipCompletion = has('reltime') |
|---|
| 552 | endif |
|---|
| 553 | if !exists('g:NeoComplCache_SkipCompletionTime') |
|---|
| 554 | let g:NeoComplCache_SkipCompletionTime = '0.2' |
|---|
| 555 | endif |
|---|
| 556 | if !exists('g:NeoComplCache_SkipInputTime') |
|---|
| 557 | let g:NeoComplCache_SkipInputTime = '0.0' |
|---|
| 558 | endif |
|---|
| 559 | if !exists('g:NeoComplCache_PreviousKeywordCompletion') |
|---|
| 560 | let g:NeoComplCache_PreviousKeywordCompletion = 0 |
|---|
| 561 | endif |
|---|
| 562 | if !exists('g:NeoComplCache_TagsAutoUpdate') |
|---|
| 563 | let g:NeoComplCache_TagsAutoUpdate = 0 |
|---|
| 564 | endif |
|---|
| 565 | if !exists('g:NeoComplCache_TryFilenameCompletion') |
|---|
| 566 | let g:NeoComplCache_TryFilenameCompletion = 1 |
|---|
| 567 | endif |
|---|
| 568 | if !exists('g:NeoComplCache_MaxTryKeywordLength') |
|---|
| 569 | let g:NeoComplCache_MaxTryKeywordLength = 5 |
|---|
| 570 | endif |
|---|
| 571 | if !exists('g:NeoComplCache_EnableInfo') |
|---|
| 572 | let g:NeoComplCache_EnableInfo = 0 |
|---|
| 573 | endif |
|---|
| 574 | if !exists('g:NeoComplCache_CachingRandomize') |
|---|
| 575 | let g:NeoComplCache_CachingRandomize = has('reltime') |
|---|
| 576 | endif |
|---|
| 577 | if !exists('g:NeoComplCache_EnableCamelCaseCompletion') |
|---|
| 578 | let g:NeoComplCache_EnableCamelCaseCompletion = 0 |
|---|
| 579 | endif |
|---|
| 580 | if !exists('g:NeoComplCache_EnableUnderbarCompletion') |
|---|
| 581 | let g:NeoComplCache_EnableUnderbarCompletion = 0 |
|---|
| 582 | endif |
|---|
| 583 | if exists('g:NeoComplCache_EnableAtStartup') && g:NeoComplCache_EnableAtStartup |
|---|
| 584 | " Enable startup. |
|---|
| 585 | call neocomplcache#enable() |
|---|
| 586 | endif"}}} |
|---|
| 587 | |
|---|
| 588 | let g:loaded_neocomplcache = 1 |
|---|
| 589 | |
|---|
| 590 | " vim: foldmethod=marker |
|---|