Permalink
Browse files

Changed autocomplete stuff

  • Loading branch information...
Tammer Saleh
Tammer Saleh committed Feb 5, 2012
1 parent f27e48b commit d2544c6788a7e115baa47c453025293bcb6ed5b3
Showing with 24,036 additions and 5,103 deletions.
  1. +2 −0 vim/bundle/neocomplcache/.gitignore
  2. +138 −0 vim/bundle/neocomplcache/README.md
  3. +2,054 −0 vim/bundle/neocomplcache/autoload/neocomplcache.vim
  4. +328 −0 vim/bundle/neocomplcache/autoload/neocomplcache/async_cache.vim
  5. +271 −0 vim/bundle/neocomplcache/autoload/neocomplcache/cache.vim
  6. +72 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/abbrev_complete.vim
  7. +545 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/buffer_complete.vim
  8. +87 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/completefunc_complete.vim
  9. +171 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/dictionary_complete.vim
  10. +332 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/filename_complete.vim
  11. +432 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/include_complete.vim
  12. +100 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/keyword_complete.vim
  13. +237 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/member_complete.vim
  14. +281 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/omni_complete.vim
  15. +797 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete.vim
  16. +16 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/_.snip
  17. +273 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/actionscript.snip
  18. +23 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/apache.snip
  19. +201 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/applescript.snip
  20. +135 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/c.snip
  21. +72 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/coffee.snip
  22. +37 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/cpp.snip
  23. +252 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/css.snip
  24. +39 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/d.snip
  25. +19 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/eruby.snip
  26. +274 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/java.snip
  27. +47 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/javascript.snip
  28. +51 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/markdown.snip
  29. +352 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/objc.snip
  30. +76 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/perl.snip
  31. +260 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/php.snip
  32. +85 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/python.snip
  33. +163 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/rails.snip
  34. +44 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/ruby.snip
  35. +59 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/sh.snip
  36. +8 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/snippet.snip
  37. +431 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/tex.snip
  38. +67 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/vim.snip
  39. +4 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/vimshell.snip
  40. +235 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/snippets_complete/xhtml.snip
  41. +343 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/syntax_complete.vim
  42. +111 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/tags_complete.vim
  43. +174 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete.vim
  44. +82 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/autocmds.dict
  45. +33 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/command_args.dict
  46. +498 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/command_completions.dict
  47. +498 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/command_prototypes.dict
  48. +10 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/command_replaces.dict
  49. +492 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/commands.dict
  50. +149 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/features.dict
  51. +252 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/functions.dict
  52. +1,080 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/helper.vim
  53. +72 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/mappings.dict
  54. +354 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/options.dict
  55. +54 −0 vim/bundle/neocomplcache/autoload/neocomplcache/sources/vim_complete/variables.dict
  56. +110 −0 vim/bundle/neocomplcache/autoload/neocomplcache/util.vim
  57. +73 −0 vim/bundle/neocomplcache/autoload/unite/sources/file_include.vim
  58. +138 −0 vim/bundle/neocomplcache/autoload/unite/sources/neocomplcache.vim
  59. +143 −0 vim/bundle/neocomplcache/autoload/unite/sources/snippet.vim
  60. +12 −0 vim/bundle/neocomplcache/autoload/vital.vim
  61. +114 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384.vim
  62. +154 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/data/list.vim
  63. +97 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/data/ordered_set.vim
  64. +124 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/data/string.vim
  65. +77 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/functor.vim
  66. +147 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/mapping.vim
  67. +336 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/prelude.vim
  68. +86 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/system/cache.vim
  69. +117 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/system/file.vim
  70. +90 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/system/filepath.vim
  71. +48 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/web/html.vim
  72. +165 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/web/http.vim
  73. +34 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/web/json.vim
  74. +289 −0 vim/bundle/neocomplcache/autoload/vital/_f9b384/web/xml.vim
  75. +1 −0 vim/bundle/neocomplcache/autoload/vital/neocomplcache.vital
  76. +1,153 −0 vim/bundle/neocomplcache/doc/neocomplcache.jax
  77. +3,706 −0 vim/bundle/neocomplcache/doc/neocomplcache.txt
  78. +42 −0 vim/bundle/neocomplcache/ftplugin/snippet.vim
  79. +61 −0 vim/bundle/neocomplcache/indent/snippet.vim
  80. +155 −0 vim/bundle/neocomplcache/plugin/neocomplcache.vim
  81. +77 −0 vim/bundle/neocomplcache/syntax/snippet.vim
  82. +17 −2 vim/bundle/nerdtree/README.markdown
  83. +32 −9 vim/bundle/nerdtree/doc/NERD_tree.txt
  84. +915 −584 vim/bundle/nerdtree/plugin/NERD_tree.vim
  85. +0 −5 vim/bundle/snipmate.vim/README.markdown
  86. +0 −40 vim/bundle/snipmate.vim/after/plugin/snipMate.vim
  87. +0 −435 vim/bundle/snipmate.vim/autoload/snipMate.vim
  88. +0 −322 vim/bundle/snipmate.vim/doc/snipMate.txt
  89. +0 −10 vim/bundle/snipmate.vim/ftplugin/html_snip_helper.vim
  90. +0 −8 vim/bundle/snipmate.vim/plugin-info.txt
  91. +0 −271 vim/bundle/snipmate.vim/plugin/snipMate.vim
  92. +0 −9 vim/bundle/snipmate.vim/snippets/_.snippets
  93. +0 −66 vim/bundle/snipmate.vim/snippets/autoit.snippets
  94. +0 −113 vim/bundle/snipmate.vim/snippets/c.snippets
  95. +0 −34 vim/bundle/snipmate.vim/snippets/cpp.snippets
  96. +0 −39 vim/bundle/snipmate.vim/snippets/erlang.snippets
  97. +0 −190 vim/bundle/snipmate.vim/snippets/html.snippets
  98. +0 −95 vim/bundle/snipmate.vim/snippets/java.snippets
  99. +0 −74 vim/bundle/snipmate.vim/snippets/javascript.snippets
  100. +0 −54 vim/bundle/snipmate.vim/snippets/mako.snippets
  101. +0 −247 vim/bundle/snipmate.vim/snippets/objc.snippets
  102. +0 −97 vim/bundle/snipmate.vim/snippets/perl.snippets
  103. +0 −216 vim/bundle/snipmate.vim/snippets/php.snippets
  104. +0 −86 vim/bundle/snipmate.vim/snippets/python.snippets
  105. +0 −504 vim/bundle/snipmate.vim/snippets/ruby.snippets
  106. +0 −28 vim/bundle/snipmate.vim/snippets/sh.snippets
  107. +0 −7 vim/bundle/snipmate.vim/snippets/snippet.snippets
  108. +0 −92 vim/bundle/snipmate.vim/snippets/tcl.snippets
  109. +0 −115 vim/bundle/snipmate.vim/snippets/tex.snippets
  110. +0 −32 vim/bundle/snipmate.vim/snippets/vim.snippets
  111. +0 −58 vim/bundle/snipmate.vim/snippets/zsh.snippets
  112. +0 −19 vim/bundle/snipmate.vim/syntax/snippet.vim
  113. +0 −3 vim/bundle/supertab/.gitignore
  114. +0 −11 vim/bundle/supertab/Makefile
  115. +0 −316 vim/bundle/supertab/doc/supertab.txt
  116. +0 −768 vim/bundle/supertab/plugin/supertab.vim
  117. +12 −0 vim/bundle/tcomment_vim/CHANGES.TXT
  118. +3 −4 vim/bundle/tcomment_vim/README
  119. +5 −6 vim/bundle/tcomment_vim/autoload/tcomment.vim
  120. +6 −1 vim/bundle/tcomment_vim/doc/tcomment.txt
  121. +3 −3 vim/bundle/tcomment_vim/plugin/tcomment.vim
  122. +1 −0 vim/bundle/vim-blockle/.gitignore
  123. +52 −0 vim/bundle/vim-blockle/doc/blockle.txt
  124. +161 −0 vim/bundle/vim-blockle/plugin/blockle.vim
  125. +1 −1 vim/bundle/vim-fugitive/plugin/fugitive.vim
  126. +1 −0 vim/bundle/vim-git/ftdetect/git.vim
  127. +1 −1 vim/bundle/vim-rails/autoload/rails.vim
  128. +1 −0 vim/bundle/vim-textobj-rubyblock/.gitignore
  129. +134 −0 vim/bundle/vim-textobj-rubyblock/README.md
  130. +151 −0 vim/bundle/vim-textobj-rubyblock/doc/textobj-rubyblock.txt
  131. +58 −0 vim/bundle/vim-textobj-rubyblock/plugin/textobj/rubyblock.vim
  132. +97 −0 vim/bundle/vim-textobj-rubyblock/readme.vim.org
  133. +79 −0 vim/bundle/vim-textobj-rubyblock/test/basic.input
  134. +67 −0 vim/bundle/vim-textobj-rubyblock/test/examples.rb
  135. +216 −0 vim/bundle/vim-textobj-rubyblock/textobj-rubyblock.vba
  136. +9 −0 vim/bundle/vim-textobj-rubyblock/todo.otl
  137. +2 −0 vim/bundle/vim-textobj-rubyblock/vimballer
  138. +3 −0 vim/bundle/vim-textobj-user/.gitmodules
  139. +13 −0 vim/bundle/vim-textobj-user/Makefile
  140. +598 −0 vim/bundle/vim-textobj-user/autoload/textobj/user.vim
  141. +417 −0 vim/bundle/vim-textobj-user/doc/textobj-user.txt
  142. +16 −0 vim/bundle/vim-textobj-user/test/plugin.expected
  143. +67 −0 vim/bundle/vim-textobj-user/test/plugin.input
  144. +14 −0 vim/bundle/vim-textobj-user/test/script-local.expected
  145. +45 −0 vim/bundle/vim-textobj-user/test/script-local.input
  146. +5 −4 vim/update_bundles
  147. +13 −124 vim/vimrc
@@ -0,0 +1,2 @@
+doc/tags*
+*.swp
@@ -0,0 +1,138 @@
+**neocomplcache**
+=================
+
+Description
+-----------
+
+Neocomplcache performs keyword completion by making a cache of keywords in
+a buffer. I implemented it because unlike the Vim builtin keyword completion.
+Neocomplcache can be customized flexibly. Unfortunately neocomplcache may use
+more memory than other plugins.
+
+Installation
+============
+
+* Extract the file and Put files in your Vim directory
+ (usually ~/.vim/ or Program Files/Vim/vimfiles on Windows).
+* Execute `|:NeoComplCacheEnable|` command or
+`let g:neocomplcache_enable_at_startup = 1`
+in your .vimrc.
+
+Caution
+-------
+
+Because all variable names are changed in neocomplcache Ver.5, it is not
+backwards compatible. If you want to upgrade, you should use the following
+script from Mr.thinca.
+
+http://gist.github.com/422503
+
+Screen shots
+============
+
+Quick match
+-----------
+![Quick match.](http://3.bp.blogspot.com/_ci2yBnqzJgM/TD1PeahCmOI/AAAAAAAAADc/Rz_Pbpr92z4/s1600/quick_match.png)
+
+Snippet completion like snipMate.
+---------------------------------
+http://3.bp.blogspot.com/_ci2yBnqzJgM/SfkgaHXLS0I/AAAAAAAAAA4/TmaylpFl_Uw/s1600-h/screenshot2.png
+![Snippet completion like snipMate.](http://3.bp.blogspot.com/_ci2yBnqzJgM/SfkgaHXLS0I/AAAAAAAAAA4/TmaylpFl_Uw/s1600-h/screenshot2.png)
+
+Original filename completion.
+-----------
+![Original filename completion.](http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1O5_bOQ2I/AAAAAAAAADE/vHf9Xg_mrTI/s1600/filename_complete.png)
+
+Register completion.
+-----------
+![Register completion.](http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1Pel4fomI/AAAAAAAAADk/YsAxF8i6r3w/s1600/register_complete.png)
+
+Omni completion.
+----------------
+![Omni completion.](http://2.bp.blogspot.com/_ci2yBnqzJgM/TD1PTolkTBI/AAAAAAAAADU/knJ3eniuHWI/s1600/omni_complete.png)
+
+Completion with vimshell(http://github.com/Shougo/vimshell).
+------------------------------------------------------------
+![Completion with vimshell(http://github.com/Shougo/vimshell).](http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1PLfdQrwI/AAAAAAAAADM/2pSFRTHwYOY/s1600/neocomplcache_with_vimshell.png)
+
+Vim completion
+------------------------------------------------------------
+![Vim completion.](http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1PfKTlwnI/AAAAAAAAADs/nOGWTRLuae8/s1600/vim_complete.png)
+
+Setting examples
+
+```vim
+" Disable AutoComplPop.
+let g:acp_enableAtStartup = 0
+" Use neocomplcache.
+let g:neocomplcache_enable_at_startup = 1
+" Use smartcase.
+let g:neocomplcache_enable_smart_case = 1
+" Use camel case completion.
+let g:neocomplcache_enable_camel_case_completion = 1
+" Use underbar completion.
+let g:neocomplcache_enable_underbar_completion = 1
+" Set minimum syntax keyword length.
+let g:neocomplcache_min_syntax_length = 3
+let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
+
+" Define dictionary.
+let g:neocomplcache_dictionary_filetype_lists = {
+ \ 'default' : '',
+ \ 'vimshell' : $HOME.'/.vimshell_hist',
+ \ 'scheme' : $HOME.'/.gosh_completions'
+ \ }
+
+" Define keyword.
+if !exists('g:neocomplcache_keyword_patterns')
+ let g:neocomplcache_keyword_patterns = {}
+endif
+let g:neocomplcache_keyword_patterns['default'] = '\h\w*'
+
+" Plugin key-mappings.
+imap <C-k> <Plug>(neocomplcache_snippets_expand)
+smap <C-k> <Plug>(neocomplcache_snippets_expand)
+inoremap <expr><C-g> neocomplcache#undo_completion()
+inoremap <expr><C-l> neocomplcache#complete_common_string()
+
+" SuperTab like snippets behavior.
+"imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
+
+" Recommended key-mappings.
+" <CR>: close popup and save indent.
+inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
+" <TAB>: completion.
+inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
+" <C-h>, <BS>: close popup and delete backword char.
+inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
+inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
+inoremap <expr><C-y> neocomplcache#close_popup()
+inoremap <expr><C-e> neocomplcache#cancel_popup()
+
+" AutoComplPop like behavior.
+"let g:neocomplcache_enable_auto_select = 1
+
+" Shell like behavior(not recommended).
+"set completeopt+=longest
+"let g:neocomplcache_enable_auto_select = 1
+"let g:neocomplcache_disable_auto_complete = 1
+"inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<TAB>"
+"inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
+
+" Enable omni completion.
+autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
+autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
+autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
+autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
+autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
+
+" Enable heavy omni completion.
+if !exists('g:neocomplcache_omni_patterns')
+ let g:neocomplcache_omni_patterns = {}
+endif
+let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
+"autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
+let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
+let g:neocomplcache_omni_patterns.c = '\%(\.\|->\)\h\w*'
+let g:neocomplcache_omni_patterns.cpp = '\h\w*\%(\.\|->\)\h\w*\|\h\w*::'
+```
Oops, something went wrong.

0 comments on commit d2544c6

Please sign in to comment.