From 4e9936596a1882427d918711a679263fccf96650 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Wed, 9 Jan 2019 18:45:02 +0500 Subject: [PATCH] vim: vim->neovim --- etc/rc.linux-gnu | 1 + etc/shell/bash/aliases | 15 +- etc/shell/bash/bashrc | 6 +- etc/soft/git/gitconfig | 2 + etc/soft/htop/htoprc | 10 +- etc/soft/nvim/init.vim | 3 + etc/soft/packages.list | 1 + etc/soft/vifm/commands | 6 +- etc/soft/vifm/filetypes | 2 +- etc/soft/vifm/mappings | 16 +- etc/soft/vifm/vifmrc | 17 +- etc/soft/vim/vim.rc | 872 ++++++++ etc/soft/vim/vim/+ftplugin/markdown.vim | 2 + etc/soft/vim/vim/+plugins/AnsiESC/README.md | 49 - .../vim/vim/+plugins/AnsiESC/autoload/AnsiEsc.vim | 1057 ---------- etc/soft/vim/vim/+plugins/AnsiESC/doc/AnsiEsc.txt | 135 -- .../vim/+plugins/AnsiESC/plugin/AnsiEscPlugin.vim | 32 - .../vim/vim/+plugins/AnsiESC/plugin/cecutil.vim | 538 ----- etc/soft/vim/vim/+plugins/figlet/plugin/Figlet.vim | 557 ----- .../lispcomplete/autoload/lispcomplete.vim | 182 -- .../vim/vim/+plugins/marks_corey/marks_corey.patch | 55 - .../+plugins/marks_corey/plugin/marks_corey.vim | 441 ---- .../vim/vim/+plugins/neocomplcache.vim/README.md | 151 -- .../neocomplcache.vim/autoload/neocomplcache.vim | 405 ---- .../autoload/neocomplcache/async_cache.vim | 315 --- .../autoload/neocomplcache/cache.vim | 326 --- .../autoload/neocomplcache/commands.vim | 277 --- .../autoload/neocomplcache/complete.vim | 383 ---- .../autoload/neocomplcache/context_filetype.vim | 207 -- .../autoload/neocomplcache/filters.vim | 132 -- .../neocomplcache/filters/converter_abbr.vim | 63 - .../neocomplcache/filters/converter_case.vim | 79 - .../neocomplcache/filters/converter_delimiter.vim | 94 - .../neocomplcache/filters/converter_nothing.vim | 47 - .../filters/converter_remove_next_keyword.vim | 87 - .../neocomplcache/filters/matcher_fuzzy.vim | 47 - .../neocomplcache/filters/matcher_head.vim | 47 - .../autoload/neocomplcache/filters/matcher_old.vim | 57 - .../neocomplcache/filters/sorter_length.vim | 54 - .../neocomplcache/filters/sorter_nothing.vim | 47 - .../autoload/neocomplcache/filters/sorter_rank.vim | 51 - .../autoload/neocomplcache/handler.vim | 291 --- .../autoload/neocomplcache/helper.vim | 438 ---- .../autoload/neocomplcache/init.vim | 866 -------- .../autoload/neocomplcache/mappings.vim | 188 -- .../neocomplcache/sources/buffer_complete.vim | 435 ---- .../neocomplcache/sources/dictionary_complete.vim | 172 -- .../neocomplcache/sources/filename_complete.vim | 202 -- .../neocomplcache/sources/filename_include.vim | 238 --- .../neocomplcache/sources/include_complete.vim | 490 ----- .../neocomplcache/sources/member_complete.vim | 247 --- .../neocomplcache/sources/omni_complete.vim | 303 --- .../neocomplcache/sources/syntax_complete.vim | 322 --- .../neocomplcache/sources/tags_complete.vim | 113 -- .../neocomplcache/sources/vim_complete.vim | 198 -- .../sources/vim_complete/autocmds.dict | 83 - .../sources/vim_complete/command_args.dict | 44 - .../sources/vim_complete/command_completions.dict | 498 ----- .../sources/vim_complete/command_prototypes.dict | 498 ----- .../sources/vim_complete/command_replaces.dict | 10 - .../sources/vim_complete/commands.dict | 492 ----- .../sources/vim_complete/features.dict | 153 -- .../sources/vim_complete/functions.dict | 252 --- .../neocomplcache/sources/vim_complete/helper.vim | 964 --------- .../sources/vim_complete/mappings.dict | 72 - .../sources/vim_complete/options.dict | 354 ---- .../sources/vim_complete/variables.dict | 54 - .../autoload/neocomplcache/util.vim | 228 --- .../autoload/neocomplcache/variables.vim | 71 - .../autoload/unite/sources/file_include.vim | 73 - .../autoload/unite/sources/neocomplcache.vim | 131 -- .../+plugins/neocomplcache.vim/autoload/vital.vim | 12 - .../neocomplcache.vim/autoload/vital/_a20a988.vim | 177 -- .../autoload/vital/_a20a988/Data/List.vim | 244 --- .../autoload/vital/_a20a988/Data/String.vim | 256 --- .../autoload/vital/_a20a988/Prelude.vim | 404 ---- .../autoload/vital/_a20a988/System/Cache.vim | 93 - .../autoload/vital/neocomplcache.vital | 5 - .../neocomplcache.vim/doc/neocomplcache.txt | 1887 ----------------- .../neocomplcache.vim/plugin/neocomplcache.vim | 204 -- .../plugin/neocomplcache/buffer_complete.vim | 37 - .../plugin/neocomplcache/dictionary_complete.vim | 25 - .../plugin/neocomplcache/include_complete.vim | 24 - .../plugin/neocomplcache/syntax_complete.vim | 25 - .../plugin/neocomplcache/tags_complete.vim | 25 - .../neocomplcache.vim/vest/test-neocomplcache.vim | 24 - etc/soft/vim/vim/+plugins/neosnippet.vim/README.md | 124 -- .../neocomplcache/sources/snippets_complete.vim | 105 - .../autoload/neocomplete/sources/neosnippet.vim | 67 - .../neosnippet.vim/autoload/neosnippet.vim | 1412 ------------- .../autoload/neosnippet/snippets/Gemfile.snip | 7 - .../autoload/neosnippet/snippets/_.snip | 25 - .../autoload/neosnippet/snippets/actionscript.snip | 265 --- .../autoload/neosnippet/snippets/apache.snip | 22 - .../autoload/neosnippet/snippets/applescript.snip | 185 -- .../autoload/neosnippet/snippets/c.snip | 153 -- .../autoload/neosnippet/snippets/clojure.snip | 32 - .../autoload/neosnippet/snippets/coffee.snip | 72 - .../autoload/neosnippet/snippets/cpp.snip | 76 - .../autoload/neosnippet/snippets/css.snip | 251 --- .../autoload/neosnippet/snippets/d.snip | 40 - .../autoload/neosnippet/snippets/erlang.snip | 21 - .../autoload/neosnippet/snippets/eruby.snip | 20 - .../autoload/neosnippet/snippets/go.snip | 51 - .../autoload/neosnippet/snippets/groovy.snip | 29 - .../autoload/neosnippet/snippets/haskell.snip | 32 - .../autoload/neosnippet/snippets/html.snip | 301 --- .../autoload/neosnippet/snippets/java.snip | 225 -- .../autoload/neosnippet/snippets/javascript.snip | 69 - .../autoload/neosnippet/snippets/kp19pp.snip | 21 - .../autoload/neosnippet/snippets/liquid.snip | 107 - .../autoload/neosnippet/snippets/lua.snip | 41 - .../autoload/neosnippet/snippets/make.snip | 8 - .../autoload/neosnippet/snippets/markdown.snip | 67 - .../autoload/neosnippet/snippets/mediawiki.snip | 70 - .../autoload/neosnippet/snippets/objc.snip | 333 --- .../autoload/neosnippet/snippets/perl.snip | 77 - .../autoload/neosnippet/snippets/php.snip | 276 --- .../autoload/neosnippet/snippets/python.snip | 119 -- .../autoload/neosnippet/snippets/rails.snip | 164 -- .../autoload/neosnippet/snippets/rst.snip | 121 -- .../autoload/neosnippet/snippets/ruby.snip | 136 -- .../autoload/neosnippet/snippets/scala.snip | 42 - .../autoload/neosnippet/snippets/scheme.snip | 20 - .../autoload/neosnippet/snippets/sh.snip | 89 - .../autoload/neosnippet/snippets/snippet.snip | 9 - .../autoload/neosnippet/snippets/sql.snip | 30 - .../autoload/neosnippet/snippets/sshconfig.snip | 6 - .../autoload/neosnippet/snippets/tcl.snip | 1 - .../autoload/neosnippet/snippets/tex.snip | 355 ---- .../autoload/neosnippet/snippets/vim.snip | 186 -- .../autoload/neosnippet/snippets/vim/vital.snip | 35 - .../autoload/neosnippet/snippets/vimshell.snip | 4 - .../autoload/neosnippet/snippets/vimwiki.snip | 1 - .../autoload/neosnippet/snippets/xhtml.snip | 7 - .../neosnippet.vim/autoload/neosnippet/util.vim | 117 -- .../autoload/unite/sources/neosnippet_file.vim | 105 - .../autoload/unite/sources/snippet.vim | 174 -- .../autoload/unite/sources/snippet_target.vim | 121 -- .../vim/+plugins/neosnippet.vim/autoload/vital.vim | 12 - .../neosnippet.vim/autoload/vital/_de83b96.vim | 177 -- .../autoload/vital/_de83b96/Prelude.vim | 409 ---- .../neosnippet.vim/autoload/vital/neosnippet.vital | 3 - .../vim/+plugins/neosnippet.vim/doc/neosnippet.txt | 728 ------- .../+plugins/neosnippet.vim/ftdetect/snippet.vim | 2 - .../+plugins/neosnippet.vim/ftplugin/snippet.vim | 44 - .../vim/+plugins/neosnippet.vim/indent/snippet.vim | 61 - .../+plugins/neosnippet.vim/plugin/neosnippet.vim | 96 - .../vim/+plugins/neosnippet.vim/syntax/snippet.vim | 111 - .../+plugins/vCoolor/autoload/vcoolor/convert.vim | 414 ---- .../vim/+plugins/vCoolor/autoload/vcoolor/misc.vim | 38 - etc/soft/vim/vim/+plugins/vCoolor/doc/vCoolor.txt | 202 -- .../vim/+plugins/vCoolor/pickers/osx/color-picker | 32 - .../vim/vim/+plugins/vCoolor/plugin/vCoolor.vim | 267 --- etc/soft/vim/vim/+plugins/vimple/README | 148 -- etc/soft/vim/vim/+plugins/vimple/autoload/args.vim | 107 - .../vim/vim/+plugins/vimple/autoload/complete.vim | 67 - .../vim/+plugins/vimple/autoload/completers.vim | 73 - etc/soft/vim/vim/+plugins/vimple/autoload/file.vim | 3 - etc/soft/vim/vim/+plugins/vimple/autoload/list.vim | 208 -- .../vim/vim/+plugins/vimple/autoload/loclist.vim | 21 - .../vim/vim/+plugins/vimple/autoload/ml/bayes.vim | 91 - .../vim/vim/+plugins/vimple/autoload/ml/porter.vim | 196 -- .../vim/vim/+plugins/vimple/autoload/overlay.vim | 115 -- .../vim/vim/+plugins/vimple/autoload/parse/ini.vim | 58 - .../vim/vim/+plugins/vimple/autoload/quickfix.vim | 23 - .../vim/vim/+plugins/vimple/autoload/regex.vim | 74 - etc/soft/vim/vim/+plugins/vimple/autoload/rng.vim | 18 - .../vim/vim/+plugins/vimple/autoload/scope.vim | 92 - .../vim/vim/+plugins/vimple/autoload/scripts.vim | 47 - .../vim/vim/+plugins/vimple/autoload/string.vim | 292 --- .../vim/vim/+plugins/vimple/autoload/variable.vim | 3 - .../vim/vim/+plugins/vimple/autoload/vimple.vim | 256 --- .../vimple/autoload/vimple/abbreviations.vim | 105 - .../vimple/autoload/vimple/comparators.vim | 66 - .../+plugins/vimple/autoload/vimple/highlight.vim | 103 - .../+plugins/vimple/autoload/vimple/history.vim | 90 - .../vim/vim/+plugins/vimple/autoload/vimple/ls.vim | 386 ---- .../vim/+plugins/vimple/autoload/vimple/map.vim | 176 -- .../vim/+plugins/vimple/autoload/vimple/marks.vim | 110 - .../+plugins/vimple/autoload/vimple/options.vim | 209 -- .../vimple/autoload/vimple/scriptnames.vim | 100 - .../+plugins/vimple/autoload/vimple/undolist.vim | 176 -- .../+plugins/vimple/autoload/vimple/version.vim | 115 -- etc/soft/vim/vim/+plugins/vimple/demo/bufgrep.vim | 47 - etc/soft/vim/vim/+plugins/vimple/demo/calendar.vim | 89 - .../vim/vim/+plugins/vimple/demo/changelist.vim | 63 - .../vim/vim/+plugins/vimple/demo/global_marks.vim | 26 - etc/soft/vim/vim/+plugins/vimple/demo/helptoc.vim | 32 - etc/soft/vim/vim/+plugins/vimple/demo/iabbrevs.vim | 29 - .../vim/vim/+plugins/vimple/demo/identsearch.vim | 34 - etc/soft/vim/vim/+plugins/vimple/demo/jumplist.vim | 63 - etc/soft/vim/vim/+plugins/vimple/demo/oldfiles.vim | 22 - .../vim/vim/+plugins/vimple/demo/spellsuggest.vim | 45 - etc/soft/vim/vim/+plugins/vimple/demo/tagkinds.vim | 24 - .../vim/vim/+plugins/vimple/demo/tagsearch.vim | 41 - etc/soft/vim/vim/+plugins/vimple/doc/vimple.txt | 316 --- etc/soft/vim/vim/+plugins/vimple/doc/vimple_ls.txt | 344 ---- .../vim/+plugins/vimple/ftplugin/python_scope.vim | 6 - .../vim/vim/+plugins/vimple/ftplugin/vim_scope.vim | 4 - etc/soft/vim/vim/+plugins/vimple/plugin/vimple.vim | 451 ---- .../vim/+plugins/vimple/syntax/vimple_jumplist.vim | 11 - etc/soft/vim/vim/+plugins/vimple/test/Makefile | 11 - etc/soft/vim/vim/+plugins/vimple/test/README | 13 - etc/soft/vim/vim/+plugins/vimple/test/_setup.vim | 16 - .../vim/vim/+plugins/vimple/test/buffer_list.vim | 19 - etc/soft/vim/vim/+plugins/vimple/test/ini_001.ini | 13 - .../vim/vim/+plugins/vimple/test/ini_001_out.ini | 8 - etc/soft/vim/vim/+plugins/vimple/test/ini_002.ini | 5 - .../vim/vim/+plugins/vimple/test/ini_002_out.ini | 4 - .../vim/vim/+plugins/vimple/test/parse_ini_001.vim | 9 - .../vim/vim/+plugins/vimple/test/parse_ini_002.vim | 9 - .../vim/vim/+plugins/vimple/test/string001.vim | 48 - .../vim/vim/+plugins/vimple/test/vimple001.vim | 18 - .../vim/vim/+plugins/vimple/test/vimple002.vim | 15 - .../vim/vim/+plugins_disabled/AnsiESC/README.md | 49 + .../+plugins_disabled/AnsiESC/autoload/AnsiEsc.vim | 1057 ++++++++++ .../vim/+plugins_disabled/AnsiESC/doc/AnsiEsc.txt | 135 ++ .../AnsiESC/plugin/AnsiEscPlugin.vim | 32 + .../+plugins_disabled/AnsiESC/plugin/cecutil.vim | 538 +++++ .../vim/+plugins_disabled/figlet/plugin/Figlet.vim | 557 +++++ .../functionator/functionator.patch | 35 + .../functionator/plugin/functionator.vim | 107 + .../lispcomplete/autoload/lispcomplete.vim | 182 ++ .../marks_corey/marks_corey.patch | 55 + .../marks_corey/plugin/marks_corey.vim | 441 ++++ .../+plugins_disabled/neocomplcache.vim/README.md | 151 ++ .../neocomplcache.vim/autoload/neocomplcache.vim | 405 ++++ .../autoload/neocomplcache/async_cache.vim | 315 +++ .../autoload/neocomplcache/cache.vim | 326 +++ .../autoload/neocomplcache/commands.vim | 277 +++ .../autoload/neocomplcache/complete.vim | 383 ++++ .../autoload/neocomplcache/context_filetype.vim | 207 ++ .../autoload/neocomplcache/filters.vim | 132 ++ .../neocomplcache/filters/converter_abbr.vim | 63 + .../neocomplcache/filters/converter_case.vim | 79 + .../neocomplcache/filters/converter_delimiter.vim | 94 + .../neocomplcache/filters/converter_nothing.vim | 47 + .../filters/converter_remove_next_keyword.vim | 87 + .../neocomplcache/filters/matcher_fuzzy.vim | 47 + .../neocomplcache/filters/matcher_head.vim | 47 + .../autoload/neocomplcache/filters/matcher_old.vim | 57 + .../neocomplcache/filters/sorter_length.vim | 54 + .../neocomplcache/filters/sorter_nothing.vim | 47 + .../autoload/neocomplcache/filters/sorter_rank.vim | 51 + .../autoload/neocomplcache/handler.vim | 291 +++ .../autoload/neocomplcache/helper.vim | 438 ++++ .../autoload/neocomplcache/init.vim | 866 ++++++++ .../autoload/neocomplcache/mappings.vim | 188 ++ .../neocomplcache/sources/buffer_complete.vim | 435 ++++ .../neocomplcache/sources/dictionary_complete.vim | 172 ++ .../neocomplcache/sources/filename_complete.vim | 202 ++ .../neocomplcache/sources/filename_include.vim | 238 +++ .../neocomplcache/sources/include_complete.vim | 490 +++++ .../neocomplcache/sources/member_complete.vim | 247 +++ .../neocomplcache/sources/omni_complete.vim | 303 +++ .../neocomplcache/sources/syntax_complete.vim | 322 +++ .../neocomplcache/sources/tags_complete.vim | 113 ++ .../neocomplcache/sources/vim_complete.vim | 198 ++ .../sources/vim_complete/autocmds.dict | 83 + .../sources/vim_complete/command_args.dict | 44 + .../sources/vim_complete/command_completions.dict | 498 +++++ .../sources/vim_complete/command_prototypes.dict | 498 +++++ .../sources/vim_complete/command_replaces.dict | 10 + .../sources/vim_complete/commands.dict | 492 +++++ .../sources/vim_complete/features.dict | 153 ++ .../sources/vim_complete/functions.dict | 252 +++ .../neocomplcache/sources/vim_complete/helper.vim | 964 +++++++++ .../sources/vim_complete/mappings.dict | 72 + .../sources/vim_complete/options.dict | 354 ++++ .../sources/vim_complete/variables.dict | 54 + .../autoload/neocomplcache/util.vim | 228 +++ .../autoload/neocomplcache/variables.vim | 71 + .../autoload/unite/sources/file_include.vim | 73 + .../autoload/unite/sources/neocomplcache.vim | 131 ++ .../neocomplcache.vim/autoload/vital.vim | 12 + .../neocomplcache.vim/autoload/vital/_a20a988.vim | 177 ++ .../autoload/vital/_a20a988/Data/List.vim | 244 +++ .../autoload/vital/_a20a988/Data/String.vim | 256 +++ .../autoload/vital/_a20a988/Prelude.vim | 404 ++++ .../autoload/vital/_a20a988/System/Cache.vim | 93 + .../autoload/vital/neocomplcache.vital | 5 + .../neocomplcache.vim/doc/neocomplcache.txt | 1887 +++++++++++++++++ .../neocomplcache.vim/plugin/neocomplcache.vim | 204 ++ .../plugin/neocomplcache/buffer_complete.vim | 37 + .../plugin/neocomplcache/dictionary_complete.vim | 25 + .../plugin/neocomplcache/include_complete.vim | 24 + .../plugin/neocomplcache/syntax_complete.vim | 25 + .../plugin/neocomplcache/tags_complete.vim | 25 + .../neocomplcache.vim/vest/test-neocomplcache.vim | 24 + .../vim/+plugins_disabled/neosnippet.vim/README.md | 124 ++ .../neocomplcache/sources/snippets_complete.vim | 105 + .../autoload/neocomplete/sources/neosnippet.vim | 67 + .../neosnippet.vim/autoload/neosnippet.vim | 1412 +++++++++++++ .../autoload/neosnippet/snippets/Gemfile.snip | 7 + .../autoload/neosnippet/snippets/_.snip | 25 + .../autoload/neosnippet/snippets/actionscript.snip | 265 +++ .../autoload/neosnippet/snippets/apache.snip | 22 + .../autoload/neosnippet/snippets/applescript.snip | 185 ++ .../autoload/neosnippet/snippets/c.snip | 153 ++ .../autoload/neosnippet/snippets/clojure.snip | 32 + .../autoload/neosnippet/snippets/coffee.snip | 72 + .../autoload/neosnippet/snippets/cpp.snip | 76 + .../autoload/neosnippet/snippets/css.snip | 251 +++ .../autoload/neosnippet/snippets/d.snip | 40 + .../autoload/neosnippet/snippets/erlang.snip | 21 + .../autoload/neosnippet/snippets/eruby.snip | 20 + .../autoload/neosnippet/snippets/go.snip | 51 + .../autoload/neosnippet/snippets/groovy.snip | 29 + .../autoload/neosnippet/snippets/haskell.snip | 32 + .../autoload/neosnippet/snippets/html.snip | 301 +++ .../autoload/neosnippet/snippets/java.snip | 225 ++ .../autoload/neosnippet/snippets/javascript.snip | 69 + .../autoload/neosnippet/snippets/kp19pp.snip | 21 + .../autoload/neosnippet/snippets/liquid.snip | 107 + .../autoload/neosnippet/snippets/lua.snip | 41 + .../autoload/neosnippet/snippets/make.snip | 8 + .../autoload/neosnippet/snippets/markdown.snip | 67 + .../autoload/neosnippet/snippets/mediawiki.snip | 70 + .../autoload/neosnippet/snippets/objc.snip | 333 +++ .../autoload/neosnippet/snippets/perl.snip | 77 + .../autoload/neosnippet/snippets/php.snip | 276 +++ .../autoload/neosnippet/snippets/python.snip | 119 ++ .../autoload/neosnippet/snippets/rails.snip | 164 ++ .../autoload/neosnippet/snippets/rst.snip | 121 ++ .../autoload/neosnippet/snippets/ruby.snip | 136 ++ .../autoload/neosnippet/snippets/scala.snip | 42 + .../autoload/neosnippet/snippets/scheme.snip | 20 + .../autoload/neosnippet/snippets/sh.snip | 89 + .../autoload/neosnippet/snippets/snippet.snip | 9 + .../autoload/neosnippet/snippets/sql.snip | 30 + .../autoload/neosnippet/snippets/sshconfig.snip | 6 + .../autoload/neosnippet/snippets/tcl.snip | 1 + .../autoload/neosnippet/snippets/tex.snip | 355 ++++ .../autoload/neosnippet/snippets/vim.snip | 186 ++ .../autoload/neosnippet/snippets/vim/vital.snip | 35 + .../autoload/neosnippet/snippets/vimshell.snip | 4 + .../autoload/neosnippet/snippets/vimwiki.snip | 1 + .../autoload/neosnippet/snippets/xhtml.snip | 7 + .../neosnippet.vim/autoload/neosnippet/util.vim | 117 ++ .../autoload/unite/sources/neosnippet_file.vim | 105 + .../autoload/unite/sources/snippet.vim | 174 ++ .../autoload/unite/sources/snippet_target.vim | 121 ++ .../neosnippet.vim/autoload/vital.vim | 12 + .../neosnippet.vim/autoload/vital/_de83b96.vim | 177 ++ .../autoload/vital/_de83b96/Prelude.vim | 409 ++++ .../neosnippet.vim/autoload/vital/neosnippet.vital | 3 + .../neosnippet.vim/doc/neosnippet.txt | 728 +++++++ .../neosnippet.vim/ftdetect/snippet.vim | 2 + .../neosnippet.vim/ftplugin/snippet.vim | 44 + .../neosnippet.vim/indent/snippet.vim | 61 + .../neosnippet.vim/plugin/neosnippet.vim | 96 + .../neosnippet.vim/syntax/snippet.vim | 111 + .../vCoolor/autoload/vcoolor/convert.vim | 414 ++++ .../vCoolor/autoload/vcoolor/misc.vim | 38 + .../vim/+plugins_disabled/vCoolor/doc/vCoolor.txt | 202 ++ .../vCoolor/pickers/osx/color-picker | 32 + .../+plugins_disabled/vCoolor/plugin/vCoolor.vim | 267 +++ etc/soft/vim/vim/+plugins_disabled/vimple/README | 148 ++ .../vim/+plugins_disabled/vimple/autoload/args.vim | 107 + .../+plugins_disabled/vimple/autoload/complete.vim | 67 + .../vimple/autoload/completers.vim | 73 + .../vim/+plugins_disabled/vimple/autoload/file.vim | 3 + .../vim/+plugins_disabled/vimple/autoload/list.vim | 208 ++ .../+plugins_disabled/vimple/autoload/loclist.vim | 21 + .../+plugins_disabled/vimple/autoload/ml/bayes.vim | 91 + .../vimple/autoload/ml/porter.vim | 196 ++ .../+plugins_disabled/vimple/autoload/overlay.vim | 115 ++ .../vimple/autoload/parse/ini.vim | 58 + .../+plugins_disabled/vimple/autoload/quickfix.vim | 23 + .../+plugins_disabled/vimple/autoload/regex.vim | 74 + .../vim/+plugins_disabled/vimple/autoload/rng.vim | 18 + .../+plugins_disabled/vimple/autoload/scope.vim | 92 + .../+plugins_disabled/vimple/autoload/scripts.vim | 47 + .../+plugins_disabled/vimple/autoload/string.vim | 292 +++ .../+plugins_disabled/vimple/autoload/variable.vim | 3 + .../+plugins_disabled/vimple/autoload/vimple.vim | 256 +++ .../vimple/autoload/vimple/abbreviations.vim | 105 + .../vimple/autoload/vimple/comparators.vim | 66 + .../vimple/autoload/vimple/highlight.vim | 103 + .../vimple/autoload/vimple/history.vim | 90 + .../vimple/autoload/vimple/ls.vim | 386 ++++ .../vimple/autoload/vimple/map.vim | 176 ++ .../vimple/autoload/vimple/marks.vim | 110 + .../vimple/autoload/vimple/options.vim | 209 ++ .../vimple/autoload/vimple/scriptnames.vim | 100 + .../vimple/autoload/vimple/undolist.vim | 176 ++ .../vimple/autoload/vimple/version.vim | 115 ++ .../vim/+plugins_disabled/vimple/demo/bufgrep.vim | 47 + .../vim/+plugins_disabled/vimple/demo/calendar.vim | 89 + .../+plugins_disabled/vimple/demo/changelist.vim | 63 + .../+plugins_disabled/vimple/demo/global_marks.vim | 26 + .../vim/+plugins_disabled/vimple/demo/helptoc.vim | 32 + .../vim/+plugins_disabled/vimple/demo/iabbrevs.vim | 29 + .../+plugins_disabled/vimple/demo/identsearch.vim | 34 + .../vim/+plugins_disabled/vimple/demo/jumplist.vim | 63 + .../vim/+plugins_disabled/vimple/demo/oldfiles.vim | 22 + .../+plugins_disabled/vimple/demo/spellsuggest.vim | 45 + .../vim/+plugins_disabled/vimple/demo/tagkinds.vim | 24 + .../+plugins_disabled/vimple/demo/tagsearch.vim | 41 + .../vim/+plugins_disabled/vimple/doc/vimple.txt | 316 +++ .../vim/+plugins_disabled/vimple/doc/vimple_ls.txt | 344 ++++ .../vimple/ftplugin/python_scope.vim | 6 + .../vimple/ftplugin/vim_scope.vim | 4 + .../vim/+plugins_disabled/vimple/plugin/vimple.vim | 451 ++++ .../vimple/syntax/vimple_jumplist.vim | 11 + .../vim/vim/+plugins_disabled/vimple/test/Makefile | 11 + .../vim/vim/+plugins_disabled/vimple/test/README | 13 + .../vim/+plugins_disabled/vimple/test/_setup.vim | 16 + .../+plugins_disabled/vimple/test/buffer_list.vim | 19 + .../vim/+plugins_disabled/vimple/test/ini_001.ini | 13 + .../+plugins_disabled/vimple/test/ini_001_out.ini | 8 + .../vim/+plugins_disabled/vimple/test/ini_002.ini | 5 + .../+plugins_disabled/vimple/test/ini_002_out.ini | 4 + .../vimple/test/parse_ini_001.vim | 9 + .../vimple/test/parse_ini_002.vim | 9 + .../+plugins_disabled/vimple/test/string001.vim | 48 + .../+plugins_disabled/vimple/test/vimple001.vim | 18 + .../+plugins_disabled/vimple/test/vimple002.vim | 15 + .../+plugins_disabled/vimwiki/autoload/vimwiki.vim | 1088 ++++++++++ .../vimwiki/autoload/vimwiki_diary.vim | 281 +++ .../vimwiki/autoload/vimwiki_html.vim | 1311 ++++++++++++ .../vimwiki/autoload/vimwiki_lst.vim | 359 ++++ .../vimwiki/autoload/vimwiki_tbl.vim | 510 +++++ .../vim/+plugins_disabled/vimwiki/doc/vimwiki.txt | 2147 ++++++++++++++++++++ .../+plugins_disabled/vimwiki/ftplugin/vimwiki.vim | 384 ++++ .../+plugins_disabled/vimwiki/plugin/vimwiki.vim | 398 ++++ .../+plugins_disabled/vimwiki/syntax/vimwiki.vim | 236 +++ .../vimwiki/syntax/vimwiki_default.vim | 83 + .../vimwiki/syntax/vimwiki_media.vim | 67 + .../vim/_old_plg/functionator/functionator.patch | 35 - .../_old_plg/functionator/plugin/functionator.vim | 107 - .../vim/vim/_old_plg/vimwiki/autoload/vimwiki.vim | 1088 ---------- .../_old_plg/vimwiki/autoload/vimwiki_diary.vim | 281 --- .../vim/_old_plg/vimwiki/autoload/vimwiki_html.vim | 1311 ------------ .../vim/_old_plg/vimwiki/autoload/vimwiki_lst.vim | 359 ---- .../vim/_old_plg/vimwiki/autoload/vimwiki_tbl.vim | 510 ----- etc/soft/vim/vim/_old_plg/vimwiki/doc/vimwiki.txt | 2147 -------------------- .../vim/vim/_old_plg/vimwiki/ftplugin/vimwiki.vim | 384 ---- .../vim/vim/_old_plg/vimwiki/plugin/vimwiki.vim | 398 ---- .../vim/vim/_old_plg/vimwiki/syntax/vimwiki.vim | 236 --- .../_old_plg/vimwiki/syntax/vimwiki_default.vim | 83 - .../vim/_old_plg/vimwiki/syntax/vimwiki_media.vim | 67 - .../vim/vim/ftplugin/markdown/markdown.custom.vim | 1 + etc/soft/vim/vimrc | 114 +- 445 files changed, 40173 insertions(+), 39351 deletions(-) create mode 100644 etc/soft/nvim/init.vim create mode 100644 etc/soft/vim/vim.rc create mode 100644 etc/soft/vim/vim/+ftplugin/markdown.vim delete mode 100644 etc/soft/vim/vim/+plugins/AnsiESC/README.md delete mode 100644 etc/soft/vim/vim/+plugins/AnsiESC/autoload/AnsiEsc.vim delete mode 100644 etc/soft/vim/vim/+plugins/AnsiESC/doc/AnsiEsc.txt delete mode 100644 etc/soft/vim/vim/+plugins/AnsiESC/plugin/AnsiEscPlugin.vim delete mode 100644 etc/soft/vim/vim/+plugins/AnsiESC/plugin/cecutil.vim delete mode 100644 etc/soft/vim/vim/+plugins/figlet/plugin/Figlet.vim delete mode 100644 etc/soft/vim/vim/+plugins/lispcomplete/autoload/lispcomplete.vim delete mode 100644 etc/soft/vim/vim/+plugins/marks_corey/marks_corey.patch delete mode 100644 etc/soft/vim/vim/+plugins/marks_corey/plugin/marks_corey.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/README.md delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/async_cache.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/cache.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/commands.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/context_filetype.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_abbr.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_case.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_delimiter.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_nothing.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_remove_next_keyword.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_fuzzy.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_head.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_old.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_length.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_nothing.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_rank.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/handler.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/helper.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/init.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/mappings.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/buffer_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/dictionary_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_include.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/include_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/member_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/omni_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/syntax_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/tags_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/autocmds.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_args.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_completions.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_prototypes.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_replaces.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/commands.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/features.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/functions.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/helper.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/mappings.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/options.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/variables.dict delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/util.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/variables.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/unite/sources/file_include.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/unite/sources/neocomplcache.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/vital.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/vital/_a20a988.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/vital/_a20a988/Data/List.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/vital/_a20a988/Data/String.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/vital/_a20a988/Prelude.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/vital/_a20a988/System/Cache.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/vital/neocomplcache.vital delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/doc/neocomplcache.txt delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/buffer_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/dictionary_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/include_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/syntax_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/tags_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neocomplcache.vim/vest/test-neocomplcache.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/README.md delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplcache/sources/snippets_complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplete/sources/neosnippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/Gemfile.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/_.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/actionscript.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/apache.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/applescript.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/c.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/clojure.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/coffee.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/cpp.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/css.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/d.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/erlang.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/eruby.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/go.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/groovy.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/haskell.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/html.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/java.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/javascript.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/kp19pp.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/liquid.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/lua.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/make.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/markdown.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/mediawiki.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/objc.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/perl.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/php.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/python.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/rails.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/rst.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/ruby.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/scala.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/scheme.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/sh.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/snippet.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/sql.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/sshconfig.snip delete mode 120000 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/tcl.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/tex.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/vim.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/vim/vital.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/vimshell.snip delete mode 120000 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/vimwiki.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/xhtml.snip delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/util.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/unite/sources/neosnippet_file.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/unite/sources/snippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/unite/sources/snippet_target.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/vital.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/vital/_de83b96.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/vital/_de83b96/Prelude.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/vital/neosnippet.vital delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/doc/neosnippet.txt delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/ftdetect/snippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/ftplugin/snippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/indent/snippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/plugin/neosnippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/neosnippet.vim/syntax/snippet.vim delete mode 100644 etc/soft/vim/vim/+plugins/vCoolor/autoload/vcoolor/convert.vim delete mode 100644 etc/soft/vim/vim/+plugins/vCoolor/autoload/vcoolor/misc.vim delete mode 100644 etc/soft/vim/vim/+plugins/vCoolor/doc/vCoolor.txt delete mode 100755 etc/soft/vim/vim/+plugins/vCoolor/pickers/osx/color-picker delete mode 100644 etc/soft/vim/vim/+plugins/vCoolor/plugin/vCoolor.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/README delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/args.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/complete.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/completers.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/file.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/list.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/loclist.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/ml/bayes.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/ml/porter.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/overlay.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/parse/ini.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/quickfix.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/regex.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/rng.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/scope.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/scripts.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/string.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/variable.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/abbreviations.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/comparators.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/highlight.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/history.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/ls.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/map.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/marks.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/options.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/scriptnames.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/undolist.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/autoload/vimple/version.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/bufgrep.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/calendar.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/changelist.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/global_marks.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/helptoc.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/iabbrevs.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/identsearch.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/jumplist.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/oldfiles.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/spellsuggest.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/tagkinds.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/demo/tagsearch.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/doc/vimple.txt delete mode 100644 etc/soft/vim/vim/+plugins/vimple/doc/vimple_ls.txt delete mode 100644 etc/soft/vim/vim/+plugins/vimple/ftplugin/python_scope.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/ftplugin/vim_scope.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/plugin/vimple.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/syntax/vimple_jumplist.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/Makefile delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/README delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/_setup.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/buffer_list.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/ini_001.ini delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/ini_001_out.ini delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/ini_002.ini delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/ini_002_out.ini delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/parse_ini_001.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/parse_ini_002.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/string001.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/vimple001.vim delete mode 100644 etc/soft/vim/vim/+plugins/vimple/test/vimple002.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/AnsiESC/README.md create mode 100644 etc/soft/vim/vim/+plugins_disabled/AnsiESC/autoload/AnsiEsc.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/AnsiESC/doc/AnsiEsc.txt create mode 100644 etc/soft/vim/vim/+plugins_disabled/AnsiESC/plugin/AnsiEscPlugin.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/AnsiESC/plugin/cecutil.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/figlet/plugin/Figlet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/functionator/functionator.patch create mode 100644 etc/soft/vim/vim/+plugins_disabled/functionator/plugin/functionator.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/lispcomplete/autoload/lispcomplete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/marks_corey/marks_corey.patch create mode 100644 etc/soft/vim/vim/+plugins_disabled/marks_corey/plugin/marks_corey.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/README.md create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/async_cache.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/cache.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/commands.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/context_filetype.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/converter_abbr.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/converter_case.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/converter_delimiter.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/converter_nothing.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/converter_remove_next_keyword.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/matcher_fuzzy.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/matcher_head.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/matcher_old.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/sorter_length.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/sorter_nothing.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/filters/sorter_rank.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/handler.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/helper.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/init.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/mappings.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/buffer_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/dictionary_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/filename_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/filename_include.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/include_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/member_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/omni_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/syntax_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/tags_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/autocmds.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_args.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_completions.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_prototypes.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_replaces.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/commands.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/features.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/functions.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/helper.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/mappings.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/options.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/variables.dict create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/util.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/neocomplcache/variables.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/unite/sources/file_include.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/unite/sources/neocomplcache.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/vital.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/vital/_a20a988.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/vital/_a20a988/Data/List.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/vital/_a20a988/Data/String.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/vital/_a20a988/Prelude.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/vital/_a20a988/System/Cache.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/autoload/vital/neocomplcache.vital create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/doc/neocomplcache.txt create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/plugin/neocomplcache.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/plugin/neocomplcache/buffer_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/plugin/neocomplcache/dictionary_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/plugin/neocomplcache/include_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/plugin/neocomplcache/syntax_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/plugin/neocomplcache/tags_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neocomplcache.vim/vest/test-neocomplcache.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/README.md create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neocomplcache/sources/snippets_complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neocomplete/sources/neosnippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/Gemfile.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/_.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/actionscript.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/apache.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/applescript.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/c.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/clojure.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/coffee.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/cpp.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/css.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/d.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/erlang.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/eruby.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/go.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/groovy.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/haskell.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/html.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/java.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/javascript.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/kp19pp.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/liquid.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/lua.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/make.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/markdown.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/mediawiki.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/objc.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/perl.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/php.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/python.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/rails.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/rst.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/ruby.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/scala.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/scheme.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/sh.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/snippet.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/sql.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/sshconfig.snip create mode 120000 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/tcl.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/tex.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/vim.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/vim/vital.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/vimshell.snip create mode 120000 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/vimwiki.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/snippets/xhtml.snip create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/neosnippet/util.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/unite/sources/neosnippet_file.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/unite/sources/snippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/unite/sources/snippet_target.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/vital.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/vital/_de83b96.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/vital/_de83b96/Prelude.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/autoload/vital/neosnippet.vital create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/doc/neosnippet.txt create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/ftdetect/snippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/ftplugin/snippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/indent/snippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/plugin/neosnippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/neosnippet.vim/syntax/snippet.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vCoolor/autoload/vcoolor/convert.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vCoolor/autoload/vcoolor/misc.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vCoolor/doc/vCoolor.txt create mode 100755 etc/soft/vim/vim/+plugins_disabled/vCoolor/pickers/osx/color-picker create mode 100644 etc/soft/vim/vim/+plugins_disabled/vCoolor/plugin/vCoolor.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/README create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/args.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/complete.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/completers.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/file.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/list.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/loclist.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/ml/bayes.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/ml/porter.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/overlay.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/parse/ini.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/quickfix.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/regex.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/rng.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/scope.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/scripts.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/string.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/variable.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/abbreviations.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/comparators.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/highlight.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/history.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/ls.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/map.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/marks.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/options.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/scriptnames.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/undolist.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/autoload/vimple/version.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/bufgrep.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/calendar.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/changelist.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/global_marks.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/helptoc.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/iabbrevs.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/identsearch.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/jumplist.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/oldfiles.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/spellsuggest.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/tagkinds.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/demo/tagsearch.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/doc/vimple.txt create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/doc/vimple_ls.txt create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/ftplugin/python_scope.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/ftplugin/vim_scope.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/plugin/vimple.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/syntax/vimple_jumplist.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/Makefile create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/README create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/_setup.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/buffer_list.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/ini_001.ini create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/ini_001_out.ini create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/ini_002.ini create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/ini_002_out.ini create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/parse_ini_001.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/parse_ini_002.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/string001.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/vimple001.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimple/test/vimple002.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/autoload/vimwiki.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/autoload/vimwiki_diary.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/autoload/vimwiki_html.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/autoload/vimwiki_lst.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/autoload/vimwiki_tbl.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/doc/vimwiki.txt create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/ftplugin/vimwiki.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/plugin/vimwiki.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/syntax/vimwiki.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/syntax/vimwiki_default.vim create mode 100644 etc/soft/vim/vim/+plugins_disabled/vimwiki/syntax/vimwiki_media.vim delete mode 100644 etc/soft/vim/vim/_old_plg/functionator/functionator.patch delete mode 100644 etc/soft/vim/vim/_old_plg/functionator/plugin/functionator.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/autoload/vimwiki.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/autoload/vimwiki_diary.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/autoload/vimwiki_html.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/autoload/vimwiki_lst.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/autoload/vimwiki_tbl.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/doc/vimwiki.txt delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/ftplugin/vimwiki.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/plugin/vimwiki.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/syntax/vimwiki.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/syntax/vimwiki_default.vim delete mode 100644 etc/soft/vim/vim/_old_plg/vimwiki/syntax/vimwiki_media.vim create mode 120000 etc/soft/vim/vim/ftplugin/markdown/markdown.custom.vim diff --git a/etc/rc.linux-gnu b/etc/rc.linux-gnu index e3bb898..347bd89 100644 --- a/etc/rc.linux-gnu +++ b/etc/rc.linux-gnu @@ -48,6 +48,7 @@ mkdir -p ~/.config/dunst + soft/dunst/dunstrc ~/.config/dunst - soft/mc ~/.config + soft/vim/vim ~ ++ soft/nvim ~/.config + soft/vifm ~ + soft/vim/vimrc ~ - soft/vimperator ~ diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index 5c76808..e8483ef 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -11,9 +11,14 @@ alias pd="pushd" #noindex alias po="popd" #noindex #- Удаление, перемещение и копирование с подтверждением -#+ Строка прогресса: http://beatex.org/web/advancedcopy.html +#+ Строка прогресса: +#+ http://beatex.org/web/advancedcopy.html +#+ https://github.com/mrdrogdrog/advcpmv alias mv='mv -g -i -v' #noindex alias cp='cp -g -i -v -r' #noindex + +alias mv='mv -i -v' #noindex +alias cp='cp -i -v -r' #noindex alias rm="rm -i -v" #noindex alias rmdir="rmdir -v" #noindex @@ -56,13 +61,13 @@ alias xlock="i3lock -i $SHELLRC/etc/wm/locker.png" #noindex #- Замена стандартных путей для конфигурационных файлов alias mpd="mpd $SHELLRC/etc/media/mpd/mpd.conf" #noindex alias mpdr="\mpd $SHELLRC/etc/media/mpd/mpd_remote.conf" #noindex -alias vi="vim -u NONE" #noindex -alias vim="vim -N -i $SHELLRC/var/vim/viminfo -p $*" #noindex +alias vi="nvim -u NONE" #noindex +# alias vim="vim -N -i $SHELLRC/var/vim/viminfo -p $*" #noindex +alias vim="nvim -i $SHELLRC/var/vim/nviminfo -p $*" #noindex alias lsi="TERM=xterm-256color lsi" #noindex alias mutt="TERM=xterm-256color neomutt -F $SHELLRC/etc/mail/mutt/muttrc && echo "0" > $MD/new" #noindex alias screen="TERM=rxvt-256color screen" #noindex alias figlet="figlet -f $SHELLRC/etc/soft/figlet/fonts/standard.flf" #noindex -alias cdargs="cdargs -b -f $SHELLRC/etc/soft/cdargs/cdargs -o $SHELLRC/etc/soft/cdargs/cdargsresult" #noindex alias zathura="nh zathura" #noindex alias z="nh zathura" #noindex alias kz="killall zathura" #noindex @@ -206,7 +211,7 @@ write() { # urxvtc -fn 'xft:TrixiePro:pixelsize=20' \ # -e bash -c "vim '+colorscheme $1' '+Goyo 60%' $2" xst -f 'TrixiePro:pixelsize=22' \ - -e bash -c "vim '+colorscheme $1' '+Goyo 60%' $2" + -e bash -c "nvim '+colorscheme $1' '+Goyo 60%' $2" } alias :w="write OneHalfDark" #noindex alias :wl="write OneHalfLight" #noindex diff --git a/etc/shell/bash/bashrc b/etc/shell/bash/bashrc index 7710f0c..bf6c8c9 100755 --- a/etc/shell/bash/bashrc +++ b/etc/shell/bash/bashrc @@ -1,6 +1,6 @@ #!/bin/bash #################################################################### # -# Изменён: Пн 31 дек 2018 17:10:09 +# Изменён: Пн 31 дек 2018 21:39:04 # ################################################################################ @@ -217,7 +217,7 @@ fi [ -f $BASHRC/aliases ] && ALIASES="$BASHRC/aliases" && . $ALIASES && HELPSRC+=("$ALIASES") #Раскрывать псевдонимы в скриптах -shopt -s expand_aliases +# shopt -s expand_aliases # }}} ########################################################################## # {{{ Настройка Cygwin @@ -251,7 +251,7 @@ PS4="$green++ $rstc" short_pwd() { # echo -en '  ' # pwd | sed 's@/home/'$USER'@~@; s@^\([~/][^/]*/\).*\(\(/[^/]*\)\{3\}\)$@\1\2@' - pwd | sed 's@/home/'$USER'@~@; s@^\(\([~/][^/]*\)\{1\}/\).*\(\(/[^/]*\)\{2\}\)$@\1...\3@' + pwd | sed 's@/home/'$USER'@~@; s@^\(\([~/][^/]*\)\{2\}/\).*\(\(/[^/]*\)\{2\}\)$@\1...\3@' } # PROMPT_COMMAND="history -a; history -n;" diff --git a/etc/soft/git/gitconfig b/etc/soft/git/gitconfig index 8ed0cfc..9cfa3ce 100644 --- a/etc/soft/git/gitconfig +++ b/etc/soft/git/gitconfig @@ -63,6 +63,8 @@ hub = "!github_clone() { git clone git://github.com/${1}.git; }; github_clone" + calendar = !git-cal + pk = !git archive HEAD --format=zip > `basename $PWD`_`\\date '+%Y.%M.%d'`.zip [push] diff --git a/etc/soft/htop/htoprc b/etc/soft/htop/htoprc index d3b06c8..216f7fa 100644 --- a/etc/soft/htop/htoprc +++ b/etc/soft/htop/htoprc @@ -1,6 +1,6 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. -fields=0 48 38 2 46 47 49 1 +fields=0 48 38 2 46 47 49 1 sort_key=46 sort_direction=1 hide_threads=0 @@ -20,7 +20,7 @@ update_process_names=0 account_guest_in_cpu_meter=0 color_scheme=0 delay=15 -left_meters=AllCPUs2 -left_meter_modes=1 -right_meters=Memory Swap -right_meter_modes=1 1 +left_meters=AllCPUs2 +left_meter_modes=1 +right_meters=Memory Swap +right_meter_modes=1 1 diff --git a/etc/soft/nvim/init.vim b/etc/soft/nvim/init.vim new file mode 100644 index 0000000..f182e5b --- /dev/null +++ b/etc/soft/nvim/init.vim @@ -0,0 +1,3 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath = &runtimepath +source ~/.vimrc diff --git a/etc/soft/packages.list b/etc/soft/packages.list index e908d47..1cfde50 100644 --- a/etc/soft/packages.list +++ b/etc/soft/packages.list @@ -19,4 +19,5 @@ tig #? ls https://github.com/illinoisjackson/even-better-ls xst https://github.com/gnotclub/xst ufed +cpg, mvg https://github.com/mrdrogdrog/advcpmv diff --git a/etc/soft/vifm/commands b/etc/soft/vifm/commands index 1b517c0..a509160 100644 --- a/etc/soft/vifm/commands +++ b/etc/soft/vifm/commands @@ -10,7 +10,7 @@ command tag !tmsu tag --tags="%a" %c command untagged tmsu untagged | sort %M command bklist cat ~/.vifm/bookmarks.list %M -command bkedit !vim ~/.vifm/bookmarks.list +command bkedit !nvim ~/.vifm/bookmarks.list command bkadd :!echo %c:p >> ~/.vifm/bookmarks.list command man man %a %m @@ -32,7 +32,7 @@ command ext ext %f command diff vimdiff %f %F command run !! ./%f -command vim !vim %f +command vim !nvim %f command git !!git %a command gitdf g st | grep '^[[:space:]]' | grep -v '\)$' | sed 's/[[:space:]]*//' %u @@ -41,7 +41,7 @@ command cal cal -y %m command xc xc %c -command config :vim $MYVIFMRC +command config :nvim $MYVIFMRC command z !!zathura %c:p diff --git a/etc/soft/vifm/filetypes b/etc/soft/vifm/filetypes index 57cc792..e06408b 100644 --- a/etc/soft/vifm/filetypes +++ b/etc/soft/vifm/filetypes @@ -19,7 +19,7 @@ fileviewer *.so,*.so.* file %f fileviewer *.torrent dumptorrent -v %f " txt -filetype *.txt vim %f +filetype *.txt nvim %f " img filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif sxiv %c %d/ diff --git a/etc/soft/vifm/mappings b/etc/soft/vifm/mappings index 1eb9194..dcd9483 100644 --- a/etc/soft/vifm/mappings +++ b/etc/soft/vifm/mappings @@ -1,3 +1,4 @@ + nmap O :only nmap I :vsplit nmap S :sort @@ -5,25 +6,32 @@ nmap T :tabnew nmap w :view nmap s :sync +" use < and > without ctrl-w prefix key in normal mode +nnoremap < < +nnoremap > > + +" moving cursor in another pane +nnoremap J j +nnoremap K k + nmap ,t :tree! nmap ,m :media -nmap cr :!rsync -r --progress %c %D nmap cd :cd nmap nf :touch nmap nd :mkdir " nmap gr :grep nmap ,u :!urxvt -cd %d & -nmap ,v :!urxvt -e bash vim & -nmap ,V :!urxvt -e bash vim %f & +nmap ,v :!urxvt -e bash nvim & +nmap ,V :!stab -e bash nvim %f & " path nmap yp :!echo %c:p | xclip " name nmap yn :!echo %c | xclip -nmap :!bash +nmap :shell nmap x nmap ,bl :bklist diff --git a/etc/soft/vifm/vifmrc b/etc/soft/vifm/vifmrc index 38ba8e9..9b36ccc 100644 --- a/etc/soft/vifm/vifmrc +++ b/etc/soft/vifm/vifmrc @@ -1,16 +1,31 @@ +" Цветовая схема colorscheme custom + +" Редактор по умолчанию +set vicmd=nvim + +" Информация, сохраняемая в vifminfo set vifminfo=bookmarks,tui,dhistory,state,savedirs,chistory,shistory,phistory +" cp/mv/rm с прогрессом +set syscalls + +set rulerformat='%2l/%S %[(+%x)%]' + set history=512 set undolevels=512 +" Дополнение в виде меню +set wildstyle=popup set wildmenu + set fastrun set sortnumbers set scrolloff=4 windo set number windo set numberwidth=1 +set ignorecase set smartcase set nohlsearch set incsearch @@ -33,7 +48,7 @@ set timefmt="%d.%m.%y %H:%M" " %{} - evaluate arbitrary vifm expression '', e.g. '&sort' " %* - resets or applies one of User1..User9 highlight groups; reset happens when width field is 0 or not specified, one of groups gets picked when width field is in the range from 1 to 9 -set statusline=" %t %T%= %1*廬%A %2*  %u:%-g %3*%7E %4* %5*%14d %6* %7*[ %a] %8*%9* %D " +set statusline=" %t %T%= %1* 廬%A %2*  %u:%-g %3*%7E %4* %5*%14d %6* %7*[ %a] %8*%9* %D " set slowfs=curlftpfs diff --git a/etc/soft/vim/vim.rc b/etc/soft/vim/vim.rc new file mode 100644 index 0000000..ff0dbae --- /dev/null +++ b/etc/soft/vim/vim.rc @@ -0,0 +1,872 @@ +" ~/.vimrc +" +" Изменён: Чт. 25 сент. 2014 11:39:50 +" +"############################################################################### +" {{{ НАСТРОЙКИ VIM +"############################################################################### + +" {{{-------------------------- Общие настройки -------------------------------- + +" let &runtimepath.=',$SHELLRC/etc/vim/vim' + +set nocompatible " Несовместимость настроек с Vi +set history=500 " Настройка истории +set t_Co=256 " 256-цветный режим +set nohidden " Выгружать буферы при переключении +set novisualbell " Отключение визуального оповещения +set t_vb= " Отключение визуального оповещения +set tabpagemax=99 " Предел открытия вкладок +set winminheight=0 " Минимальная высота окна +set winminwidth=0 " Минимальная ширина окна +set winaltkeys=menu " Включение Win/Alt +set autochdir " Переходить в каталог файла +set viewdir=$HOME/.shellrc/var/vim/view " Директория файлов состояний буферов + +" При выходе запоминать состояние файла +au BufWinLeave * if bufname("") =~ "..*" | mkview | endif + + " Восстановление состояния + function RestoreState() + if getline(1) != "" + if bufname("") =~ "..*" + " !empty(expand("")) + silent loadview + endif + endif + endfunction + +au BufWinEnter * call RestoreState() +au BufWinEnter * set cursorline + +" Vimwiki тормозит +au BufWinEnter *.wiki set nocursorline + +" Отключение zip +let g:loaded_zipPlugin = 1 +let g:loaded_zip = 1 + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Работа с файловой системой---------------------- + +set autoread " Перечитывать файл при изменении +set browsedir=current " Открывать в Ex директорию файла +set wildignore=*.bak,*.~ " Не показывать временные файлы в меню + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Языки и кодировки ------------------------------ + +set helplang=ru,en " Языки справки +set encoding=utf8 " Кодировка +set termencoding=utf-8 " Кодировка текста по умолчанию + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Настройка мыши и клавиатуры -------------------- + +"set mouse=a " Мышь в текстовом режиме +set ruler " Всегда показывать положение курсора +set mousehide " Скрывать указатель мыши при наборе +set scrolljump=7 " Вверх в режиме редактирования +set scrolloff=7 " Вниз в режиме редактирования + +" Смена указателя в зависимости от режима + +let &t_SI = "\]50;CursorShape=1\x7" +let &t_EI = "\]50;CursorShape=0\x7" + +if &term =~ "xterm\\|rxvt" + let &t_SI = "\033]12;orange\007" + let &t_EI = "\033]12;darkgrey\007" + autocmd VimLeave * :!echo -ne "\033]12;darkgrey\007" +endif + +set backspace=indent,eol,start whichwrap+=<,>,[,] + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Редактирование текста -------------------------- + +syntax on " Подсветка синтаксиса +filetype on " Определение типа файла +filetype plugin on " Определение типа файла +set nu " Нумерация строк +set iminsert=0 " Раскладка по умолчанию - английская + +"match ErrorMsg '\%>80v.\+' " Подсветка выхода за 80-й символ + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Настройка табуляции ---------------------------- + +set tabstop=8 " Размер табуляции +set softtabstop=8 " Табуляция +set shiftwidth=8 " Размер сдвига блоков ( << , >> ) +set listchars=tab:>.,trail:+,extends:#,nbsp:. " Показывать табуляцию и висящие пробелы + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Настройка отступов ----------------------------- + +set autoindent " Автоматическая расстановка отступов +set smartindent " Умная расстановка отступов +set cindent " Умная расстановка отступов +set cin " Расстановка отступов в стиле С + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Настройка автодополнения ----------------------- + +set wildmenu " Меню при автодополнении команд + +set completeopt=menu " Показывать меню автодополнения +set undolevels=1000 " Размер истории для отмены +set wrap " Включаем перенос строк +set linebreak " Перенос строк по словам, а не по буквам + +set complete="" " Автозавершение слов +set complete+=. " Из текущего буфера +set complete+=k " Из словаря +set complete+=b " Из других открытых буферов +set complete+=t " Из тегов + +" Автодополнение из файла с синтаксисом +autocmd FileType * exec('set dict+='.$VIMRUNTIME.'/syntax/'.getbufvar("%","current_syntax").'.vim') + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Скрытие блоков кода ---------------------------- + +set foldcolumn=1 " Видимая колонка фолдинга +set foldmethod=syntax " Скрытие блоков текста + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Настройки поиска ------------------------------- + +set incsearch " Поиск по набору текста +set hlsearch " Подсветка результатов поиска +set wrapscan " Не останавливать поиск при достижении конца файла +set ignorecase " Игнорировать регистр букв при поиске +set smartcase " Учитывать регистр, если есть заглавные буквы + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Настройка резервного копирования --------------- + +set dir^=~/.shellrc/var/vim/swp/ " Директория сохранения swap-файлов +set backup " Cоздавать .bak файлы +set backupdir=~/.shellrc/var/vim/backup " Директория хранения бэкапов + + " Бэкапы в поддиректории + function! BackupDir() + " Каталог для сохранения резервной копии + let l:backupdir=$HOME.'/.shellrc/var/vim/backup/'. + \substitute(expand('%:p:h'), '^'.$HOME, '~', '') + + " Каталог не существует, создадим его рекурсивно + if !isdirectory(l:backupdir) + call mkdir(l:backupdir, 'p', 0700) + endif + + " Каталог для резервных копий + let &backupdir=l:backupdir + + " Расширение файла резервной копии + let &backupext=strftime('.%d-%m-%Y.%T~') + endfunction + + autocmd! bufwritepre * call BackupDir()" + +" }}}--------------------------------------------------------------------------- + +" {{{-------------------------- Настройка отмены действий ---------------------- +set undodir=$SHELLRC/var/vim/undo +set undofile +set undolevels=1000 +set undoreload=10000" +" }}}--------------------------------------------------------------------------- + +" }}}########################################################################### +" {{{ НАСТРОЙКИ ЦВЕТА +" ############################################################################## + +set background=dark +colo wombat_converted " Цветовая схема + +"Грамматические ошибки +hi clear SpellBad +hi SpellBad cterm=bold ctermfg=160 ctermbg=NONE + +"Ошибки в заглавных буквах +hi clear SpellCap +hi SpellCap cterm=bold ctermfg=110 ctermbg=NONE + +"Стилистические ошибки +hi clear SpellLocal +hi SpellLocal cterm=bold ctermfg=120 ctermbg=NONE + +hi Todo ctermfg=black ctermbg=221 " Метки TODO + +hi MatchParen ctermfg=47 ctermbg=NONE " Парные скобки + +hi Pmenu ctermfg=black ctermbg=lightgreen " Дополнение - Фон +hi PmenuSel ctermfg=black ctermbg=darkgreen " Дополнение - Элемент + +hi CursorLine ctermfg=NONE ctermbg=234 cterm=NONE " Подсветка строки +set cursorline + +"hi Folded ctermfg=black ctermbg=gray " Скрытие блоков +hi FoldColumn ctermfg=black ctermbg=black " Скрытие блоков + +hi Error ctermfg=NONE ctermbg=1 " Ошибки +hi ErrorMsg ctermfg=grey ctermbg=red " Сообщение об ошибке + +hi TabLineFill ctermfg=black ctermbg=black " Строка вкладок +hi TabLineSel ctermfg=lightgreen ctermbg=NONE " Текущая вкладка +hi TabLine ctermfg=yellow ctermbg=NONE " Остальные вкладки + +hi Comment ctermfg=darkgray " Цвет комментариев + +hi Search ctermfg=black ctermbg=209 " Цвет найденного + +hi SignColor ctermbg=64 ctermfg=lightyellow guibg=grey guifg=RoyalBlue3 + +" }}}########################################################################### +" {{{ СТРОКА СОСТОЯНИЯ +" ############################################################################## + +" set titlestring=\ %t\ (%{expand('%:p:h')}) + +set showcmd " Показывать размер выделенной области +set ch=1 " Количество строк +set cmdheight=1 " Коммандная строка в одну линию +set laststatus=2 " Всегда отображать статусную строку + +" Функция отображения конструкции языка +function! SyntaxItem() + if synIDattr(synID(line("."),col("."),1),"name") == "" + return " --- " + else + return synIDattr(synID(line("."),col("."),1),"name") +endfunction + +set statusline=%#Question# " Цвет +set statusline+=%t%m%r%h%w " Имя файла +" set statusline+=%{strlen(GitBranch())?'@'.GitBranch().'.git':''} " Ветка Git +set statusline+=%= " Выравн. справа +" set statusline+=%#Function# " Цвет +" set statusline+=%{functionator#GetName()} " Функция +" set statusline+=%#Question# " Цвет +" set statusline+=\ [ЛЕКСЕМА:\ %{SyntaxItem()}] " Лексема +" set statusline+=%#WarningMsg# " Цвет +set statusline+=%#Function# " Цвет +set statusline+=\ [%{strlen(&ft)?&ft:'none'} " Тип файла +set statusline+=\/\%{(&fenc==\"\"?&enc:&fenc)} " Кодировка +" set statusline+=%#String# " Цвет +set statusline+=\|%L:%03l,%03v\ %p%%] " Строка/столбец + +" }}}########################################################################### +" {{{ ДОПОЛНИТЕЛЬНЫЕ ФУНКЦИИ +" ############################################################################## + +" Автоматически делать файл исполняемым +function ModeChange() + if getline(1) =~ "^#!/" + silent !chmod a+x + endif +endfunction +au BufWritePost * call ModeChange() + +" Отображение декларации функции +function GetDeclaration() + if strlen(glob("~/.vim/+scripts/declarations/".&ft)) + echo system("~/.vim/+scripts/declarations/".&ft." '".expand("")."' ".expand("%")) + endif + + " elseif &ft == 'perl' + " echo system("echo -n $(perldoc -i -f " + " \ .expand("") + " \ . " | head -1 | sed -r 's/^[[:space:]]+//g')") + " endif +endfunction + +nmap fd :call GetDeclaration() + +" }}}########################################################################### +" {{{ КОМБИНАЦИИ КЛАВИШ +" ############################################################################## + +" , как +let mapleader="," +nmap \ , + +" Открытие/закрытие блоков текста +nnoremap za +vnoremap za + +" Удаление конечных пробелов +map S :%s/\s\+$//:let @/='' + +" Удаление дубликатов строк +map D :%s/^\(.*\)\(\n\1\)\+$/\1/ + +" Выделение недавно редактированного текста +nmap gV `[v`] + +" Отключение подсветки найденного +nmap ,/ :nohlsearch + +" Перемещение курсора в режиме вставки +imap +imap +imap +imap + +" Показ строк, содержащих слово под курсором +nmap g [I:let nr=input("> ")exe "normal " . nr . "[\t" + +" История комманд +cmap + +" Omnicompletion +imap + +" Открытие буфера с ошибками +map co :copen + +" URxvt Home/End +map! [7;7^ +map [7;7^ +map [8;8^ +map! [8;8^ + +" Копирование от курсора до конца строки +map Y y$ + +" Открытие руководства +nmap +imap +vmap +nmap fm + +" Сохранение файла +nmap :up +vmap :upi +imap :upi + +" Открытие/закрытие окна с тэгами +nmap :TlistToggle +imap :TlistToggle +vmap :TlistToggle + +" Включение режима вклейки +set pastetoggle= + +"nmap `` Goto_next_sign + +" Проверка орфографии +set wcm= +menu Spell.ru :setlocal spell:setlocal spelllang=:setlocal spelllang=ru +menu Spell.el :setlocal spell:setlocal spelllang=:setlocal spelllang=el +menu Spell.en :setlocal spell:setlocal spelllang=:setlocal spelllang=en +menu Spell.ru,en,el :setlocal spell:setlocal spelllang=:setlocal spelllang=ru,en,el +menu Spell.off :setlocal nospell +map :emenu Spell. + +" Навигация по ошибкам +"nmap :cnzv:cc +"vmap :cnzv:cc +"imap :cnzv:cc + +"nmap :cpzv:cc +"vmap :cpzv:cc +"imap :cpzv:cc + +" Компиляция/запуск интерпретатора +nmap :make +vmap :make +imap :make + +nmap :copen +imap :copen +imap :copen + +" Выполнение файла с параметрами +nmap :call Run("") +vmap :call Run("") +imap :call Run("") + + function Run(...) + if getline(1) =~ "^#!/" + execute "!%:p" a:1 + else + execute "!\'".getcwd()."/%<\'" a:1 + endif + endfunction + +nmap :echo system("robodoc &"):echo "MAKING DOCUMENTATION" +imap :echo system("robodoc &"):echo "MAKING DOCUMENTATION" +vmap :echo system("robodoc &"):echo "MAKING DOCUMENTATION" + +" < & > - отступы для блоков текста +vmap < >gv + +" Открытие новой вкладки +" nmap :tabnew +" imap :tabnew +" vmap :tabnew + +" Редактирование командной строки как в Emacs +cnoremap +cnoremap +" cnoremap +cnoremap +cnoremap +cnoremap b +cnoremap +cnoremap f +cnoremap +cnoremap + +" Редактирование окружений (cib/dap/...) {{{ +" Редактирование СЛЕДУЮЩЕГО окружения" +nnoremap cinb f(ci( +nnoremap canb f(ca( +nnoremap cinB f{ci{ +nnoremap canB f{ca{ +nnoremap cin( f(ci( +nnoremap can( f(ca( +nnoremap cin{ f{ci{ +nnoremap can{ f{ca{ +nnoremap cin) f(ci( +nnoremap can) f(ca( +nnoremap cin} f{ci{ +nnoremap can} f{ca{ +nnoremap cin[ f[ci[ +nnoremap can[ f[ca[ +nnoremap cin] f[ci[ +nnoremap can] f[ca[ +nnoremap cin< f f f f f f f F F F F F FF#xi + +iabbrev cpr (c) 2014 Maxim Lihachev, + +" }}}########################################################################### +" {{{ ВВОД КОМАНД В ДРУГИХ РАСКЛАДКАХ +" ############################################################################## + +source $SHELLRC/etc/soft/vim/vim/+layouts/russian.vim +source $SHELLRC/etc/soft/vim/vim/+layouts/greek.vim + +" }}}########################################################################### +" {{{ НАСТРОЙКИ ПЛАГИНОВ +" ############################################################################## + +" Pathogen {{{ +" Отключенные плагины +let g:pathogen_disabled = ['colorsupport', 'timelog'] +execute pathogen#infect('+plugins/{}') +" call pathogen#runtime_append_all_bundles() +call pathogen#helptags() +" }}} + +" Airline {{{ +let g:airline_left_sep = '' +let g:airline_right_sep = '' +let g:airline_linecolumn_prefix = '/ ' +let g:airline_branch_prefix = '⇵ ' +let g:airline_paste_symbol = '' +let g:airline_whitespace_symbol = '∅' + +let g:airline_section_c = '%t%m%r%h%w' +let g:airline_section_z = '%L:%03l,%03v %p%%' + +" enable/disable fugitive/lawrencium integration +let g:airline_enable_branch=1 + +" enable/disable syntastic integration +let g:airline_enable_syntastic=0 + +" enable/disable tagbar integration +let g:airline_enable_tagbar=0 + +" enable modified detection +let g:airline_detect_modified=1 + +" enable paste detection +let g:airline_detect_paste=1 + +" enable iminsert detection +let g:airline_detect_iminsert=1 + +" enable whitespace detection +let g:airline_detect_whitespace=1 "icon and message (default) + +" change the default theme +let g:airline_theme='wombat' + +" enable/disable usage of patched powerline font symbols +let g:airline_powerline_fonts=0 + +" define the set of text to display for each mode. +let g:airline_mode_map = { 'i': '+', 'n': ' ', 'v': '⇄', 'V': '⇄', '': '⇅', 'R': '✂', 'c': '#', 's': 'SELECT', '^S': 'S-BLOCK', 'S': 'S-LINE' } + +" }}} + +" GIT"{{{ +" Смена ветки Git +function GetGitBranches() + if bufname("") !~ "COMMIT.*" + if system("git status 2>/dev/null >/dev/null; echo -n $?") == 0 + exe system("echo -n let s:git_branches = ;git branch | tr '\n*' ' '" + \."| sed -r \"s/^\\s+/['/; s/\\s+$/']/; s/\\s+/','/g\"") + + set wcm= + for branch in s:git_branches + exe "menu Git.".branch." :GitCheckout ".branch.":edit" + endfor + map gb :emenu Git. + endif + endif +endfunction + +au BufWinEnter * call GetGitBranches() +au! BufEnter * if bufname("") !~ ".*COMMIT_EDITMSG.*" | lcd %:p:h | endif + +"}}} + +" VimWiki"{{{ +let wiki = {} + +if has("win32unix") + let wiki.path = '/d/etc/wiki/' + let wiki.path_html = '/z/wiki/' +else + let wiki.path = '~/.shellrc/vimwiki/wiki/' + let wiki.path_html = '~/.shellrc/vimwiki/html/' +endif + +let wiki.template_path = '~/.shellrc/vimwiki/style/' +let wiki.template_default = 'template' +let wiki.template_ext = '.html' +let wiki.css_name = 'css/vimwiki.css' +let wiki.auto_export = 0 +let wiki.nested_syntaxes = { + \'prolog': 'prolog' + \, 'bash': 'sh' + \, 'tcl': 'tcl' + \, 'scheme': 'scheme' + \, 'haskell': 'haskell' + \, 'erlang': 'erlang' + \, 'bnf': 'abnf' + \, 'plain': 'txt' + \, 'diff': 'diff' + \, 'javascript': 'javascript' + \, 'vim': 'vim' + \, 'latex': 'tex'} + +let wiki.diary_rel_path = 'ЖЖ/Календарь/' +let wiki.diary_index = 'Календарь' +let wiki.diary_header = 'Календарь' +let wiki.diary_link_count = 4 +let wiki.maxhi = 0 " Не проверять ссылки (на больших файлах вики тормозит) + +let g:vimwiki_list = [wiki] + +let g:vimwiki_hl_headers = 1 +let g:vimwiki_folding = 1 +let g:vimwiki_fold_lists = 1 " Скрытие блоков +let g:vimwiki_camel_case = 0 " Не использовать ВикиСлова +let g:vimwiki_list_ignore_newline = 0 " Преобразовывать переводы строк в + +let g:vimwiki_html_header_numbering = 2 " Нумерация заголовков HTML со второго уровня +let g:vimwiki_html_header_numbering_sym = '.' " Нумерация оканчивается точкой + +let g:vimwiki_user_htmls = 'ЖЖ/Календарь/today.html,ЖЖ/Календарь/timeline.html,ЖЖ/Календарь/statistic_words.html,ЖЖ/Календарь/statistic_tags.html,ЖЖ/Календарь/Карты/Челябинск.html,ЖЖ/Календарь/Карты/Дегтярск.html,ЖЖ/Календарь/Карты/Карабаш.html,ЖЖ/Календарь/Карты/Екатеринбург.html' + +let g:vimwiki_hl_cb_checked = 1 " Подсвечивать выполненные задания как комментарии + +let g:vimwiki_valid_html_tags = 'b,i,s,u,sub,sup,kbd,br,hr,embed,type,src,width,height,quality,object,param,p,cite' +let g:vimwiki_file_exts = 'pdf,txt,doc,rtf,xls,php,zip,rar,7z,html,gz,mp3,ogg' + +"}}} + +" MRU"{{{ +nmap m :MRU + +let MRU_File = $HOME . '/.shellrc/var/vim/mru/vim_mru_files' +let MRU_Max_Entries = 100 +let MRU_Exclude_Files = '^/tmp/.*\|^/var/tmp/.*\|.*COMMIT_EDITMSG.*' +"}}} + +" Quickhl {{{ +nmap qq (quickhl-toggle) +vmap qq (quickhl-toggle) +nmap qr (quickhl-reset) +vmap qr (quickhl-reset) +"}}} + +" CommentToggle"{{{ +nmap CommentToggle +imap CommentToggle +vmap CommentToggle +"}}} + +" Calendar"{{{ +let g:calendar_navi_label = 'Пред,Тек,След' +let g:calendar_mruler = 'Январь,Февраль,Март,Апрель,Май,Июнь,Июль,Август,Сентябрь' + \.',Октябрь,Ноябрь,Декабрь' +let g:calendar_wruler = 'Вс Пн Вт Ср Чт Пт Сб' +let g:calendar_monday = 1 +"}}} + +" Tasklist"{{{ +let g:tlWindowPosition = 1 " Открывать окно снизу экрана +let g:tlTokenList = ['TODO','FIXME','DONE','INPROGRESS','XXX','DEBUG','TMP','BUGS', 'knownBug'] +"}}} + +" Neocomplcache {{{ +let g:neocomplcache_enable_at_startup = 1 "Автоматически загружать плагин +let g:neocomplcache_auto_completion_start_length = 3 +let g:neocomplcache_disable_auto_complete = 1 "Дополнение возможно по +let g:neocomplcache_temporary_dir = $HOME . '/.shellrc/var/vim/neocon' +"}}} + +" Neosnippet {{{ +let g:neosnippet#snippets_directory = $HOME . '/.vim/+snippets/' + +imap (neosnippet_expand_or_jump) +smap (neosnippet_expand_or_jump) +xmap (neosnippet_expand_target) + +if has('conceal') + set conceallevel=2 concealcursor=i +endif +"}}} + +" Timestamp {{{ +let g:timestamp_regexp = '\v\C%(<%(Last %([cC]hanged?|modified)|Modified|Измен(е|ё)н)\s*:\s+)@<=.{2,3} \d{2} .{3} \d{4} \d{2}:\d{2}:\d{2}.*$|TIMESTAMP' + +" %c seems to be different on different systems. Use a full form instead. +let g:timestamp_rep = '%a %d %b %Y %H:%M:%S' + +"}}} + +"Pummode"{{{ +" Выбор вариантов дополнения курсорными клавишами +call pummode#map('i', '', 0, 'j', '') +call pummode#map('i', '', 0, 'k', '') +call pummode#map('i', '', 0, '', '') +"}}} + +"Yankring {{{ +let g:yankring_history_file=".shellrc/var/vim/yankring/history" +let g:yankring_min_element_length = 5 +let g:yankring_map_dot = 0 +let g:yankring_ignore_operator = 'g~ gu gU ! = gq g? > < zf g@ @:' + +map y :YRShow +"}}} + +"Errormarker {{{ +let g:errormarker_errorgroup = "Error" +let g:errormarker_warninggroup = "Todo" +let g:errormarker_errortext = "⚫" +let g:errormarker_warningtext = "⚑" +"}}} + +" Figlet {{{ +let g:figletFontDir = $HOME . '/.shellrc/etc/soft/figlet/fonts/' +let g:figletFont = 'slant' +" }}} + +" Vim-Easy-Align {{{ +vnoremap :EasyAlign +" }}} + +" vim-sdcv {{{ +let g:sdcv_save = 1 +let g:sdcv_cmd = "sdcv -n --data-dir ~/.shellrc/etc/soft/sdcv/dictionaries/ " + +nmap fw ,qq:call Dict(expand("")) +vmap fw ,qqgv:call Dict(@*) +" }}} + +" javascript-libraries-syntax {{{ +let g:used_javascript_libs = 'jquery,angularjs,angularui,angularuirouter' +" }}} + +" languagetool {{{ +" +function LTCheck(ltl) + let g:languagetool_win_height=-1 + let g:languagetool_lang=a:ltl + echo ' [*]' + execute 'LanguageToolCheck' + execute 'lopen' +endfunction + +nmap lr :call LTCheck("ru") +nmap le :call LTCheck("en") +nmap ls :call LTCheck("sr") +" }}} + +" }}}########################################################################### + diff --git a/etc/soft/vim/vim/+ftplugin/markdown.vim b/etc/soft/vim/vim/+ftplugin/markdown.vim new file mode 100644 index 0000000..10461d3 --- /dev/null +++ b/etc/soft/vim/vim/+ftplugin/markdown.vim @@ -0,0 +1,2 @@ +" setlocal syntax=off +" set re=1 diff --git a/etc/soft/vim/vim/+plugins/AnsiESC/README.md b/etc/soft/vim/vim/+plugins/AnsiESC/README.md deleted file mode 100644 index a932bb6..0000000 --- a/etc/soft/vim/vim/+plugins/AnsiESC/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# Improved AnsiEsc.vim - -This is a [Vim script №302: AnsiEsc.vim](http://www.vim.org/scripts/script.php?script_id=302) -updated to [latest author's version](http://www.drchip.org/astronaut/vim/index.html#ANSIESC) -with several fixes/improvements. - -Download .zip/.vmb from http://www.vim.org/scripts/script.php?script_id=4979 - -## Changes - -* updated to latest author's version: **13e** (Dec 06, 2012) -* add support for simple ANSI sequences like "bold" (without defining color) -* add support for 16-color 'light' escape sequences (by Andy Berdan, merged from https://github.com/berdandy/AnsiEsc.vim) -* disable `\swp` and `\rwp` maps if `g:no_plugin_maps` or `g:no_cecutil_maps` exists -* disable DrChip/AnsiEsc menu if `g:no_drchip_menu` or `g:no_ansiesc_menu` exists -* add support for simple ANSI sequences like disable bold/italic/etc. - -## Original README - -This is a mirror of http://www.vim.org/scripts/script.php?script_id=302 - -Files with ANSI escape sequences look good when dumped onto a terminal that accepts them, but have been a distracting clutter when edited via vim. The AnsiEsc.vim file, when sourced, will conceal Ansi escape sequences but will cause subsequent text to be colored as the escape sequence specifies when used with Vince Negri's conceal patch. AnsiEsc.vim v3 or later uses the conceal patch to accomplish this. - -Without that conceal patch, the best that can be done is to suppress Ansi escape sequences with "Ignore" highlighting. AnsiEsc.vim v2 does that. - -### VIM Developer's Corner: - -Vince Negri's "conceal" patch to vim6.3 and vim7.0 allows one to suppress strings within a line; ie. in-line folding! This feature is ideal for Ansi escape sequence handling. Starting with AnsiEsc's version 3 the script makes use of that new capability to display Ansi-sequence containing files. The Ansi escape sequences themselves are concealed (except for the line where the cursor is), but they have their desired colorizing effect. Note that you must have Vim7.0 with the +conceal option for the latest (v8) to work. Apply Vince Negri's patch to the Vim 7.0 source code and compile Vim for "huge" features. Once you've done that, simply source the file in when you want to see Ansi-escape sequenced text in Vim. - -### Typical Compiling Directions: - -To use the AnsiEsc v2, just source it in when you wish to; your vim version needs +syntax, which is fairly common. - -To use the conceal-mode AnsiEsc (those with versions >= 3), you'll need to have a Vim that has been patched with Vince Negri's concealownsyntax patch; the version will show both +syntax and +conceal. - -Typical compiling directions: - -* cd ..wherever../vim70/ -* browse http://sites.google.com/site/vincenegri/ for the conceal/ownsyntax patch -* patch -p0 < conceal-ownsyntax.diff -* make distclean -* configure --with-features=huge -* make -* make install - - -(also see: vimtip#1308) -(alpha/beta version available at http://mysite.verizon.net/astronaut/vim/index.html#ANSIESC) - diff --git a/etc/soft/vim/vim/+plugins/AnsiESC/autoload/AnsiEsc.vim b/etc/soft/vim/vim/+plugins/AnsiESC/autoload/AnsiEsc.vim deleted file mode 100644 index 970579c..0000000 --- a/etc/soft/vim/vim/+plugins/AnsiESC/autoload/AnsiEsc.vim +++ /dev/null @@ -1,1057 +0,0 @@ -" AnsiEsc.vim: Uses syntax highlighting. A vim 7.0 plugin! -" Language: Text with ansi escape sequences -" Maintainer: Charles E. Campbell -" Version: 13e ASTRO-ONLY -" Date: Dec 06, 2012 -" -" Usage: :AnsiEsc -" Note: This plugin requires +conceal -" -" GetLatestVimScripts: 302 1 :AutoInstall: AnsiEsc.vim -"redraw!|call DechoSep()|call inputsave()|call input("Press to continue")|call inputrestore() -" --------------------------------------------------------------------- -"DechoTabOn -" Load Once: {{{1 -if exists("g:loaded_AnsiEsc") - finish -endif -let g:loaded_AnsiEsc = "v13e" -if v:version < 700 - echohl WarningMsg - echo "***warning*** this version of AnsiEsc needs vim 7.0" - echohl Normal - finish -endif -let s:keepcpo= &cpo -set cpo&vim - -" --------------------------------------------------------------------- -" AnsiEsc#AnsiEsc: toggles ansi-escape code visualization {{{2 -fun! AnsiEsc#AnsiEsc(rebuild) -" call Dfunc("AnsiEsc#AnsiEsc(rebuild=".a:rebuild.")") - if a:rebuild -" call Decho("rebuilding AnsiEsc tables") - call AnsiEsc#AnsiEsc(0) - call AnsiEsc#AnsiEsc(0) -" call Dret("AnsiEsc#AnsiEsc") - return - endif - let bn= bufnr("%") - if !exists("s:AnsiEsc_enabled_{bn}") - let s:AnsiEsc_enabled_{bn}= 0 - endif - if s:AnsiEsc_enabled_{bn} - " disable AnsiEsc highlighting -" call Decho("disable AnsiEsc highlighting: s:AnsiEsc_ft_".bn."<".s:AnsiEsc_ft_{bn}."> bn#".bn) - if exists("g:colors_name")|let colorname= g:colors_name|endif - if exists("s:conckeep_{bufnr('%')}")|let &l:conc= s:conckeep_{bufnr('%')}|unlet s:conckeep_{bufnr('%')}|endif - if exists("s:colekeep_{bufnr('%')}")|let &l:cole= s:colekeep_{bufnr('%')}|unlet s:colekeep_{bufnr('%')}|endif - if exists("s:cocukeep_{bufnr('%')}")|let &l:cocu= s:cocukeep_{bufnr('%')}|unlet s:cocukeep_{bufnr('%')}|endif - hi! link ansiStop NONE - syn clear - hi clear - syn reset - exe "set ft=".s:AnsiEsc_ft_{bn} - if exists("colorname")|exe "colors ".colorname|endif - let s:AnsiEsc_enabled_{bn}= 0 - if !exists('g:no_drchip_menu') && !exists('g:no_ansiesc_menu') - if has("gui_running") && has("menu") && &go =~# 'm' - " menu support - exe 'silent! unmenu '.g:DrChipTopLvlMenu.'AnsiEsc' - exe 'menu '.g:DrChipTopLvlMenu.'AnsiEsc.Start:AnsiEsc :AnsiEsc' - endif - endif - let &l:hl= s:hlkeep_{bufnr("%")} -" call Dret("AnsiEsc#AnsiEsc") - return - else - let s:AnsiEsc_ft_{bn} = &ft - let s:AnsiEsc_enabled_{bn} = 1 -" call Decho("enable AnsiEsc highlighting: s:AnsiEsc_ft_".bn."<".s:AnsiEsc_ft_{bn}."> bn#".bn) - if !exists('g:no_drchip_menu') && !exists('g:no_ansiesc_menu') - if has("gui_running") && has("menu") && &go =~# 'm' - " menu support - exe 'silent! unmenu '.g:DrChipTopLvlMenu.'AnsiEsc' - exe 'menu '.g:DrChipTopLvlMenu.'AnsiEsc.Stop:AnsiEsc :AnsiEsc' - endif - endif - - " ----------------- - " Conceal Support: {{{2 - " ----------------- - if has("conceal") - if v:version < 703 - if &l:conc != 3 - let s:conckeep_{bufnr('%')}= &cole - setlocal conc=3 -" call Decho("l:conc=".&l:conc) - endif - else - if &l:cole != 3 || &l:cocu != "nv" - let s:colekeep_{bufnr('%')}= &l:cole - let s:cocukeep_{bufnr('%')}= &l:cocu - setlocal cole=3 cocu=nv -" call Decho("l:cole=".&l:cole." l:cocu=".&l:cocu) - endif - endif - endif - endif - - syn clear - - " suppress escaped sequences that don't involve colors (which may or may not be ansi-compliant) - if has("conceal") - syn match ansiSuppress conceal '\e\[[0-9;]*[^m]' - syn match ansiSuppress conceal '\e\[?\d*[^m]' - syn match ansiSuppress conceal '\b' - else - syn match ansiSuppress '\e\[[0-9;]*[^m]' - syn match ansiSuppress '\e\[?\d*[^m]' - syn match ansiSuppress '\b' - endif - - " ------------------------------ - " Ansi Escape Sequence Handling: {{{2 - " ------------------------------ - syn region ansiNone start="\e\[[01;]m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiNone start="\e\[m" end="\e\["me=e-2 contains=ansiConceal - - " disable bold/italic/etc. - no way to disable one attribute, so disable them all - syn region ansiNone start="\e\[22m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiNone start="\e\[23m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiNone start="\e\[24m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiNone start="\e\[27m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiNone start="\e\[29m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlack start="\e\[;\=0\{0,2};\=30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRed start="\e\[;\=0\{0,2};\=31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreen start="\e\[;\=0\{0,2};\=32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellow start="\e\[;\=0\{0,2};\=33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlue start="\e\[;\=0\{0,2};\=34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagenta start="\e\[;\=0\{0,2};\=35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyan start="\e\[;\=0\{0,2};\=36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhite start="\e\[;\=0\{0,2};\=37m" end="\e\["me=e-2 contains=ansiConceal - " set default ansi to white - syn region ansiWhite start="\e\[;\=0\{0,2};\=39m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBold start="\e\[;\=0\{0,2};\=1m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldBlack start="\e\[;\=0\{0,2};\=\%(1;30\|30;1\)m" end="\e\["me=e-2 contains=ansiConceal - " this is supposed to be bold-black, ie, dark grey, but it doesn't work well - " on a lot of displays. We'll settle for non-bold white - syn region ansiWhite start="\e\[;\=0\{0,2};\=90m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldRed start="\e\[;\=0\{0,2};\=\%(1;31\|31;1\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldRed start="\e\[;\=0\{0,2};\=91m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldGreen start="\e\[;\=0\{0,2};\=\%(1;32\|32;1\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldGreen start="\e\[;\=0\{0,2};\=92m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldYellow start="\e\[;\=0\{0,2};\=\%(1;33\|33;1\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldYellow start="\e\[;\=0\{0,2};\=93m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldBlue start="\e\[;\=0\{0,2};\=\%(1;34\|34;1\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldBlue start="\e\[;\=0\{0,2};\=94m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldMagenta start="\e\[;\=0\{0,2};\=\%(1;35\|35;1\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldMagenta start="\e\[;\=0\{0,2};\=95m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldCyan start="\e\[;\=0\{0,2};\=\%(1;36\|36;1\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldCyan start="\e\[;\=0\{0,2};\=96m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldWhite start="\e\[;\=0\{0,2};\=\%(1;37\|37;1\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBoldWhite start="\e\[;\=0\{0,2};\=97m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiStandout start="\e\[;\=0\{0,2};\=\%(1;\)\=3m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutBlack start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;30\|30;3\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutRed start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;31\|31;3\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutGreen start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;32\|32;3\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutYellow start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;33\|33;3\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutBlue start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;34\|34;3\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutMagenta start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;35\|35;3\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutCyan start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;36\|36;3\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiStandoutWhite start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(3;37\|37;3\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiItalic start="\e\[;\=0\{0,2};\=\%(1;\)\=2m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicBlack start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;30\|30;2\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicRed start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;31\|31;2\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicGreen start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;32\|32;2\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicYellow start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;33\|33;2\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicBlue start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;34\|34;2\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicMagenta start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;35\|35;2\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicCyan start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;36\|36;2\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiItalicWhite start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(2;37\|37;2\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiUnderline start="\e\[;\=0\{0,2};\=\%(1;\)\=4m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineBlack start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;30\|30;4\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineRed start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;31\|31;4\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineGreen start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;32\|32;4\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineYellow start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;33\|33;4\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineBlue start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;34\|34;4\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineMagenta start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;35\|35;4\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineCyan start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;36\|36;4\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiUnderlineWhite start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(4;37\|37;4\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlink start="\e\[;\=0\{0,2};\=\%(1;\)\=5m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkBlack start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;30\|30;5\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkRed start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;31\|31;5\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkGreen start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;32\|32;5\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkYellow start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;33\|33;5\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkBlue start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;34\|34;5\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkMagenta start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;35\|35;5\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkCyan start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;36\|36;5\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlinkWhite start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(5;37\|37;5\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiRapidBlink start="\e\[;\=0\{0,2};\=\%(1;\)\=6m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkBlack start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;30\|30;6\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkRed start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;31\|31;6\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkGreen start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;32\|32;6\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkYellow start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;33\|33;6\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkBlue start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;34\|34;6\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkMagenta start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;35\|35;6\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkCyan start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;36\|36;6\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRapidBlinkWhite start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(6;37\|37;6\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiRV start="\e\[;\=0\{0,2};\=\%(1;\)\=7m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVBlack start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;30\|30;7\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVRed start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;31\|31;7\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVGreen start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;32\|32;7\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVYellow start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;33\|33;7\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVBlue start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;34\|34;7\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVMagenta start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;35\|35;7\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVCyan start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;36\|36;7\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRVWhite start="\e\[;\=0\{0,2};\=\%(1;\)\=\%(7;37\|37;7\)m" end="\e\["me=e-2 contains=ansiConceal - - if v:version >= 703 - " handles implicit background highlighting -" call Decho("installing implicit background highlighting") - - syn cluster AnsiBlackBgGroup contains=ansiFgBlackBlack,ansiFgRedBlack,ansiFgGreenBlack,ansiFgYellowBlack,ansiFgBlueBlack,ansiFgMagentaBlack,ansiFgCyanBlack,ansiFgWhiteBlack - syn region ansiBlackBg start="\e\[;\=0\{0,2};\=\%(1;\)\=40\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiBlackBgGroup - syn region ansiFgBlackBlack contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedBlack contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenBlack contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowBlack contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueBlack contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaBlack contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanBlack contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteBlack contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackBlack ansiBlackBlack - hi link ansiFgRedBlack ansiRedBlack - hi link ansiFgGreenBlack ansiGreenBlack - hi link ansiFgYellowBlack ansiYellowBlack - hi link ansiFgBlueBlack ansiBlueBlack - hi link ansiFgMagentaBlack ansiMagentaBlack - hi link ansiFgCyanBlack ansiCyanBlack - hi link ansiFgWhiteBlack ansiWhiteBlack - - syn cluster AnsiRedBgGroup contains=ansiFgBlackRed,ansiFgRedRed,ansiFgGreenRed,ansiFgYellowRed,ansiFgBlueRed,ansiFgMagentaRed,ansiFgCyanRed,ansiFgWhiteRed - syn region ansiRedBg start="\e\[;\=0\{0,2};\=\%(1;\)\=41\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiRedBgGroup - syn region ansiFgBlackRed contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedRed contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenRed contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowRed contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueRed contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaRed contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanRed contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteRed contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackRed ansiBlackRed - hi link ansiFgRedRed ansiRedRed - hi link ansiFgGreenRed ansiGreenRed - hi link ansiFgYellowRed ansiYellowRed - hi link ansiFgBlueRed ansiBlueRed - hi link ansiFgMagentaRed ansiMagentaRed - hi link ansiFgCyanRed ansiCyanRed - hi link ansiFgWhiteRed ansiWhiteRed - - syn cluster AnsiGreenBgGroup contains=ansiFgBlackGreen,ansiFgRedGreen,ansiFgGreenGreen,ansiFgYellowGreen,ansiFgBlueGreen,ansiFgMagentaGreen,ansiFgCyanGreen,ansiFgWhiteGreen - syn region ansiGreenBg start="\e\[;\=0\{0,2};\=\%(1;\)\=42\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiGreenBgGroup - syn region ansiFgBlackGreen contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedGreen contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenGreen contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowGreen contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueGreen contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaGreen contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanGreen contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteGreen contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackGreen ansiBlackGreen - hi link ansiFgGreenGreen ansiGreenGreen - hi link ansiFgGreenGreen ansiGreenGreen - hi link ansiFgYellowGreen ansiYellowGreen - hi link ansiFgBlueGreen ansiBlueGreen - hi link ansiFgMagentaGreen ansiMagentaGreen - hi link ansiFgCyanGreen ansiCyanGreen - hi link ansiFgWhiteGreen ansiWhiteGreen - - syn cluster AnsiYellowBgGroup contains=ansiFgBlackYellow,ansiFgRedYellow,ansiFgGreenYellow,ansiFgYellowYellow,ansiFgBlueYellow,ansiFgMagentaYellow,ansiFgCyanYellow,ansiFgWhiteYellow - syn region ansiYellowBg start="\e\[;\=0\{0,2};\=\%(1;\)\=43\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiYellowBgGroup - syn region ansiFgBlackYellow contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedYellow contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenYellow contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowYellow contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueYellow contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaYellow contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanYellow contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteYellow contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackYellow ansiBlackYellow - hi link ansiFgYellowYellow ansiYellowYellow - hi link ansiFgGreenYellow ansiGreenYellow - hi link ansiFgYellowYellow ansiYellowYellow - hi link ansiFgBlueYellow ansiBlueYellow - hi link ansiFgMagentaYellow ansiMagentaYellow - hi link ansiFgCyanYellow ansiCyanYellow - hi link ansiFgWhiteYellow ansiWhiteYellow - - syn cluster AnsiBlueBgGroup contains=ansiFgBlackBlue,ansiFgRedBlue,ansiFgGreenBlue,ansiFgYellowBlue,ansiFgBlueBlue,ansiFgMagentaBlue,ansiFgCyanBlue,ansiFgWhiteBlue - syn region ansiBlueBg contained start="\e\[;\=0\{0,2};\=\%(1;\)\=44\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiBlueBgGroup - syn region ansiFgBlackBlue contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedBlue contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenBlue contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowBlue contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueBlue contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaBlue contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanBlue contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteBlue contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackBlue ansiBlackBlue - hi link ansiFgBlueBlue ansiBlueBlue - hi link ansiFgGreenBlue ansiGreenBlue - hi link ansiFgYellowBlue ansiYellowBlue - hi link ansiFgBlueBlue ansiBlueBlue - hi link ansiFgMagentaBlue ansiMagentaBlue - hi link ansiFgCyanBlue ansiCyanBlue - hi link ansiFgWhiteBlue ansiWhiteBlue - - syn cluster AnsiBlueBgGroup contains=ansiFgBlackBlue,ansiFgRedBlue,ansiFgGreenBlue,ansiFgYellowBlue,ansiFgBlueBlue,ansiFgMagentaBlue,ansiFgCyanBlue,ansiFgWhiteBlue - syn region ansiFgBlackBlue contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedBlue contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenBlue contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowBlue contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueBlue contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaBlue contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanBlue contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteBlue contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackBlue ansiBlackBlue - hi link ansiFgBlueBlue ansiBlueBlue - hi link ansiFgGreenBlue ansiGreenBlue - hi link ansiFgYellowBlue ansiYellowBlue - hi link ansiFgBlueBlue ansiBlueBlue - hi link ansiFgMagentaBlue ansiMagentaBlue - hi link ansiFgCyanBlue ansiCyanBlue - hi link ansiFgWhiteBlue ansiWhiteBlue - - syn cluster AnsiMagentaBgGroup contains=ansiFgBlackMagenta,ansiFgRedMagenta,ansiFgGreenMagenta,ansiFgYellowMagenta,ansiFgBlueMagenta,ansiFgMagentaMagenta,ansiFgCyanMagenta,ansiFgWhiteMagenta - syn region ansiMagentaBg contained start="\e\[;\=0\{0,2};\=\%(1;\)\=45\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiMagentaBgGroup - syn region ansiFgBlackMagenta contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedMagenta contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenMagenta contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowMagenta contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueMagenta contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaMagenta contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanMagenta contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteMagenta contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackMagenta ansiBlackMagenta - hi link ansiFgMagentaMagenta ansiMagentaMagenta - hi link ansiFgGreenMagenta ansiGreenMagenta - hi link ansiFgYellowMagenta ansiYellowMagenta - hi link ansiFgBlueMagenta ansiBlueMagenta - hi link ansiFgMagentaMagenta ansiMagentaMagenta - hi link ansiFgCyanMagenta ansiCyanMagenta - hi link ansiFgWhiteMagenta ansiWhiteMagenta - - syn cluster AnsiCyanBgGroup contains=ansiFgBlackCyan,ansiFgRedCyan,ansiFgGreenCyan,ansiFgYellowCyan,ansiFgBlueCyan,ansiFgMagentaCyan,ansiFgCyanCyan,ansiFgWhiteCyan - syn region ansiCyanBg start="\e\[;\=0\{0,2};\=\%(1;\)\=46\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiCyanBgGroup - syn region ansiFgBlackCyan contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedCyan contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenCyan contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowCyan contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueCyan contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaCyan contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanCyan contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteCyan contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackCyan ansiBlackCyan - hi link ansiFgCyanCyan ansiCyanCyan - hi link ansiFgGreenCyan ansiGreenCyan - hi link ansiFgYellowCyan ansiYellowCyan - hi link ansiFgBlueCyan ansiBlueCyan - hi link ansiFgMagentaCyan ansiMagentaCyan - hi link ansiFgCyanCyan ansiCyanCyan - hi link ansiFgWhiteCyan ansiWhiteCyan - - syn cluster AnsiWhiteBgGroup contains=ansiFgBlackWhite,ansiFgRedWhite,ansiFgGreenWhite,ansiFgYellowWhite,ansiFgBlueWhite,ansiFgMagentaWhite,ansiFgCyanWhite,ansiFgWhiteWhite - syn region ansiWhiteBg start="\e\[;\=0\{0,2};\=\%(1;\)\=47\%(1;\)\=m" end="\e\[[04]"me=e-3 contains=ansiConceal,@ansiWhiteBgGroup - syn region ansiFgBlackWhite contained start="\e\[30m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgRedWhite contained start="\e\[31m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgGreenWhite contained start="\e\[32m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgYellowWhite contained start="\e\[33m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgBlueWhite contained start="\e\[34m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgMagentaWhite contained start="\e\[35m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgCyanWhite contained start="\e\[36m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiFgWhiteWhite contained start="\e\[37m" end="\e\["me=e-2 contains=ansiConceal - hi link ansiFgBlackWhite ansiBlackWhite - hi link ansiFgWhiteWhite ansiWhiteWhite - hi link ansiFgGreenWhite ansiGreenWhite - hi link ansiFgYellowWhite ansiYellowWhite - hi link ansiFgBlueWhite ansiBlueWhite - hi link ansiFgMagentaWhite ansiMagentaWhite - hi link ansiFgCyanWhite ansiCyanWhite - hi link ansiFgWhiteWhite ansiWhiteWhite - - endif - - if has("conceal") - syn match ansiStop conceal "\e\[;\=0\{1,2}m" - syn match ansiStop conceal "\e\[K" - syn match ansiStop conceal "\e\[H" - syn match ansiStop conceal "\e\[2J" - else - syn match ansiStop "\e\[;\=0\{0,2}m" - syn match ansiStop "\e\[K" - syn match ansiStop "\e\[H" - syn match ansiStop "\e\[2J" - endif - - "syn match ansiIgnore conceal "\e\[\([56];3[0-9]\|3[0-9];[56]\)m" - "syn match ansiIgnore conceal "\e\[\([0-9]\+;\)\{2,}[0-9]\+m" - - " --------------------------------------------------------------------- - " Some Color Combinations: - can't do 'em all, the qty of highlighting groups is limited! {{{2 - " --------------------------------------------------------------------- - syn region ansiBlackBlack start="\e\[0\{0,2};\=\(30;40\|40;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedBlack start="\e\[0\{0,2};\=\(31;40\|40;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenBlack start="\e\[0\{0,2};\=\(32;40\|40;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowBlack start="\e\[0\{0,2};\=\(33;40\|40;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueBlack start="\e\[0\{0,2};\=\(34;40\|40;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaBlack start="\e\[0\{0,2};\=\(35;40\|40;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanBlack start="\e\[0\{0,2};\=\(36;40\|40;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteBlack start="\e\[0\{0,2};\=\(37;40\|40;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlackRed start="\e\[0\{0,2};\=\(30;41\|41;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedRed start="\e\[0\{0,2};\=\(31;41\|41;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenRed start="\e\[0\{0,2};\=\(32;41\|41;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowRed start="\e\[0\{0,2};\=\(33;41\|41;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueRed start="\e\[0\{0,2};\=\(34;41\|41;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaRed start="\e\[0\{0,2};\=\(35;41\|41;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanRed start="\e\[0\{0,2};\=\(36;41\|41;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteRed start="\e\[0\{0,2};\=\(37;41\|41;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlackGreen start="\e\[0\{0,2};\=\(30;42\|42;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedGreen start="\e\[0\{0,2};\=\(31;42\|42;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenGreen start="\e\[0\{0,2};\=\(32;42\|42;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowGreen start="\e\[0\{0,2};\=\(33;42\|42;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueGreen start="\e\[0\{0,2};\=\(34;42\|42;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaGreen start="\e\[0\{0,2};\=\(35;42\|42;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanGreen start="\e\[0\{0,2};\=\(36;42\|42;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteGreen start="\e\[0\{0,2};\=\(37;42\|42;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlackYellow start="\e\[0\{0,2};\=\(30;43\|43;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedYellow start="\e\[0\{0,2};\=\(31;43\|43;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenYellow start="\e\[0\{0,2};\=\(32;43\|43;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowYellow start="\e\[0\{0,2};\=\(33;43\|43;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueYellow start="\e\[0\{0,2};\=\(34;43\|43;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaYellow start="\e\[0\{0,2};\=\(35;43\|43;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanYellow start="\e\[0\{0,2};\=\(36;43\|43;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteYellow start="\e\[0\{0,2};\=\(37;43\|43;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlackBlue start="\e\[0\{0,2};\=\(30;44\|44;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedBlue start="\e\[0\{0,2};\=\(31;44\|44;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenBlue start="\e\[0\{0,2};\=\(32;44\|44;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowBlue start="\e\[0\{0,2};\=\(33;44\|44;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueBlue start="\e\[0\{0,2};\=\(34;44\|44;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaBlue start="\e\[0\{0,2};\=\(35;44\|44;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanBlue start="\e\[0\{0,2};\=\(36;44\|44;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteBlue start="\e\[0\{0,2};\=\(37;44\|44;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlackMagenta start="\e\[0\{0,2};\=\(30;45\|45;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedMagenta start="\e\[0\{0,2};\=\(31;45\|45;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenMagenta start="\e\[0\{0,2};\=\(32;45\|45;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowMagenta start="\e\[0\{0,2};\=\(33;45\|45;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueMagenta start="\e\[0\{0,2};\=\(34;45\|45;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaMagenta start="\e\[0\{0,2};\=\(35;45\|45;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanMagenta start="\e\[0\{0,2};\=\(36;45\|45;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteMagenta start="\e\[0\{0,2};\=\(37;45\|45;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlackCyan start="\e\[0\{0,2};\=\(30;46\|46;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedCyan start="\e\[0\{0,2};\=\(31;46\|46;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenCyan start="\e\[0\{0,2};\=\(32;46\|46;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowCyan start="\e\[0\{0,2};\=\(33;46\|46;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueCyan start="\e\[0\{0,2};\=\(34;46\|46;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaCyan start="\e\[0\{0,2};\=\(35;46\|46;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanCyan start="\e\[0\{0,2};\=\(36;46\|46;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteCyan start="\e\[0\{0,2};\=\(37;46\|46;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn region ansiBlackWhite start="\e\[0\{0,2};\=\(30;47\|47;30\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiRedWhite start="\e\[0\{0,2};\=\(31;47\|47;31\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiGreenWhite start="\e\[0\{0,2};\=\(32;47\|47;32\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiYellowWhite start="\e\[0\{0,2};\=\(33;47\|47;33\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiBlueWhite start="\e\[0\{0,2};\=\(34;47\|47;34\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiMagentaWhite start="\e\[0\{0,2};\=\(35;47\|47;35\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiCyanWhite start="\e\[0\{0,2};\=\(36;47\|47;36\)m" end="\e\["me=e-2 contains=ansiConceal - syn region ansiWhiteWhite start="\e\[0\{0,2};\=\(37;47\|47;37\)m" end="\e\["me=e-2 contains=ansiConceal - - syn match ansiExtended "\e\[;\=\(0;\)\=[34]8;\(\d*;\)*\d*m" contains=ansiConceal - - if has("conceal") - syn match ansiConceal contained conceal "\e\[\(\d*;\)*\d*m" - else - syn match ansiConceal contained "\e\[\(\d*;\)*\d*m" - endif - - " ------------- - " Highlighting: {{{2 - " ------------- - if !has("conceal") - " -------------- - " ansiesc_ignore: {{{3 - " -------------- - hi def link ansiConceal Ignore - hi def link ansiSuppress Ignore - hi def link ansiIgnore ansiStop - hi def link ansiStop Ignore - hi def link ansiExtended Ignore - endif - let s:hlkeep_{bufnr("%")}= &l:hl - exe "setlocal hl=".substitute(&hl,'8:[^,]\{-},','8:Ignore,',"") - - " handle 3 or more element ansi escape sequences by building syntax and highlighting rules - " specific to the current file - call s:MultiElementHandler() - - hi ansiNone cterm=NONE gui=NONE - - if &t_Co == 8 || &t_Co == 256 - " --------------------- - " eight-color handling: {{{3 - " --------------------- -" call Decho("set up 8-color highlighting groups") - hi ansiBlack ctermfg=black guifg=black cterm=none gui=none - hi ansiRed ctermfg=red guifg=red cterm=none gui=none - hi ansiGreen ctermfg=green guifg=green cterm=none gui=none - hi ansiYellow ctermfg=yellow guifg=yellow cterm=none gui=none - hi ansiBlue ctermfg=blue guifg=blue cterm=none gui=none - hi ansiMagenta ctermfg=magenta guifg=magenta cterm=none gui=none - hi ansiCyan ctermfg=cyan guifg=cyan cterm=none gui=none - hi ansiWhite ctermfg=white guifg=white cterm=none gui=none - - hi ansiBlackBg ctermbg=black guibg=black cterm=none gui=none - hi ansiRedBg ctermbg=red guibg=red cterm=none gui=none - hi ansiGreenBg ctermbg=green guibg=green cterm=none gui=none - hi ansiYellowBg ctermbg=yellow guibg=yellow cterm=none gui=none - hi ansiBlueBg ctermbg=blue guibg=blue cterm=none gui=none - hi ansiMagentaBg ctermbg=magenta guibg=magenta cterm=none gui=none - hi ansiCyanBg ctermbg=cyan guibg=cyan cterm=none gui=none - hi ansiWhiteBg ctermbg=white guibg=white cterm=none gui=none - - hi ansiBold cterm=bold gui=bold - hi ansiBoldBlack ctermfg=black guifg=black cterm=bold gui=bold - hi ansiBoldRed ctermfg=red guifg=red cterm=bold gui=bold - hi ansiBoldGreen ctermfg=green guifg=green cterm=bold gui=bold - hi ansiBoldYellow ctermfg=yellow guifg=yellow cterm=bold gui=bold - hi ansiBoldBlue ctermfg=blue guifg=blue cterm=bold gui=bold - hi ansiBoldMagenta ctermfg=magenta guifg=magenta cterm=bold gui=bold - hi ansiBoldCyan ctermfg=cyan guifg=cyan cterm=bold gui=bold - hi ansiBoldWhite ctermfg=white guifg=white cterm=bold gui=bold - - hi ansiStandout cterm=standout gui=standout - hi ansiStandoutBlack ctermfg=black guifg=black cterm=standout gui=standout - hi ansiStandoutRed ctermfg=red guifg=red cterm=standout gui=standout - hi ansiStandoutGreen ctermfg=green guifg=green cterm=standout gui=standout - hi ansiStandoutYellow ctermfg=yellow guifg=yellow cterm=standout gui=standout - hi ansiStandoutBlue ctermfg=blue guifg=blue cterm=standout gui=standout - hi ansiStandoutMagenta ctermfg=magenta guifg=magenta cterm=standout gui=standout - hi ansiStandoutCyan ctermfg=cyan guifg=cyan cterm=standout gui=standout - hi ansiStandoutWhite ctermfg=white guifg=white cterm=standout gui=standout - - hi ansiItalic cterm=italic gui=italic - hi ansiItalicBlack ctermfg=black guifg=black cterm=italic gui=italic - hi ansiItalicRed ctermfg=red guifg=red cterm=italic gui=italic - hi ansiItalicGreen ctermfg=green guifg=green cterm=italic gui=italic - hi ansiItalicYellow ctermfg=yellow guifg=yellow cterm=italic gui=italic - hi ansiItalicBlue ctermfg=blue guifg=blue cterm=italic gui=italic - hi ansiItalicMagenta ctermfg=magenta guifg=magenta cterm=italic gui=italic - hi ansiItalicCyan ctermfg=cyan guifg=cyan cterm=italic gui=italic - hi ansiItalicWhite ctermfg=white guifg=white cterm=italic gui=italic - - hi ansiUnderline cterm=underline gui=underline - hi ansiUnderlineBlack ctermfg=black guifg=black cterm=underline gui=underline - hi ansiUnderlineRed ctermfg=red guifg=red cterm=underline gui=underline - hi ansiUnderlineGreen ctermfg=green guifg=green cterm=underline gui=underline - hi ansiUnderlineYellow ctermfg=yellow guifg=yellow cterm=underline gui=underline - hi ansiUnderlineBlue ctermfg=blue guifg=blue cterm=underline gui=underline - hi ansiUnderlineMagenta ctermfg=magenta guifg=magenta cterm=underline gui=underline - hi ansiUnderlineCyan ctermfg=cyan guifg=cyan cterm=underline gui=underline - hi ansiUnderlineWhite ctermfg=white guifg=white cterm=underline gui=underline - - hi ansiBlink cterm=standout gui=undercurl - hi ansiBlinkBlack ctermfg=black guifg=black cterm=standout gui=undercurl - hi ansiBlinkRed ctermfg=red guifg=red cterm=standout gui=undercurl - hi ansiBlinkGreen ctermfg=green guifg=green cterm=standout gui=undercurl - hi ansiBlinkYellow ctermfg=yellow guifg=yellow cterm=standout gui=undercurl - hi ansiBlinkBlue ctermfg=blue guifg=blue cterm=standout gui=undercurl - hi ansiBlinkMagenta ctermfg=magenta guifg=magenta cterm=standout gui=undercurl - hi ansiBlinkCyan ctermfg=cyan guifg=cyan cterm=standout gui=undercurl - hi ansiBlinkWhite ctermfg=white guifg=white cterm=standout gui=undercurl - - hi ansiRapidBlink cterm=standout gui=undercurl - hi ansiRapidBlinkBlack ctermfg=black guifg=black cterm=standout gui=undercurl - hi ansiRapidBlinkRed ctermfg=red guifg=red cterm=standout gui=undercurl - hi ansiRapidBlinkGreen ctermfg=green guifg=green cterm=standout gui=undercurl - hi ansiRapidBlinkYellow ctermfg=yellow guifg=yellow cterm=standout gui=undercurl - hi ansiRapidBlinkBlue ctermfg=blue guifg=blue cterm=standout gui=undercurl - hi ansiRapidBlinkMagenta ctermfg=magenta guifg=magenta cterm=standout gui=undercurl - hi ansiRapidBlinkCyan ctermfg=cyan guifg=cyan cterm=standout gui=undercurl - hi ansiRapidBlinkWhite ctermfg=white guifg=white cterm=standout gui=undercurl - - hi ansiRV cterm=reverse gui=reverse - hi ansiRVBlack ctermfg=black guifg=black cterm=reverse gui=reverse - hi ansiRVRed ctermfg=red guifg=red cterm=reverse gui=reverse - hi ansiRVGreen ctermfg=green guifg=green cterm=reverse gui=reverse - hi ansiRVYellow ctermfg=yellow guifg=yellow cterm=reverse gui=reverse - hi ansiRVBlue ctermfg=blue guifg=blue cterm=reverse gui=reverse - hi ansiRVMagenta ctermfg=magenta guifg=magenta cterm=reverse gui=reverse - hi ansiRVCyan ctermfg=cyan guifg=cyan cterm=reverse gui=reverse - hi ansiRVWhite ctermfg=white guifg=white cterm=reverse gui=reverse - - hi ansiBlackBlack ctermfg=black ctermbg=black guifg=Black guibg=Black cterm=none gui=none - hi ansiRedBlack ctermfg=red ctermbg=black guifg=Red guibg=Black cterm=none gui=none - hi ansiGreenBlack ctermfg=green ctermbg=black guifg=Green guibg=Black cterm=none gui=none - hi ansiYellowBlack ctermfg=yellow ctermbg=black guifg=Yellow guibg=Black cterm=none gui=none - hi ansiBlueBlack ctermfg=blue ctermbg=black guifg=Blue guibg=Black cterm=none gui=none - hi ansiMagentaBlack ctermfg=magenta ctermbg=black guifg=Magenta guibg=Black cterm=none gui=none - hi ansiCyanBlack ctermfg=cyan ctermbg=black guifg=Cyan guibg=Black cterm=none gui=none - hi ansiWhiteBlack ctermfg=white ctermbg=black guifg=White guibg=Black cterm=none gui=none - - hi ansiBlackRed ctermfg=black ctermbg=red guifg=Black guibg=Red cterm=none gui=none - hi ansiRedRed ctermfg=red ctermbg=red guifg=Red guibg=Red cterm=none gui=none - hi ansiGreenRed ctermfg=green ctermbg=red guifg=Green guibg=Red cterm=none gui=none - hi ansiYellowRed ctermfg=yellow ctermbg=red guifg=Yellow guibg=Red cterm=none gui=none - hi ansiBlueRed ctermfg=blue ctermbg=red guifg=Blue guibg=Red cterm=none gui=none - hi ansiMagentaRed ctermfg=magenta ctermbg=red guifg=Magenta guibg=Red cterm=none gui=none - hi ansiCyanRed ctermfg=cyan ctermbg=red guifg=Cyan guibg=Red cterm=none gui=none - hi ansiWhiteRed ctermfg=white ctermbg=red guifg=White guibg=Red cterm=none gui=none - - hi ansiBlackGreen ctermfg=black ctermbg=green guifg=Black guibg=Green cterm=none gui=none - hi ansiRedGreen ctermfg=red ctermbg=green guifg=Red guibg=Green cterm=none gui=none - hi ansiGreenGreen ctermfg=green ctermbg=green guifg=Green guibg=Green cterm=none gui=none - hi ansiYellowGreen ctermfg=yellow ctermbg=green guifg=Yellow guibg=Green cterm=none gui=none - hi ansiBlueGreen ctermfg=blue ctermbg=green guifg=Blue guibg=Green cterm=none gui=none - hi ansiMagentaGreen ctermfg=magenta ctermbg=green guifg=Magenta guibg=Green cterm=none gui=none - hi ansiCyanGreen ctermfg=cyan ctermbg=green guifg=Cyan guibg=Green cterm=none gui=none - hi ansiWhiteGreen ctermfg=white ctermbg=green guifg=White guibg=Green cterm=none gui=none - - hi ansiBlackYellow ctermfg=black ctermbg=yellow guifg=Black guibg=Yellow cterm=none gui=none - hi ansiRedYellow ctermfg=red ctermbg=yellow guifg=Red guibg=Yellow cterm=none gui=none - hi ansiGreenYellow ctermfg=green ctermbg=yellow guifg=Green guibg=Yellow cterm=none gui=none - hi ansiYellowYellow ctermfg=yellow ctermbg=yellow guifg=Yellow guibg=Yellow cterm=none gui=none - hi ansiBlueYellow ctermfg=blue ctermbg=yellow guifg=Blue guibg=Yellow cterm=none gui=none - hi ansiMagentaYellow ctermfg=magenta ctermbg=yellow guifg=Magenta guibg=Yellow cterm=none gui=none - hi ansiCyanYellow ctermfg=cyan ctermbg=yellow guifg=Cyan guibg=Yellow cterm=none gui=none - hi ansiWhiteYellow ctermfg=white ctermbg=yellow guifg=White guibg=Yellow cterm=none gui=none - - hi ansiBlackBlue ctermfg=black ctermbg=blue guifg=Black guibg=Blue cterm=none gui=none - hi ansiRedBlue ctermfg=red ctermbg=blue guifg=Red guibg=Blue cterm=none gui=none - hi ansiGreenBlue ctermfg=green ctermbg=blue guifg=Green guibg=Blue cterm=none gui=none - hi ansiYellowBlue ctermfg=yellow ctermbg=blue guifg=Yellow guibg=Blue cterm=none gui=none - hi ansiBlueBlue ctermfg=blue ctermbg=blue guifg=Blue guibg=Blue cterm=none gui=none - hi ansiMagentaBlue ctermfg=magenta ctermbg=blue guifg=Magenta guibg=Blue cterm=none gui=none - hi ansiCyanBlue ctermfg=cyan ctermbg=blue guifg=Cyan guibg=Blue cterm=none gui=none - hi ansiWhiteBlue ctermfg=white ctermbg=blue guifg=White guibg=Blue cterm=none gui=none - - hi ansiBlackMagenta ctermfg=black ctermbg=magenta guifg=Black guibg=Magenta cterm=none gui=none - hi ansiRedMagenta ctermfg=red ctermbg=magenta guifg=Red guibg=Magenta cterm=none gui=none - hi ansiGreenMagenta ctermfg=green ctermbg=magenta guifg=Green guibg=Magenta cterm=none gui=none - hi ansiYellowMagenta ctermfg=yellow ctermbg=magenta guifg=Yellow guibg=Magenta cterm=none gui=none - hi ansiBlueMagenta ctermfg=blue ctermbg=magenta guifg=Blue guibg=Magenta cterm=none gui=none - hi ansiMagentaMagenta ctermfg=magenta ctermbg=magenta guifg=Magenta guibg=Magenta cterm=none gui=none - hi ansiCyanMagenta ctermfg=cyan ctermbg=magenta guifg=Cyan guibg=Magenta cterm=none gui=none - hi ansiWhiteMagenta ctermfg=white ctermbg=magenta guifg=White guibg=Magenta cterm=none gui=none - - hi ansiBlackCyan ctermfg=black ctermbg=cyan guifg=Black guibg=Cyan cterm=none gui=none - hi ansiRedCyan ctermfg=red ctermbg=cyan guifg=Red guibg=Cyan cterm=none gui=none - hi ansiGreenCyan ctermfg=green ctermbg=cyan guifg=Green guibg=Cyan cterm=none gui=none - hi ansiYellowCyan ctermfg=yellow ctermbg=cyan guifg=Yellow guibg=Cyan cterm=none gui=none - hi ansiBlueCyan ctermfg=blue ctermbg=cyan guifg=Blue guibg=Cyan cterm=none gui=none - hi ansiMagentaCyan ctermfg=magenta ctermbg=cyan guifg=Magenta guibg=Cyan cterm=none gui=none - hi ansiCyanCyan ctermfg=cyan ctermbg=cyan guifg=Cyan guibg=Cyan cterm=none gui=none - hi ansiWhiteCyan ctermfg=white ctermbg=cyan guifg=White guibg=Cyan cterm=none gui=none - - hi ansiBlackWhite ctermfg=black ctermbg=white guifg=Black guibg=White cterm=none gui=none - hi ansiRedWhite ctermfg=red ctermbg=white guifg=Red guibg=White cterm=none gui=none - hi ansiGreenWhite ctermfg=green ctermbg=white guifg=Green guibg=White cterm=none gui=none - hi ansiYellowWhite ctermfg=yellow ctermbg=white guifg=Yellow guibg=White cterm=none gui=none - hi ansiBlueWhite ctermfg=blue ctermbg=white guifg=Blue guibg=White cterm=none gui=none - hi ansiMagentaWhite ctermfg=magenta ctermbg=white guifg=Magenta guibg=White cterm=none gui=none - hi ansiCyanWhite ctermfg=cyan ctermbg=white guifg=Cyan guibg=White cterm=none gui=none - hi ansiWhiteWhite ctermfg=white ctermbg=white guifg=White guibg=White cterm=none gui=none - - if v:version >= 700 && exists("+t_Co") && &t_Co == 256 && exists("g:ansiesc_256color") - " --------------------------- - " handle 256-color terminals: {{{3 - " --------------------------- -" call Decho("set up 256-color highlighting groups") - let icolor= 1 - while icolor < 256 - let jcolor= 1 - exe "hi ansiHL_".icolor."_0 ctermfg=".icolor - exe "hi ansiHL_0_".icolor." ctermbg=".icolor -" call Decho("exe hi ansiHL_".icolor." ctermfg=".icolor) - while jcolor < 256 - exe "hi ansiHL_".icolor."_".jcolor." ctermfg=".icolor." ctermbg=".jcolor -" call Decho("exe hi ansiHL_".icolor."_".jcolor." ctermfg=".icolor." ctermbg=".jcolor) - let jcolor= jcolor + 1 - endwhile - let icolor= icolor + 1 - endwhile - endif - - else - " ---------------------------------- - " not 8 or 256 color terminals (gui): {{{3 - " ---------------------------------- -" call Decho("set up gui highlighting groups") - hi ansiBlack ctermfg=black guifg=black cterm=none gui=none - hi ansiRed ctermfg=red guifg=red cterm=none gui=none - hi ansiGreen ctermfg=green guifg=green cterm=none gui=none - hi ansiYellow ctermfg=yellow guifg=yellow cterm=none gui=none - hi ansiBlue ctermfg=blue guifg=blue cterm=none gui=none - hi ansiMagenta ctermfg=magenta guifg=magenta cterm=none gui=none - hi ansiCyan ctermfg=cyan guifg=cyan cterm=none gui=none - hi ansiWhite ctermfg=white guifg=white cterm=none gui=none - - hi ansiBlackBg ctermbg=black guibg=black cterm=none gui=none - hi ansiRedBg ctermbg=red guibg=red cterm=none gui=none - hi ansiGreenBg ctermbg=green guibg=green cterm=none gui=none - hi ansiYellowBg ctermbg=yellow guibg=yellow cterm=none gui=none - hi ansiBlueBg ctermbg=blue guibg=blue cterm=none gui=none - hi ansiMagentaBg ctermbg=magenta guibg=magenta cterm=none gui=none - hi ansiCyanBg ctermbg=cyan guibg=cyan cterm=none gui=none - hi ansiWhiteBg ctermbg=white guibg=white cterm=none gui=none - - hi ansiBold cterm=bold gui=bold - hi ansiBoldBlack ctermfg=black guifg=black cterm=bold gui=bold - hi ansiBoldRed ctermfg=red guifg=red cterm=bold gui=bold - hi ansiBoldGreen ctermfg=green guifg=green cterm=bold gui=bold - hi ansiBoldYellow ctermfg=yellow guifg=yellow cterm=bold gui=bold - hi ansiBoldBlue ctermfg=blue guifg=blue cterm=bold gui=bold - hi ansiBoldMagenta ctermfg=magenta guifg=magenta cterm=bold gui=bold - hi ansiBoldCyan ctermfg=cyan guifg=cyan cterm=bold gui=bold - hi ansiBoldWhite ctermfg=white guifg=white cterm=bold gui=bold - - hi ansiStandout cterm=standout gui=standout - hi ansiStandoutBlack ctermfg=black guifg=black cterm=standout gui=standout - hi ansiStandoutRed ctermfg=red guifg=red cterm=standout gui=standout - hi ansiStandoutGreen ctermfg=green guifg=green cterm=standout gui=standout - hi ansiStandoutYellow ctermfg=yellow guifg=yellow cterm=standout gui=standout - hi ansiStandoutBlue ctermfg=blue guifg=blue cterm=standout gui=standout - hi ansiStandoutMagenta ctermfg=magenta guifg=magenta cterm=standout gui=standout - hi ansiStandoutCyan ctermfg=cyan guifg=cyan cterm=standout gui=standout - hi ansiStandoutWhite ctermfg=white guifg=white cterm=standout gui=standout - - hi ansiItalic cterm=italic gui=italic - hi ansiItalicBlack ctermfg=black guifg=black cterm=italic gui=italic - hi ansiItalicRed ctermfg=red guifg=red cterm=italic gui=italic - hi ansiItalicGreen ctermfg=green guifg=green cterm=italic gui=italic - hi ansiItalicYellow ctermfg=yellow guifg=yellow cterm=italic gui=italic - hi ansiItalicBlue ctermfg=blue guifg=blue cterm=italic gui=italic - hi ansiItalicMagenta ctermfg=magenta guifg=magenta cterm=italic gui=italic - hi ansiItalicCyan ctermfg=cyan guifg=cyan cterm=italic gui=italic - hi ansiItalicWhite ctermfg=white guifg=white cterm=italic gui=italic - - hi ansiUnderline cterm=underline gui=underline - hi ansiUnderlineBlack ctermfg=black guifg=black cterm=underline gui=underline - hi ansiUnderlineRed ctermfg=red guifg=red cterm=underline gui=underline - hi ansiUnderlineGreen ctermfg=green guifg=green cterm=underline gui=underline - hi ansiUnderlineYellow ctermfg=yellow guifg=yellow cterm=underline gui=underline - hi ansiUnderlineBlue ctermfg=blue guifg=blue cterm=underline gui=underline - hi ansiUnderlineMagenta ctermfg=magenta guifg=magenta cterm=underline gui=underline - hi ansiUnderlineCyan ctermfg=cyan guifg=cyan cterm=underline gui=underline - hi ansiUnderlineWhite ctermfg=white guifg=white cterm=underline gui=underline - - hi ansiBlink cterm=standout gui=undercurl - hi ansiBlinkBlack ctermfg=black guifg=black cterm=standout gui=undercurl - hi ansiBlinkRed ctermfg=red guifg=red cterm=standout gui=undercurl - hi ansiBlinkGreen ctermfg=green guifg=green cterm=standout gui=undercurl - hi ansiBlinkYellow ctermfg=yellow guifg=yellow cterm=standout gui=undercurl - hi ansiBlinkBlue ctermfg=blue guifg=blue cterm=standout gui=undercurl - hi ansiBlinkMagenta ctermfg=magenta guifg=magenta cterm=standout gui=undercurl - hi ansiBlinkCyan ctermfg=cyan guifg=cyan cterm=standout gui=undercurl - hi ansiBlinkWhite ctermfg=white guifg=white cterm=standout gui=undercurl - - hi ansiRapidBlink cterm=standout gui=undercurl - hi ansiRapidBlinkBlack ctermfg=black guifg=black cterm=standout gui=undercurl - hi ansiRapidBlinkRed ctermfg=red guifg=red cterm=standout gui=undercurl - hi ansiRapidBlinkGreen ctermfg=green guifg=green cterm=standout gui=undercurl - hi ansiRapidBlinkYellow ctermfg=yellow guifg=yellow cterm=standout gui=undercurl - hi ansiRapidBlinkBlue ctermfg=blue guifg=blue cterm=standout gui=undercurl - hi ansiRapidBlinkMagenta ctermfg=magenta guifg=magenta cterm=standout gui=undercurl - hi ansiRapidBlinkCyan ctermfg=cyan guifg=cyan cterm=standout gui=undercurl - hi ansiRapidBlinkWhite ctermfg=white guifg=white cterm=standout gui=undercurl - - hi ansiRV cterm=reverse gui=reverse - hi ansiRVBlack ctermfg=black guifg=black cterm=reverse gui=reverse - hi ansiRVRed ctermfg=red guifg=red cterm=reverse gui=reverse - hi ansiRVGreen ctermfg=green guifg=green cterm=reverse gui=reverse - hi ansiRVYellow ctermfg=yellow guifg=yellow cterm=reverse gui=reverse - hi ansiRVBlue ctermfg=blue guifg=blue cterm=reverse gui=reverse - hi ansiRVMagenta ctermfg=magenta guifg=magenta cterm=reverse gui=reverse - hi ansiRVCyan ctermfg=cyan guifg=cyan cterm=reverse gui=reverse - hi ansiRVWhite ctermfg=white guifg=white cterm=reverse gui=reverse - - hi ansiBlackBlack ctermfg=black ctermbg=black guifg=Black guibg=Black cterm=none gui=none - hi ansiRedBlack ctermfg=black ctermbg=black guifg=Black guibg=Black cterm=none gui=none - hi ansiRedBlack ctermfg=red ctermbg=black guifg=Red guibg=Black cterm=none gui=none - hi ansiGreenBlack ctermfg=green ctermbg=black guifg=Green guibg=Black cterm=none gui=none - hi ansiYellowBlack ctermfg=yellow ctermbg=black guifg=Yellow guibg=Black cterm=none gui=none - hi ansiBlueBlack ctermfg=blue ctermbg=black guifg=Blue guibg=Black cterm=none gui=none - hi ansiMagentaBlack ctermfg=magenta ctermbg=black guifg=Magenta guibg=Black cterm=none gui=none - hi ansiCyanBlack ctermfg=cyan ctermbg=black guifg=Cyan guibg=Black cterm=none gui=none - hi ansiWhiteBlack ctermfg=white ctermbg=black guifg=White guibg=Black cterm=none gui=none - - hi ansiBlackRed ctermfg=black ctermbg=red guifg=Black guibg=Red cterm=none gui=none - hi ansiRedRed ctermfg=red ctermbg=red guifg=Red guibg=Red cterm=none gui=none - hi ansiGreenRed ctermfg=green ctermbg=red guifg=Green guibg=Red cterm=none gui=none - hi ansiYellowRed ctermfg=yellow ctermbg=red guifg=Yellow guibg=Red cterm=none gui=none - hi ansiBlueRed ctermfg=blue ctermbg=red guifg=Blue guibg=Red cterm=none gui=none - hi ansiMagentaRed ctermfg=magenta ctermbg=red guifg=Magenta guibg=Red cterm=none gui=none - hi ansiCyanRed ctermfg=cyan ctermbg=red guifg=Cyan guibg=Red cterm=none gui=none - hi ansiWhiteRed ctermfg=white ctermbg=red guifg=White guibg=Red cterm=none gui=none - - hi ansiBlackGreen ctermfg=black ctermbg=green guifg=Black guibg=Green cterm=none gui=none - hi ansiRedGreen ctermfg=red ctermbg=green guifg=Red guibg=Green cterm=none gui=none - hi ansiGreenGreen ctermfg=green ctermbg=green guifg=Green guibg=Green cterm=none gui=none - hi ansiYellowGreen ctermfg=yellow ctermbg=green guifg=Yellow guibg=Green cterm=none gui=none - hi ansiBlueGreen ctermfg=blue ctermbg=green guifg=Blue guibg=Green cterm=none gui=none - hi ansiMagentaGreen ctermfg=magenta ctermbg=green guifg=Magenta guibg=Green cterm=none gui=none - hi ansiCyanGreen ctermfg=cyan ctermbg=green guifg=Cyan guibg=Green cterm=none gui=none - hi ansiWhiteGreen ctermfg=white ctermbg=green guifg=White guibg=Green cterm=none gui=none - - hi ansiBlackYellow ctermfg=black ctermbg=yellow guifg=Black guibg=Yellow cterm=none gui=none - hi ansiRedYellow ctermfg=red ctermbg=yellow guifg=Red guibg=Yellow cterm=none gui=none - hi ansiGreenYellow ctermfg=green ctermbg=yellow guifg=Green guibg=Yellow cterm=none gui=none - hi ansiYellowYellow ctermfg=yellow ctermbg=yellow guifg=Yellow guibg=Yellow cterm=none gui=none - hi ansiBlueYellow ctermfg=blue ctermbg=yellow guifg=Blue guibg=Yellow cterm=none gui=none - hi ansiMagentaYellow ctermfg=magenta ctermbg=yellow guifg=Magenta guibg=Yellow cterm=none gui=none - hi ansiCyanYellow ctermfg=cyan ctermbg=yellow guifg=Cyan guibg=Yellow cterm=none gui=none - hi ansiWhiteYellow ctermfg=white ctermbg=yellow guifg=White guibg=Yellow cterm=none gui=none - - hi ansiBlackBlue ctermfg=black ctermbg=blue guifg=Black guibg=Blue cterm=none gui=none - hi ansiRedBlue ctermfg=red ctermbg=blue guifg=Red guibg=Blue cterm=none gui=none - hi ansiGreenBlue ctermfg=green ctermbg=blue guifg=Green guibg=Blue cterm=none gui=none - hi ansiYellowBlue ctermfg=yellow ctermbg=blue guifg=Yellow guibg=Blue cterm=none gui=none - hi ansiBlueBlue ctermfg=blue ctermbg=blue guifg=Blue guibg=Blue cterm=none gui=none - hi ansiMagentaBlue ctermfg=magenta ctermbg=blue guifg=Magenta guibg=Blue cterm=none gui=none - hi ansiCyanBlue ctermfg=cyan ctermbg=blue guifg=Cyan guibg=Blue cterm=none gui=none - hi ansiWhiteBlue ctermfg=white ctermbg=blue guifg=White guibg=Blue cterm=none gui=none - - hi ansiBlackMagenta ctermfg=black ctermbg=magenta guifg=Black guibg=Magenta cterm=none gui=none - hi ansiRedMagenta ctermfg=red ctermbg=magenta guifg=Red guibg=Magenta cterm=none gui=none - hi ansiGreenMagenta ctermfg=green ctermbg=magenta guifg=Green guibg=Magenta cterm=none gui=none - hi ansiYellowMagenta ctermfg=yellow ctermbg=magenta guifg=Yellow guibg=Magenta cterm=none gui=none - hi ansiBlueMagenta ctermfg=blue ctermbg=magenta guifg=Blue guibg=Magenta cterm=none gui=none - hi ansiMagentaMagenta ctermfg=magenta ctermbg=magenta guifg=Magenta guibg=Magenta cterm=none gui=none - hi ansiCyanMagenta ctermfg=cyan ctermbg=magenta guifg=Cyan guibg=Magenta cterm=none gui=none - hi ansiWhiteMagenta ctermfg=white ctermbg=magenta guifg=White guibg=Magenta cterm=none gui=none - - hi ansiBlackCyan ctermfg=black ctermbg=cyan guifg=Black guibg=Cyan cterm=none gui=none - hi ansiRedCyan ctermfg=red ctermbg=cyan guifg=Red guibg=Cyan cterm=none gui=none - hi ansiGreenCyan ctermfg=green ctermbg=cyan guifg=Green guibg=Cyan cterm=none gui=none - hi ansiYellowCyan ctermfg=yellow ctermbg=cyan guifg=Yellow guibg=Cyan cterm=none gui=none - hi ansiBlueCyan ctermfg=blue ctermbg=cyan guifg=Blue guibg=Cyan cterm=none gui=none - hi ansiMagentaCyan ctermfg=magenta ctermbg=cyan guifg=Magenta guibg=Cyan cterm=none gui=none - hi ansiCyanCyan ctermfg=cyan ctermbg=cyan guifg=Cyan guibg=Cyan cterm=none gui=none - hi ansiWhiteCyan ctermfg=white ctermbg=cyan guifg=White guibg=Cyan cterm=none gui=none - - hi ansiBlackWhite ctermfg=black ctermbg=white guifg=Black guibg=White cterm=none gui=none - hi ansiRedWhite ctermfg=red ctermbg=white guifg=Red guibg=White cterm=none gui=none - hi ansiGreenWhite ctermfg=green ctermbg=white guifg=Green guibg=White cterm=none gui=none - hi ansiYellowWhite ctermfg=yellow ctermbg=white guifg=Yellow guibg=White cterm=none gui=none - hi ansiBlueWhite ctermfg=blue ctermbg=white guifg=Blue guibg=White cterm=none gui=none - hi ansiMagentaWhite ctermfg=magenta ctermbg=white guifg=Magenta guibg=White cterm=none gui=none - hi ansiCyanWhite ctermfg=cyan ctermbg=white guifg=Cyan guibg=White cterm=none gui=none - hi ansiWhiteWhite ctermfg=white ctermbg=white guifg=White guibg=White cterm=none gui=none - endif -" call Dret("AnsiEsc#AnsiEsc") -endfun - -" --------------------------------------------------------------------- -" s:MultiElementHandler: builds custom syntax highlighting for three or more element ansi escape sequences {{{2 -fun! s:MultiElementHandler() -" call Dfunc("s:MultiElementHandler()") - let curwp= SaveWinPosn(0) - keepj 1 - keepj norm! 0 - let mehcnt = 0 - let mehrules = [] - while search('\e\[;\=\d\+;\d\+;\d\+\(;\d\+\)*m','cW') - let curcol = col(".")+1 - call search('m','cW') - let mcol = col(".") - let ansiesc = strpart(getline("."),curcol,mcol - curcol) - let aecodes = split(ansiesc,'[;m]') -" call Decho("ansiesc<".ansiesc."> aecodes=".string(aecodes)) - let skip = 0 - let mod = "NONE," - let fg = "" - let bg = "" - - " if the ansiesc is - if index(mehrules,ansiesc) == -1 - let mehrules+= [ansiesc] - - for code in aecodes - - " handle multi-code sequences (38;5;color and 48;5;color) - if skip == 38 && code == 5 - " handling [38;5 - let skip= 385 -" call Decho(" 1: building code=".code." skip=".skip.": mod<".mod."> fg<".fg."> bg<".bg.">") - continue - elseif skip == 385 - " handling [38;5;... - if has("gui") && has("gui_running") - let fg= s:Ansi2Gui(code) - else - let fg= code - endif - let skip= 0 -" call Decho(" 2: building code=".code." skip=".skip.": mod<".mod."> fg<".fg."> bg<".bg.">") - continue - - elseif skip == 48 && code == 5 - " handling [48;5 - let skip= 485 -" call Decho(" 3: building code=".code." skip=".skip.": mod<".mod."> fg<".fg."> bg<".bg.">") - continue - elseif skip == 485 - " handling [48;5;... - if has("gui") && has("gui_running") - let bg= s:Ansi2Gui(code) - else - let bg= code - endif - let skip= 0 -" call Decho(" 4: building code=".code." skip=".skip.": mod<".mod."> fg<".fg."> bg<".bg.">") - continue - - else - let skip= 0 - endif - - " handle single-code sequences - if code == 1 - let mod=mod."bold," - elseif code == 2 - let mod=mod."italic," - elseif code == 3 - let mod=mod."standout," - elseif code == 4 - let mod=mod."underline," - elseif code == 5 || code == 6 - let mod=mod."undercurl," - elseif code == 7 - let mod=mod."reverse," - - elseif code == 30 - let fg= "black" - elseif code == 31 - let fg= "red" - elseif code == 32 - let fg= "green" - elseif code == 33 - let fg= "yellow" - elseif code == 34 - let fg= "blue" - elseif code == 35 - let fg= "magenta" - elseif code == 36 - let fg= "cyan" - elseif code == 37 - let fg= "white" - - elseif code == 40 - let bg= "black" - elseif code == 41 - let bg= "red" - elseif code == 42 - let bg= "green" - elseif code == 43 - let bg= "yellow" - elseif code == 44 - let bg= "blue" - elseif code == 45 - let bg= "magenta" - elseif code == 46 - let bg= "cyan" - elseif code == 47 - let bg= "white" - - elseif code == 38 - let skip= 38 - - elseif code == 48 - let skip= 48 - endif - -" call Decho(" 5: building code=".code." skip=".skip.": mod<".mod."> fg<".fg."> bg<".bg.">") - endfor - - " fixups - let mod= substitute(mod,',$','','') - - " build syntax-recognition rule - let mehcnt = mehcnt + 1 - let synrule = "syn region ansiMEH".mehcnt - let synrule = synrule.' start="\e\['.ansiesc.'"' - let synrule = synrule.' end="\e\["me=e-2' - let synrule = synrule." contains=ansiConceal" -" call Decho(" exe synrule: ".synrule) - exe synrule - - " build highlighting rule - let hirule= "hi ansiMEH".mehcnt - if has("gui") && has("gui_running") - let hirule=hirule." gui=".mod - if fg != ""| let hirule=hirule." guifg=".fg| endif - if bg != ""| let hirule=hirule." guibg=".bg| endif - else - let hirule=hirule." cterm=".mod - if fg != ""| let hirule=hirule." ctermfg=".fg| endif - if bg != ""| let hirule=hirule." ctermbg=".bg| endif - endif -" call Decho(" exe hirule: ".hirule) - exe hirule - endif - - endwhile - - call RestoreWinPosn(curwp) -" call Dret("s:MultiElementHandler") -endfun - -" --------------------------------------------------------------------- -" s:Ansi2Gui: converts an ansi-escape sequence (for 256-color xterms) {{{2 -" to an equivalent gui color -" colors 0- 15: -" colors 16-231: 6x6x6 color cube, code= 16+r*36+g*6+b with r,g,b each in [0,5] -" colors 232-255: grayscale ramp, code= 10*gray + 8 with gray in [0,23] (black,white left out) -fun! s:Ansi2Gui(code) -" call Dfunc("s:Ansi2Gui(code=)".a:code) - let guicolor= a:code - if a:code < 16 - let code2rgb = [ "black", "red3", "green3", "yellow3", "blue3", "magenta3", "cyan3", "gray70", "gray40", "red", "green", "yellow", "royalblue3", "magenta", "cyan", "white"] - let guicolor = code2rgb[a:code] - elseif a:code >= 232 - let code = a:code - 232 - let code = 10*code + 8 - let guicolor = printf("#%02x%02x%02x",code,code,code) - else - let code = a:code - 16 - let code2rgb = [43,85,128,170,213,255] - let r = code2rgb[code/36] - let g = code2rgb[(code%36)/6] - let b = code2rgb[code%6] - let guicolor = printf("#%02x%02x%02x",r,g,b) - endif -" call Dret("s:Ansi2Gui ".guicolor) - return guicolor -endfun - -" --------------------------------------------------------------------- -" Restore: {{{1 -let &cpo= s:keepcpo -unlet s:keepcpo - -" --------------------------------------------------------------------- -" Modelines: {{{1 -" vim: ts=12 fdm=marker diff --git a/etc/soft/vim/vim/+plugins/AnsiESC/doc/AnsiEsc.txt b/etc/soft/vim/vim/+plugins/AnsiESC/doc/AnsiEsc.txt deleted file mode 100644 index dfb3b54..0000000 --- a/etc/soft/vim/vim/+plugins/AnsiESC/doc/AnsiEsc.txt +++ /dev/null @@ -1,135 +0,0 @@ -*AnsiEsc.txt* Ansi Escape Sequence Visualization Nov 19, 2012 - -Author: Charles E. Campbell - (remove NOSPAM from Campbell's email first) -Copyright: (c) 2004-2012 by Charles E. Campbell *AnsiEsc-copyright* - The VIM LICENSE applies to AnsiEsc.vim and AnsiEsc.txt - (see |copyright|) except use "AnsiEsc" instead of "Vim". - No warranty, express or implied. Use At-Your-Own-Risk. - -============================================================================== -1. Contents *AnsiEsc* *AnsiEsc-contents* - 1. Contents ...................................|AnsiEsc-contents| - 2. AnsiEsc Manual ...................................|AnsiEsc| - 3. AnsiEsc History ...................................|AnsiEsc-history| - -============================================================================== -2. Manual *AnsiEsc-manual* - - - CONCEAL~ - The best option: for this, your vim must have +conceal. Try either > - :version - :echo has("conceal") -< if you have vim v7.3. Your vim needs to have been compiled - for "big" or "huge" and to support syntax highlighting. - - Vim: (v7.2 or earlier) -- ansi escape sequences themselves are Ignore'd~ - Ansi escape sequences have the expected effect on subsequent - text, but the ansi escape sequences themselves still take up - screen columns. The sequences are displayed using "Ignore" - highlighting; depending on your colorscheme, this should either - make the sequences blend into your background or be visually - suppressed. If the sequences aren't suppressed, you need to - improve your colorscheme! - - USAGE~ - :AnsiEsc -- toggles Ansi escape sequence highlighting - :AnsiEsc! -- rebuilds highlighting for new/removed three - or more element Ansi escape sequences. - - RESULT~ - Ansi escape sequences become concealed or ignored (depending - on whether your vim supports Negri's conceal mode), and their - effect on subsequent text is emulated with Vim's syntax - highlighting. - - Syntax highlighting for one and two element codes are - hard-coded into AnsiEsc.vim. There are too many possibilities - for three or more element codes; these are supported by - examining the file for such sequences and only building syntax - highlighting rules for such sequences as are actually present - in the document. - - EXAMPLE~ - - You'll want to use :AnsiEsc to see the following properly! - - Color Escape Sequences - -   1   2   3   4   5   7  -black black black black black black black -red red red red red red red -green green green green green green green -yellow yellow yellow yellow yellow yellow yellow -blue blue blue blue blue blue blue -magenta magenta magenta magenta magenta magenta magenta -cyan cyan cyan cyan cyan cyan cyan -white white white white white white white - -Black B B B B B B B B -Red R R R R R R R R -Green G G G G G G G G -Yellow Y Y Y Y Y Y Y Y -Blue B B B B B B B B -Magenta M M M M M M M M -Cyan C C C C C C C C -White W W W W W W W W - - Here's the vim logo: - - / \ - / \ - / \ - / \ - +----+ +----+ \ - ++ ++ +- | \ - /| | / / \ -X | | / /O \ - \| | / /+-+ +-\//-+ - | |/ / | | | v | - | / / | | | + +| - | / | |/| |\/|| - +----\ +-+ +-+ ++ - \ / - \ / - - -============================================================================== -3. AnsiEsc History *AnsiEsc-history* {{{1 - v13 Apr 12, 2012 * (Peter Brant) a "conceal" was left on a syntax - definition in a no-conceal-support if block. - Fixed. - Apr 17, 2012 * (Ingo Karkat) support for the "reverse" attribute - v12 Jul 23, 2010 * changed conc to |'cole'| to correspond to vim 7.3's - change - * for menus, &go =~# used to insure correct case - Aug 10, 2010 * (Rainer M Schmid) changed conceallevel setting to - depend on whether the version is before vim 7.3; - for 7.3, also sets concealcursor - * Restores conc/cole/cocu settings when AnsiEsc is - toggled off. - Dec 13, 2010 * Included some additional sequences involving 0 - Feb 22, 2011 * for menus, &go =~# used to insure correct case - v11 Apr 20, 2010 * AnsiEsc now supports enabling/disabling via a menu - * [K and [00m now supported (as - grep --color=always issues them) - v10 May 06, 2009 * Three or more codes in an ANSI escape sequence are - supported by building custom syntax and highlighting - commands. - May 20, 2009 * cecutil bugfix - v9 May 12, 2008 * Now in plugin + autoload format. Provides :AnsiEsc - command to toggle Ansi-escape sequence processing. - Jan 01, 2009 * Applies Ignore highlighting to extended Ansi escape - sequences support 256-colors. - Mar 18, 2009 * Includes "rapid blink" ansi escape sequences. Vim - doesn't have a blinking attribute, so such text uses - "standout" for vim and "undercurl" for gvim. - v8 Aug 16, 2006 * Uses undercurl, and so is only available for vim 7.0 - v7 Dec 14, 2004 * Works better with vim2ansi output and Vince Negri's - conceal patch for vim 6.x. - v2 Nov 24, 2004 * This version didn't use Vince Negri's conceal patch - (used Ignore highlighting) - -============================================================================== -Modelines: {{{1 -vim:tw=78:ts=8:ft=help:fdm=marker: diff --git a/etc/soft/vim/vim/+plugins/AnsiESC/plugin/AnsiEscPlugin.vim b/etc/soft/vim/vim/+plugins/AnsiESC/plugin/AnsiEscPlugin.vim deleted file mode 100644 index dbad436..0000000 --- a/etc/soft/vim/vim/+plugins/AnsiESC/plugin/AnsiEscPlugin.vim +++ /dev/null @@ -1,32 +0,0 @@ -" AnsiEscPlugin.vim -" Author: Charles E. Campbell -" Date: Apr 07, 2010 -" Version: 13e -" --------------------------------------------------------------------- -" Load Once: {{{1 -if &cp || exists("g:loaded_AnsiEscPlugin") - finish -endif -let g:loaded_AnsiEscPlugin = "v13e" -let s:keepcpo = &cpo -set cpo&vim - -" --------------------------------------------------------------------- -" Public Interface: {{{1 -com! -bang -nargs=0 AnsiEsc :call AnsiEsc#AnsiEsc(0) - -" DrChip Menu Support: {{{2 -if !exists('g:no_drchip_menu') && !exists('g:no_ansiesc_menu') - if has("gui_running") && has("menu") && &go =~ 'm' - if !exists("g:DrChipTopLvlMenu") - let g:DrChipTopLvlMenu= "DrChip." - endif - exe 'menu '.g:DrChipTopLvlMenu.'AnsiEsc.Start:AnsiEsc :AnsiEsc' - endif -endif - -" --------------------------------------------------------------------- -" Restore: {{{1 -let &cpo= s:keepcpo -unlet s:keepcpo -" vim: ts=4 fdm=marker diff --git a/etc/soft/vim/vim/+plugins/AnsiESC/plugin/cecutil.vim b/etc/soft/vim/vim/+plugins/AnsiESC/plugin/cecutil.vim deleted file mode 100644 index 5d74266..0000000 --- a/etc/soft/vim/vim/+plugins/AnsiESC/plugin/cecutil.vim +++ /dev/null @@ -1,538 +0,0 @@ -" cecutil.vim : save/restore window position -" save/restore mark position -" save/restore selected user maps -" Author: Charles E. Campbell -" Version: 18i ASTRO-ONLY -" Date: Oct 21, 2013 -" -" Saving Restoring Destroying Marks: {{{1 -" call SaveMark(markname) let savemark= SaveMark(markname) -" call RestoreMark(markname) call RestoreMark(savemark) -" call DestroyMark(markname) -" commands: SM RM DM -" -" Saving Restoring Destroying Window Position: {{{1 -" call SaveWinPosn() let winposn= SaveWinPosn() -" call RestoreWinPosn() call RestoreWinPosn(winposn) -" \swp : save current window/buffer's position -" \rwp : restore current window/buffer's previous position -" commands: SWP RWP -" -" Saving And Restoring User Maps: {{{1 -" call SaveUserMaps(mapmode,maplead,mapchx,suffix) -" call RestoreUserMaps(suffix) -" -" GetLatestVimScripts: 1066 1 :AutoInstall: cecutil.vim -" -" You believe that God is one. You do well. The demons also {{{1 -" believe, and shudder. But do you want to know, vain man, that -" faith apart from works is dead? (James 2:19,20 WEB) -"redraw!|call inputsave()|call input("Press to continue")|call inputrestore() - -" --------------------------------------------------------------------- -" Load Once: {{{1 -if &cp || exists("g:loaded_cecutil") - finish -endif -let g:loaded_cecutil = "v18i" -let s:keepcpo = &cpo -set cpo&vim -"DechoRemOn - -" ======================= -" Public Interface: {{{1 -" ======================= - -" --------------------------------------------------------------------- -" Map Interface: {{{2 -if !exists('g:no_plugin_maps') && !exists('g:no_cecutil_maps') - if !hasmapto('SaveWinPosn') - map swp SaveWinPosn - endif - if !hasmapto('RestoreWinPosn') - map rwp RestoreWinPosn - endif -endif -nmap SaveWinPosn :call SaveWinPosn() -nmap RestoreWinPosn :call RestoreWinPosn() - -" --------------------------------------------------------------------- -" Command Interface: {{{2 -com! -bar -nargs=0 SWP call SaveWinPosn() -com! -bar -nargs=? RWP call RestoreWinPosn() -com! -bar -nargs=1 SM call SaveMark() -com! -bar -nargs=1 RM call RestoreMark() -com! -bar -nargs=1 DM call DestroyMark() - -com! -bar -nargs=1 WLR call s:WinLineRestore() - -if v:version < 630 - let s:modifier= "sil! " -else - let s:modifier= "sil! keepj " -endif - -" =============== -" Functions: {{{1 -" =============== - -" --------------------------------------------------------------------- -" SaveWinPosn: {{{2 -" let winposn= SaveWinPosn() will save window position in winposn variable -" call SaveWinPosn() will save window position in b:cecutil_winposn{b:cecutil_iwinposn} -" let winposn= SaveWinPosn(0) will *only* save window position in winposn variable (no stacking done) -fun! SaveWinPosn(...) -" echomsg "Decho: SaveWinPosn() a:0=".a:0 - if line("$") == 1 && getline(1) == "" -" echomsg "Decho: SaveWinPosn : empty buffer" - return "" - endif - let so_keep = &l:so - let siso_keep = &siso - let ss_keep = &l:ss - setlocal so=0 siso=0 ss=0 - - let swline = line(".") " save-window line in file - let swcol = col(".") " save-window column in file - if swcol >= col("$") - let swcol= swcol + virtcol(".") - virtcol("$") " adjust for virtual edit (cursor past end-of-line) - endif - let swwline = winline() - 1 " save-window window line - let swwcol = virtcol(".") - wincol() " save-window window column - let savedposn = "" -" echomsg "Decho: sw[".swline.",".swcol."] sww[".swwline.",".swwcol."]" - let savedposn = "call GoWinbufnr(".winbufnr(0).")" - let savedposn = savedposn."|".s:modifier.swline - let savedposn = savedposn."|".s:modifier."norm! 0z\" - if swwline > 0 - let savedposn= savedposn.":".s:modifier."call s:WinLineRestore(".(swwline+1).")\" - endif - if swwcol > 0 - let savedposn= savedposn.":".s:modifier."norm! 0".swwcol."zl\" - endif - let savedposn = savedposn.":".s:modifier."call cursor(".swline.",".swcol.")\" - - " save window position in - " b:cecutil_winposn_{iwinposn} (stack) - " only when SaveWinPosn() is used - if a:0 == 0 - if !exists("b:cecutil_iwinposn") - let b:cecutil_iwinposn= 1 - else - let b:cecutil_iwinposn= b:cecutil_iwinposn + 1 - endif -" echomsg "Decho: saving posn to SWP stack" - let b:cecutil_winposn{b:cecutil_iwinposn}= savedposn - endif - - let &l:so = so_keep - let &siso = siso_keep - let &l:ss = ss_keep - -" if exists("b:cecutil_iwinposn") " Decho -" echomsg "Decho: b:cecutil_winpos{".b:cecutil_iwinposn."}[".b:cecutil_winposn{b:cecutil_iwinposn}."]" -" else " Decho -" echomsg "Decho: b:cecutil_iwinposn doesn't exist" -" endif " Decho -" echomsg "Decho: SaveWinPosn [".savedposn."]" - return savedposn -endfun - -" --------------------------------------------------------------------- -" RestoreWinPosn: {{{2 -" call RestoreWinPosn() -" call RestoreWinPosn(winposn) -fun! RestoreWinPosn(...) -" echomsg "Decho: RestoreWinPosn() a:0=".a:0 -" echomsg "Decho: getline(1)<".getline(1).">" -" echomsg "Decho: line(.)=".line(".") - if line("$") == 1 && getline(1) == "" -" echomsg "Decho: RestoreWinPosn : empty buffer" - return "" - endif - let so_keep = &l:so - let siso_keep = &l:siso - let ss_keep = &l:ss - setlocal so=0 siso=0 ss=0 - - if a:0 == 0 || a:1 == "" - " use saved window position in b:cecutil_winposn{b:cecutil_iwinposn} if it exists - if exists("b:cecutil_iwinposn") && exists("b:cecutil_winposn{b:cecutil_iwinposn}") -" echomsg "Decho: using stack b:cecutil_winposn{".b:cecutil_iwinposn."}<".b:cecutil_winposn{b:cecutil_iwinposn}.">" - try - exe s:modifier.b:cecutil_winposn{b:cecutil_iwinposn} - catch /^Vim\%((\a\+)\)\=:E749/ - " ignore empty buffer error messages - endtry - " normally drop top-of-stack by one - " but while new top-of-stack doesn't exist - " drop top-of-stack index by one again - if b:cecutil_iwinposn >= 1 - unlet b:cecutil_winposn{b:cecutil_iwinposn} - let b:cecutil_iwinposn= b:cecutil_iwinposn - 1 - while b:cecutil_iwinposn >= 1 && !exists("b:cecutil_winposn{b:cecutil_iwinposn}") - let b:cecutil_iwinposn= b:cecutil_iwinposn - 1 - endwhile - if b:cecutil_iwinposn < 1 - unlet b:cecutil_iwinposn - endif - endif - else - echohl WarningMsg - echomsg "***warning*** need to SaveWinPosn first!" - echohl None - endif - - else " handle input argument -" echomsg "Decho: using input a:1<".a:1.">" - " use window position passed to this function - exe a:1 - " remove a:1 pattern from b:cecutil_winposn{b:cecutil_iwinposn} stack - if exists("b:cecutil_iwinposn") - let jwinposn= b:cecutil_iwinposn - while jwinposn >= 1 " search for a:1 in iwinposn..1 - if exists("b:cecutil_winposn{jwinposn}") " if it exists - if a:1 == b:cecutil_winposn{jwinposn} " and the pattern matches - unlet b:cecutil_winposn{jwinposn} " unlet it - if jwinposn == b:cecutil_iwinposn " if at top-of-stack - let b:cecutil_iwinposn= b:cecutil_iwinposn - 1 " drop stacktop by one - endif - endif - endif - let jwinposn= jwinposn - 1 - endwhile - endif - endif - - " Seems to be something odd: vertical motions after RWP - " cause jump to first column. The following fixes that. - " Note: was using wincol()>1, but with signs, a cursor - " at column 1 yields wincol()==3. Beeping ensued. - let vekeep= &ve - set ve=all - if virtcol('.') > 1 - exe s:modifier."norm! hl" - elseif virtcol(".") < virtcol("$") - exe s:modifier."norm! lh" - endif - let &ve= vekeep - - let &l:so = so_keep - let &l:siso = siso_keep - let &l:ss = ss_keep - -" echomsg "Decho: RestoreWinPosn" -endfun - -" --------------------------------------------------------------------- -" s:WinLineRestore: {{{2 -fun! s:WinLineRestore(swwline) -" echomsg "Decho: s:WinLineRestore(swwline=".a:swwline.")" - while winline() < a:swwline - let curwinline= winline() - exe s:modifier."norm! \" - if curwinline == winline() - break - endif - endwhile -" echomsg "Decho: s:WinLineRestore" -endfun - -" --------------------------------------------------------------------- -" GoWinbufnr: go to window holding given buffer (by number) {{{2 -" Prefers current window; if its buffer number doesn't match, -" then will try from topleft to bottom right -fun! GoWinbufnr(bufnum) -" call Dfunc("GoWinbufnr(".a:bufnum.")") - if winbufnr(0) == a:bufnum -" call Dret("GoWinbufnr : winbufnr(0)==a:bufnum") - return - endif - winc t - let first=1 - while winbufnr(0) != a:bufnum && (first || winnr() != 1) - winc w - let first= 0 - endwhile -" call Dret("GoWinbufnr") -endfun - -" --------------------------------------------------------------------- -" SaveMark: sets up a string saving a mark position. {{{2 -" For example, SaveMark("a") -" Also sets up a global variable, g:savemark_{markname} -fun! SaveMark(markname) -" call Dfunc("SaveMark(markname<".a:markname.">)") - let markname= a:markname - if strpart(markname,0,1) !~ '\a' - let markname= strpart(markname,1,1) - endif -" call Decho("markname=".markname) - - let lzkeep = &lz - set lz - - if 1 <= line("'".markname) && line("'".markname) <= line("$") - let winposn = SaveWinPosn(0) - exe s:modifier."norm! `".markname - let savemark = SaveWinPosn(0) - let g:savemark_{markname} = savemark - let savemark = markname.savemark - call RestoreWinPosn(winposn) - else - let g:savemark_{markname} = "" - let savemark = "" - endif - - let &lz= lzkeep - -" call Dret("SaveMark : savemark<".savemark.">") - return savemark -endfun - -" --------------------------------------------------------------------- -" RestoreMark: {{{2 -" call RestoreMark("a") -or- call RestoreMark(savemark) -fun! RestoreMark(markname) -" call Dfunc("RestoreMark(markname<".a:markname.">)") - - if strlen(a:markname) <= 0 -" call Dret("RestoreMark : no such mark") - return - endif - let markname= strpart(a:markname,0,1) - if markname !~ '\a' - " handles 'a -> a styles - let markname= strpart(a:markname,1,1) - endif -" call Decho("markname=".markname." strlen(a:markname)=".strlen(a:markname)) - - let lzkeep = &lz - set lz - let winposn = SaveWinPosn(0) - - if strlen(a:markname) <= 2 - if exists("g:savemark_{markname}") && strlen(g:savemark_{markname}) != 0 - " use global variable g:savemark_{markname} -" call Decho("use savemark list") - call RestoreWinPosn(g:savemark_{markname}) - exe "norm! m".markname - endif - else - " markname is a savemark command (string) -" call Decho("use savemark command") - let markcmd= strpart(a:markname,1) - call RestoreWinPosn(markcmd) - exe "norm! m".markname - endif - - call RestoreWinPosn(winposn) - let &lz = lzkeep - -" call Dret("RestoreMark") -endfun - -" --------------------------------------------------------------------- -" DestroyMark: {{{2 -" call DestroyMark("a") -- destroys mark -fun! DestroyMark(markname) -" call Dfunc("DestroyMark(markname<".a:markname.">)") - - " save options and set to standard values - let reportkeep= &report - let lzkeep = &lz - set lz report=10000 - - let markname= strpart(a:markname,0,1) - if markname !~ '\a' - " handles 'a -> a styles - let markname= strpart(a:markname,1,1) - endif -" call Decho("markname=".markname) - - let curmod = &mod - let winposn = SaveWinPosn(0) - 1 - let lineone = getline(".") - exe "k".markname - d - put! =lineone - let &mod = curmod - call RestoreWinPosn(winposn) - - " restore options to user settings - let &report = reportkeep - let &lz = lzkeep - -" call Dret("DestroyMark") -endfun - -" --------------------------------------------------------------------- -" QArgSplitter: to avoid \ processing by , is needed. {{{2 -" However, doesn't split at all, so this one returns a list -" with splits at all whitespace (only!), plus a leading length-of-list. -" The resulting list: qarglist[0] corresponds to a:0 -" qarglist[i] corresponds to a:{i} -fun! QArgSplitter(qarg) -" call Dfunc("QArgSplitter(qarg<".a:qarg.">)") - let qarglist = split(a:qarg) - let qarglistlen = len(qarglist) - let qarglist = insert(qarglist,qarglistlen) -" call Dret("QArgSplitter ".string(qarglist)) - return qarglist -endfun - -" --------------------------------------------------------------------- -" ListWinPosn: {{{2 -"fun! ListWinPosn() " Decho -" if !exists("b:cecutil_iwinposn") || b:cecutil_iwinposn == 0 " Decho -" call Decho("nothing on SWP stack") " Decho -" else " Decho -" let jwinposn= b:cecutil_iwinposn " Decho -" while jwinposn >= 1 " Decho -" if exists("b:cecutil_winposn{jwinposn}") " Decho -" call Decho("winposn{".jwinposn."}<".b:cecutil_winposn{jwinposn}.">") " Decho -" else " Decho -" call Decho("winposn{".jwinposn."} -- doesn't exist") " Decho -" endif " Decho -" let jwinposn= jwinposn - 1 " Decho -" endwhile " Decho -" endif " Decho -"endfun " Decho -"com! -nargs=0 LWP call ListWinPosn() " Decho - -" --------------------------------------------------------------------- -" SaveUserMaps: this function sets up a script-variable (s:restoremap) {{{2 -" which can be used to restore user maps later with -" call RestoreUserMaps() -" -" mapmode - see :help maparg for details (n v o i c l "") -" ex. "n" = Normal -" The letters "b" and "u" are optional prefixes; -" The "u" means that the map will also be unmapped -" The "b" means that the map has a qualifier -" ex. "un" = Normal + unmapping -" ex. "bn" = Normal + -" ex. "bun" = Normal + + unmapping -" ex. "ubn" = Normal + + unmapping -" maplead - see mapchx -" mapchx - "" handled as a single map item. -" ex. "" -" - "string" a string of single letters which are actually -" multiple two-letter maps (using the maplead: -" maplead . each_character_in_string) -" ex. maplead="\" and mapchx="abc" saves user mappings for -" \a, \b, and \c -" Of course, if maplead is "", then for mapchx="abc", -" mappings for a, b, and c are saved. -" - :something handled as a single map item, w/o the ":" -" ex. mapchx= ":abc" will save a mapping for "abc" -" suffix - a string unique to your plugin -" ex. suffix= "DrawIt" -fun! SaveUserMaps(mapmode,maplead,mapchx,suffix) -" call Dfunc("SaveUserMaps(mapmode<".a:mapmode."> maplead<".a:maplead."> mapchx<".a:mapchx."> suffix<".a:suffix.">)") - - if !exists("s:restoremap_{a:suffix}") - " initialize restoremap_suffix to null string - let s:restoremap_{a:suffix}= "" - endif - - " set up dounmap: if 1, then save and unmap (a:mapmode leads with a "u") - " if 0, save only - let mapmode = a:mapmode - let dounmap = 0 - let dobuffer = "" - while mapmode =~ '^[bu]' - if mapmode =~ '^u' - let dounmap = 1 - let mapmode = strpart(a:mapmode,1) - elseif mapmode =~ '^b' - let dobuffer = " " - let mapmode = strpart(a:mapmode,1) - endif - endwhile -" call Decho("dounmap=".dounmap." dobuffer<".dobuffer.">") - - " save single map :...something... - if strpart(a:mapchx,0,1) == ':' -" call Decho("save single map :...something...") - let amap= strpart(a:mapchx,1) - if amap == "|" || amap == "\" - let amap= "\".amap - endif - let amap = a:maplead.amap - let s:restoremap_{a:suffix} = s:restoremap_{a:suffix}."|:sil! ".mapmode."unmap ".dobuffer.amap - if maparg(amap,mapmode) != "" - let maprhs = substitute(maparg(amap,mapmode),'|','','ge') - let s:restoremap_{a:suffix} = s:restoremap_{a:suffix}."|:".mapmode."map ".dobuffer.amap." ".maprhs - endif - if dounmap - exe "sil! ".mapmode."unmap ".dobuffer.amap - endif - - " save single map - elseif strpart(a:mapchx,0,1) == '<' -" call Decho("save single map ") - let amap = a:mapchx - if amap == "|" || amap == "\" - let amap= "\".amap -" call Decho("amap[[".amap."]]") - endif - let s:restoremap_{a:suffix} = s:restoremap_{a:suffix}."|sil! ".mapmode."unmap ".dobuffer.amap - if maparg(a:mapchx,mapmode) != "" - let maprhs = substitute(maparg(amap,mapmode),'|','','ge') - let s:restoremap_{a:suffix} = s:restoremap_{a:suffix}."|".mapmode."map ".dobuffer.amap." ".maprhs - endif - if dounmap - exe "sil! ".mapmode."unmap ".dobuffer.amap - endif - - " save multiple maps - else -" call Decho("save multiple maps") - let i= 1 - while i <= strlen(a:mapchx) - let amap= a:maplead.strpart(a:mapchx,i-1,1) - if amap == "|" || amap == "\" - let amap= "\".amap - endif - let s:restoremap_{a:suffix} = s:restoremap_{a:suffix}."|sil! ".mapmode."unmap ".dobuffer.amap - if maparg(amap,mapmode) != "" - let maprhs = substitute(maparg(amap,mapmode),'|','','ge') - let s:restoremap_{a:suffix} = s:restoremap_{a:suffix}."|".mapmode."map ".dobuffer.amap." ".maprhs - endif - if dounmap - exe "sil! ".mapmode."unmap ".dobuffer.amap - endif - let i= i + 1 - endwhile - endif -" call Dret("SaveUserMaps : restoremap_".a:suffix.": ".s:restoremap_{a:suffix}) -endfun - -" --------------------------------------------------------------------- -" RestoreUserMaps: {{{2 -" Used to restore user maps saved by SaveUserMaps() -fun! RestoreUserMaps(suffix) -" call Dfunc("RestoreUserMaps(suffix<".a:suffix.">)") - if exists("s:restoremap_{a:suffix}") - let s:restoremap_{a:suffix}= substitute(s:restoremap_{a:suffix},'|\s*$','','e') - if s:restoremap_{a:suffix} != "" -" call Decho("exe ".s:restoremap_{a:suffix}) - exe "sil! ".s:restoremap_{a:suffix} - endif - unlet s:restoremap_{a:suffix} - endif -" call Dret("RestoreUserMaps") -endfun - -" ============== -" Restore: {{{1 -" ============== -let &cpo= s:keepcpo -unlet s:keepcpo - -" ================ -" Modelines: {{{1 -" ================ -" vim: ts=4 fdm=marker diff --git a/etc/soft/vim/vim/+plugins/figlet/plugin/Figlet.vim b/etc/soft/vim/vim/+plugins/figlet/plugin/Figlet.vim deleted file mode 100644 index b937c7e..0000000 --- a/etc/soft/vim/vim/+plugins/figlet/plugin/Figlet.vim +++ /dev/null @@ -1,557 +0,0 @@ -" vim:ft=vim foldmethod=marker tw=78: -" ========================================================================== -" File: Figlet.vim (global plugin) -" Last Changed: 2011-06-22 -" Maintainer: Erik Falor -" Version: 2.0 -" License: Vim License -" Source: http://www.vim.org/scripts/script.php?script_id=3359 -" ========================================================================== - -" _____ _ _ _ _ __ -" | ___(_) __ _| | ___| |_ (_)/ _|_ _ -" | |_ | |/ _` | |/ _ \ __|____| | |_| | | | -" | _| | | (_| | | __/ ||_____| | _| |_| | -" |_| |_|\__, |_|\___|\__| |_|_| \__, | -" |___/ |___/ -" , , , . , . -" . _ . .._. -+- _ \./-+- . ,*-+-|_ -+-|_ _ -" \_|(_)(_|[ | (/,/'\ | \/\/ | | [ ) | [ )(/, -" ._| -" @@@@@@@@@ -" @@:::::::::@@ -" @@:::::::::::::@@ -" ggggggggg ggggg@:::::::@@@:::::::@ -" g:::::::::ggg::::g@::::::@ @::::::@ -" g:::::::::::::::::g@:::::@ @@@@:::::@ -" g::::::ggggg::::::gg@:::::@ @::::::::@ -" g:::::g g:::::g @:::::@ @::::::::@ -" g:::::g g:::::g @:::::@ @:::::::@@ -" g:::::g g:::::g @:::::@ @@@@@@@@ -" g::::::g g:::::g @::::::@ -" g:::::::ggggg:::::g @:::::::@@@@@@@@ -" g::::::::::::::::g @@:::::::::::::@ -" gg::::::::::::::g @@:::::::::::@ -" gggggggg::::::g @@@@@@@@@@@ -" g:::::g -" gggggg g:::::g -" g:::::gg gg:::::g -" g::::::ggg:::::::g -" gg:::::::::::::g -" ggg::::::ggg -" gggggg -" -" .-. -" .' `. -" .--. .---. .--. .--. .--. `. .'.--. .--. -" ' .; :: .; `' '_.': ..'' .; ; : :' .; :: ..' -" `.__.': ._.'`.__.':_; `.__,_;:_;`.__.':_; -" : : -" :_; -" -" o | |o| o | | | -" .,---. ,---.,---|,---|.|--- .,---.,---. |--- ,---. |--- |---.,---. -" || | ,---|| || ||| || || | | | | | | ||---' -" `` ' `---^`---'`---'``---'``---'` ' `---'`---' `---'` '`---' -" -" ______________ ______ _____ -" ________ ____/__(_)______ ___ /______ /_ -" ___(_)_ /_ __ /__ __ `/_ /_ _ \ __/ -" ___ _ __/ _ / _ /_/ /_ / / __/ /_ -" _(_) /_/ /_/ _\__, / /_/ \___/\__/ -" /____/ -" 888 -" e88'888 e88 88e 888 888 8e 888 888 8e ,"Y88b 888 8e e88 888 -" d888 '8 d888 888b 888 888 88b 888 888 88b "8" 888 888 88b d888 888 -" Y888 , Y888 888P 888 888 888 888 888 888 ,ee 888 888 888 Y888 888 -" "88,e8' "88 88" 888 888 888 888 888 888 "88 888 888 888 "88 888 -" -" -" .-._.).--. -" `-=-.`-=-. ( )/ `-=-.`-=-. -" `-'/ -" -" (o)__(o)\\ // wWw wWw\\\ ///, -" (__ __)(o)(o) wWw wWw (O) (O)((O)(O)) -" ( ) || || (O)_ (O)_ / ) ( \ | \ || -" )( |(__)| .' __) .' __)/ / \ \||\\|| -" ( ) /.--.\( _) ( _) | \____/ ||| \ | -" )/ -' `-`.__) )/ '. `--' .`|| || -" ( ( `-..-' (_/ \_) -" ___ ___ ___ ____ ________ __ __ __ __ ___ _ _ -" ||\\//|| // \\ || \\ || || \\||\ || || ||// \\\\// -" || \/ ||(( ))|| ))||== ||_//||\\|| \\ /\ //||=|| )/ -" || || \\_// ||_// ||___|| \\|| \|| \V/\V/ || ||// -" _ _ -" _| |_ ___ ._ _ _ ___ | |__ ___ -" | | / . \ | ' ' |<_> || / // ._> -" |_| \___/ |_|_|_|<___||_\_\\___. -" -" _ _ _ _ -" ___ | | _| | ___ ___ ___ | |_ ___ ___ | | -" / . \| |/ . ||___|<_- -" || || \\ /-|| || || || || || \\ ||_. -" |, ||/ (( || || || || || ||/ ~ || -" _-/ \\,/ \/\\ \\, \\/\\ \\, \\,/ ,-_- <> - -"1. If figlet fails to run, your original text is put back w/o messing up your -" undo history too much (you can still redo to the oopsie). - -"2. :Figlet command can accept a range, and does completion. Hit tab after -" typing the -f switch to list available fonts. -" Get a lot of fonts at http://www.figlet.org/fontdb.cgi -" -" Ex. Render lines 1 through 7 in the tengwar font: -" :1,7Figlet -f tengwar -" - -"3. Width is inferred from your 'textwidth' (except on Windows with the DOS -" build of figlet, as noted above). - -"4. The :FigletFontDemo command will show you a sample of each font installed -" in your font directory. By default this command will render each font -" eponymously, or you may specify a snippet of text to render so as to allow -" comparison between fonts. -" -" Ex. See what the word "Supercalifragilisticexpialidocious" looks like in each font: -" :FigletFontDemo Supercalifragilisticexpialidocious - -"5. The g@ operator takes all of the chosen text (selected with motion -" commands or text-objects) and puts it all into the same paragraph. -" the :Figlet command works one line at a time. It makes a difference -" when rendering text like this: -" -"1. -"2. -" -" :Figlet outputs: -" _ -" / | -" | | -" | |_ -" |_(_) -" -" ____ -" |___ \ -" __) | -" / __/ _ -" |_____(_) -" -" g@ instead outputs: -" _ ____ -" / | |___ \ -" | | __) | -" | |_ / __/ _ -" |_(_) |_____(_) -" - -" _ _ _ , -" - - / - - -" ('|| || _ _ -" (( ||--|| _-_, < \, / \\ _-_ <> -" (( ||--|| ||_. /-|| || || || \\ -" (( / || ~ || (( || || || ||/ -" -___-\\, ,-_- \/\\ \\_-| \\,/ <> -" / \ -" '----` - -" :Figlet takes the same arguments that the program figlet accepts. It does a -" little bit of parsing for arguments it can grok, and passes the rest through. -" If no arguments are given, it will fall back to the global parameters you can -" set in your .vimrc, or the defaults. That usually means the 'standard' font -" and a width of 76 columns. -" -" g@, on the other hand, doesn't take arguments. You can only control it -" through the globals: -" -" g:figletFont - the name of the font to use -" g:figletFontDir - full path to the directory storing your figlet fonts -" g:figletOpts - the other arguments you want to pass figlet - - -" 8""""8 8""""8 -" 8 8 eeee eeeee e eeeee 8 eeee eeeee e eeeee eeeee -" 8eeee8ee 8 8 8 8 8 8 8eeeee 8 8 8 8 8 8 8 8 -" 88 8 8eee 8e 8e 8e 8 88 8e 8eee8e 8e 8eee8 8e 88 -" 88 8 88 88 "8 88 88 8 e 88 88 88 8 88 88 88 -" 88eeeee8 88ee 88ee8 88 88 8 8eee88 88e8 88 8 88 88 88 88 -" -"eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee -"eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee eeeee - - -" Exit quickly when the script has already been loaded -if exists('g:loaded_Figlet') - finish -endif -"autocmd! BufWritePost Figlet.vim nested source % - -let g:loaded_Figlet = '2.0' - - -" A function to inform the user if there is a problem finding Figlet -function! FigletFail(...) - echoerr 'figlet executable is not installed in your $PATH' -endfunction - - -" Check to see if there is a figlet program in the path -if !executable('figlet') - set operatorfunc=FigletFail - command! -range -nargs=* Figlet :call FigletFail() - finish -endif - - -" Work around some bugs with the DOS build of figlet.exe -" {{{ -if has('dos16') || has('dos32') || has('win16') || has ('win32') || - \has('win64') || has('win95') - "Passing -w causes a stack overflow in figlet.exe about 50% of the time - let s:overrideWidth = 1 - "using -- to separate options from text crashes figlet about 50% of the - "time as well. - let s:argsep = '' -else - let s:argsep = '--' -endif "}}} - - -" Run the Figlet program, passing in the applicable options -function! RunFiglet(text, opts, width, font, fontdir) "{{{ - " set any custom options (such as path to fonts) - if '' != a:opts - let opts = a:opts - elseif exists('g:figletOpts') - let opts = g:figletOpts - else - let opts = '' - endif - - " set the width to &textwidth or default - if exists('s:overrideWidth') - let width = '' - elseif '' != a:width - let width = '-w ' . a:width - elseif &textwidth != 0 - let width = '-w ' . &textwidth - else - let width = '-w 76' - endif - - " set the font (figlet itself defaults to 'standard') - if '' != a:font - let font = '-f ' . a:font - elseif exists('g:figletFont') - let font = '-f ' . g:figletFont - else - let font = '' - endif - - " set the font (figlet itself defaults to 'standard') - if '' != a:fontdir - let fontdir = '-d ' . a:fontdir - elseif exists('g:figletFontDir') - let fontdir = '-d ' . g:figletFontDir - else - let fontdir = '' - endif - - let command = printf('figlet %s %s %s %s %s %s', - \opts, width, font, fontdir, s:argsep, shellescape(a:text)) - - try - let result = system(command) - catch /^Vim\%((\a\+)\)\=:E484/ " Can't open file [tempfile] - throw 'figlet error' - endtry - - if 0 != v:shell_error - throw 'figlet error' - endif - return split(result, "\n") -endfunction "}}} - - -" Return the font directory to be used by Figlet - it's either the value of -" g:figletFontDir, or the one compiled-in to Figlet itself -let s:figletFontDir = '' -function! s:GetFigletFontDir() "{{{ - if exists('g:figletFontDir') - let s:figletFontDir = g:figletFontDir - else - let s:figletFontDir = split(system('figlet -I2'), "\n")[0] - endif - return s:figletFontDir -endfunction "}}} - - -" Return a list of names of all font files in Figlet's font directory -let s:figletFonts = [] -function! s:GetFigletFonts() "{{{ - if [] == s:figletFonts - let fontDir = s:GetFigletFontDir() - let fonts = split(glob(fontDir . '/*.fl?'), "\n") - "strip fontDir and ext from each entry - let s:figletFonts = map(fonts, 'fnamemodify(v:val, ":t:r")') - endif - return s:figletFonts -endfunction "}}} - - -" For each font found in Figlet's font directory, generate a small sample -" & show the results in a new scratch buffer. If this buffer hasn't been -" wiped out, subsequent invocations will reload the buffer instead of -" re-generating it -function! FigFontDemo(...) "{{{ - let bufname = 'FigletFontDemo.txt' - let bufnum = bufnr(bufname) - let vwinnum = bufwinnr(bufnum) - if bufnum >= 0 && vwinnum < 0 - " the buffer already exists && window not open - try - if winnr("$") == 1 && bufname("%") == '' && &modified == 0 - execute 'buffer ' . bufnum - else - execute 'sbuffer ' . bufnum - endif - catch /^Vim\%((\a\+)\)\=:E36/ " Not enough room - " Can't split, then switch - execute 'buffer ' . bufnum - endtry - elseif bufnum >= 0 && vwinnum >= 0 - " else if buffer exists in a window - " switch to the window - if vwinnum != bufwinnr('%') - execute "normal \" . vwinnum . 'w' - endif - else - " else if no buffer, create it - try - if winnr("$") == 1 && bufname("%") == '' && &modified == 0 - execute 'edit ' . bufname - else - execute 'split ' . bufname - endif - catch /^Vim\%((\a\+)\)\=:E36/ " Not enough room - "Can't split, then switch - execute 'edit ' . bufname - endtry - - "set up buffer-local settings for this window - setlocal bufhidden=hide foldcolumn=0 nofoldenable - \nonumber norightleft noswapfile nowrap - - "arrange to have these settings restored upon re-entering the buffer - autocmd BufEnter setlocal noswapfile - \bufhidden=hide nonumber nowrap norightleft - \foldcolumn=0 nofoldenable - - "now that the buffer is set-up - 0put =printf('All figlet fonts in %s:', s:GetFigletFontDir()) - put ='' - for font in s:GetFigletFonts() - try - echon printf("Demoing font %s...\r", font) - put =font - put ='===========================' - if a:0 == 1 && len(a:1) > 0 - silent put =RunFiglet(a:1, '', '', font, '') - else - silent put =RunFiglet(font, '', '', font, '') - endif - catch /figlet error/ - put =printf('figlet failed on font %s', font) - finally - put ='' - endtry - endfor - echon "Done" - - endif - setlocal nomodifiable nomodified nofoldenable - 1 -endfunction "}}} - -command! -nargs=? FigletFontDemo :call FigFontDemo() - - -" Implements command-line completion for the :Figlet command -let s:completionFonts = '' -function! FigletComplete(arglead, cmdline, cursorpos) "{{{ - if -1 < strridx(a:cmdline, '-f', a:cursorpos) && - \strridx(a:cmdline, '-f', a:cursorpos) == strridx(a:cmdline, '-', a:cursorpos) - "get a dirlisting of *.flf *.flc files in s:figletFontDir - if '' == s:completionFonts - let s:completionFonts = join(s:GetFigletFonts(), "\n") - endif - return s:completionFonts - else - return "-f\n-d\n-p\n-n\n-s\n-S\n-k\n-W\n-o\n-c\n-l\n-r\n-x\n-L\n-R\n-X\n" - endif -endfunction "}}} - - -" The guts of the :Figlet command - runs figlet over a range of lines -function! FigRange(...) range "{{{ - "figure out the arguments - let i = 0 - let opts = '' - let width = '' - let font = '' - let fontdir = '' - while i < len(a:000) - if '-w' == a:000[i] - let width = a:000[i+1] - let i += 2 - elseif '-f' == a:000[i] - let font = a:000[i+1] - let i += 2 - elseif '-d' == a:000[i] - let fontdir = a:000[i+1] - let i += 2 - else - let opts .= a:000[i] . ' ' - let i += 1 - endif - endwhile - - "set the cursor's position at the begining of the range - let pos = [0, a:firstline, 0, 0] - - "collect the specified text into a list - let text = getline(a:firstline, a:lastline) - - "delete the original text - execute printf("%d,%dd", a:firstline, a:lastline) - - let figletText = [] - - "render each line in turn, and accumulate the text - try - for line in text - call extend(figletText, RunFiglet(line, opts, width, font, fontdir)) - endfor - catch /figlet error/ - undo - echoerr "Figlet failed to render this text" - endtry - - "undo the Figlet text replacement in one move instead of two - undojoin - - " the append function appends below the cursor line; - " so we need to rewind the line by one - call append(pos[1] - 1, figletText) - - "restore cursor position - call setpos('.', pos) -endfunction "}}} - -command! -range -complete=custom,FigletComplete -nargs=* Figlet :,call FigRange() - - -" The guts of the g@ operator - delete the text specified by the motion -" & replace it with the result of calling figlet -function! FigOper(motionType) "{{{ - "save the cursor's position - let pos = getpos('.') - - " save the contents and attributes of the " register - let saveReg = getreg('"') - let saveRegType = getregtype('"') - - " delete the specified text into register " - if a:0 " Invoked from Visual mode, use '< and '> marks. - silent exe "normal! `<" . a:motionType . "`>x" - elseif a:motionType == 'line' - silent exe "normal! '[V']x" - elseif a:motionType == 'block' - silent exe "normal! `[\`]x" - else - silent exe "normal! `[v`]lx" - endif - - " restore register " - let text = substitute(@", '\_s\+', ' ', 'g') - call setreg('"', saveReg, saveRegType) - - " call RunFiglet() using defaults or global options - try - let figletText = RunFiglet(text, '', '', '', '') - catch /figlet error/ - undo - echoerr "Figlet failed to render this text" - endtry - - "undo the Figlet text replacement in one move instead of two - undojoin - - " the append function appends below the cursor line; - " so we need to rewind the line by one - call append(pos[1] - 1, figletText) - - "restore cursor position - call setpos('.', pos) -endfunction "}}} - -set operatorfunc=FigOper - - -" 8"""" 8"""" -" 8 eeeee eeeee eeeee eeee 8 e e eeee -" 8eeee 8 8 8 8 8 88 8 8eeee 8 8 8 -" 88 8e 8 8e 8 8 8 8eee 88 8e 8e 8eee -" 88 88 8 88 8 8 8 88 88 88 88 88 -" 88eee 88 8 88ee8 8eee8 88 88 88 88eee 88ee - -" _ _ _ _ _ _ _ _ _ _ _ _ -" / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ -" ( C | o | p | y | l | e | f | t ) ( 2 | 0 | 1 | 1 ) -" \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ - diff --git a/etc/soft/vim/vim/+plugins/lispcomplete/autoload/lispcomplete.vim b/etc/soft/vim/vim/+plugins/lispcomplete/autoload/lispcomplete.vim deleted file mode 100644 index 9e49027..0000000 --- a/etc/soft/vim/vim/+plugins/lispcomplete/autoload/lispcomplete.vim +++ /dev/null @@ -1,182 +0,0 @@ -" Vim completion script -" Language: lisp -" Maintainer: Andrew Beyer -" Version: 1.0 -" Last Change: Fri Jan 19 00:28:27 PST 2007 -" Usage: put in autoload, set omnifunc=lispcomplete#Complete -" Options: g:omni_lisp_ignorecase 0|1 [&ignorecase] -" g:omni_lisp_mode 'compound'|'simple' ['compound'] -" - -" Set completion with CTRL-X CTRL-O to autoloaded function. -" This check is in place in case this script is -" sourced directly instead of using the autoload feature. -if exists('+omnifunc') - " Do not set the option if already set since this - " results in an E117 warning. - if &omnifunc == "" - setlocal omnifunc=lispcomplete#Complete - endif -endif - -if exists('g:loaded_lisp_completion') - finish -endif -let g:loaded_lisp_completion = 20 - -" Set ignorecase to the ftplugin standard -if !exists('g:omni_lisp_ignorecase') - let g:omni_lisp_ignorecase = &ignorecase -endif - -" This script will build a completion list based on the syntax -" elements defined by the files in $VIMRUNTIME/syntax. -let s:syn_remove_words = 'match,matchgroup=,contains,'. - \ 'links to,start=,end=,nextgroup=' - -let s:cache_name = [] -let s:cache_list = [] - -" This function is used for the 'omnifunc' option. -function! lispcomplete#Complete(findstart, base) - - if a:findstart - " Locate the start of the item, including "." - let line = getline('.') - let start = col('.') - 1 - while start > 0 - if line[start - 1] =~ '\k' - let start -= 1 - else - break - endif - endwhile - - return start - endif - - " escape '*' in a:base - let base = substitute(a:base, '\*', '\\\*', 'g') - - let filetype = substitute(&filetype, '\.', '_', 'g') - let list_idx = index(s:cache_name, filetype, 0, &ignorecase) - if list_idx > -1 - let compl_list = s:cache_list[list_idx] - else - let compl_list = LispSyntaxList() - let s:cache_name = add( s:cache_name, filetype ) - let s:cache_list = add( s:cache_list, compl_list ) - endif - - " Return list of matches. - - if base =~ '\k' - " complete a word - if (!exists('g:omni_lisp_mode')) || (g:omni_lisp_mode ==? 'compound') - let slime_list = compl_list - let compl_list = [] - let slime_base = '^' . substitute(base, '-', '[a-zA-Z0-9*+/<=>]*-', 'g') - let slime_start = 0 - let slime_end = len(slime_list) - 1 - while (slime_start != -1) && (slime_start < slime_end) - let slime_start = match(slime_list, slime_base, slime_start) - if slime_start != -1 - let compl_list = add(compl_list, slime_list[slime_start]) - let slime_start = slime_start + 1 - endif - endwhile - elseif g:omni_lisp_mode ==? 'simple' - let compstr = join(compl_list, ' ') - let expr = (g:omni_lisp_ignorecase==0?'\C':'').'\<\%('.base.'\)\@!\k\+\s*' - let compstr = substitute(compstr, expr, '', 'g') - let compl_list = split(compstr, '\s\+') - else - echoerr "Invalid g:omni_lisp_mode: " g:omni_lisp_mode - endif - else - " TODO: complete a form - endif - - return compl_list -endfunc - -function! LispSyntaxList() - - let saveL = @l - redir @l - silent! exec 'syntax list ' - redir END - - let syntax_full = "\n".@l - let @l = saveL - - if syntax_full =~ 'E28' - \ || syntax_full =~ 'E411' - \ || syntax_full =~ 'E415' - \ || syntax_full =~ 'No Syntax items' - return [] - endif - - let syn_list = s:SyntaxCSyntaxGroupItems('lispVar', syntax_full) - let syn_list = syn_list . s:SyntaxCSyntaxGroupItems('lispFunc', syntax_full) - let syn_list = syn_list . s:SyntaxCSyntaxGroupItems('lispKey', syntax_full) - - " Convert the string to a List and sort it. - let compl_list = sort(split(syn_list)) - - return compl_list -endfunction - -function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full ) - - let syn_list = "" - - " From the full syntax listing, strip out the portion for the - " request group. - " Query: - " \n - must begin with a newline - " a:group_name - the group name we are interested in - " \s\+xxx\s\+ - group names are always followed by xxx - " \zs - start the match - " .\{-} - everything ... - " \ze - end the match - " \n\w - at the first newline starting with a character - let syntax_group = matchstr(a:syntax_full, - \ "\n".a:group_name.'\s\+xxx\s\+\zs.\{-}\ze'."\n".'\w' - \ ) - - if syntax_group != "" - " let syn_list = substitute( @l, '^.*xxx\s*\%(contained\s*\)\?', "", '' ) - " let syn_list = substitute( @l, '^.*xxx\s*', "", '' ) - - " We only want the words for the lines begining with - " containedin, but there could be other items. - - " Tried to remove all lines that do not begin with contained - " but this does not work in all cases since you can have - " contained nextgroup=... - " So this will strip off the ending of lines with known - " keywords. - let syn_list = substitute( - \ syntax_group, '\<\('. - \ substitute( - \ escape(s:syn_remove_words, '\\/.*$^~[]') - \ , ',', '\\|', 'g' - \ ). - \ '\).\{-}\%($\|'."\n".'\)' - \ , "\n", 'g' - \ ) - - " Now strip off the newline + blank space + contained - let syn_list = substitute( - \ syn_list, '\%(^\|\n\)\@<=\s*\<\(contained\)' - \ , "", 'g' - \ ) - - else - let syn_list = '' - endif - - return syn_list -endfunction - diff --git a/etc/soft/vim/vim/+plugins/marks_corey/marks_corey.patch b/etc/soft/vim/vim/+plugins/marks_corey/marks_corey.patch deleted file mode 100644 index 649b470..0000000 --- a/etc/soft/vim/vim/+plugins/marks_corey/marks_corey.patch +++ /dev/null @@ -1,55 +0,0 @@ ---- ./asdg 2010-08-27 14:19:02.000000000 +0600 -+++ ./marks_corey.vim 2010-10-30 20:06:42.000000000 +0600 -@@ -110,7 +110,7 @@ - if vIndex > -1 - call s:Remove_sign(vIndex) - else -- silent! exe 'sign define CS' . vFlagNum . ' text='. vFlagNum .' texthl=ErrorMsg' -+ silent! exe 'sign define CS' . vFlagNum . ' text='. vFlagNum .' texthl=SignColor linehl=SignColor' - silent! exe 'sign place ' . vFlagNum . ' line=' . vLn . ' name=CS'. vFlagNum . ' file=' . vFileName - - "let s:Cs_sign_number = s:Cs_sign_number + 1 -@@ -406,26 +406,26 @@ - - " --------------------------------------------------------------------- - if !hasmapto('Place_sign') -- map Place_sign -+ " map Place_sign - map mm Place_sign - endif - nnoremap '}, - \ {'filetype' : 'coffee', 'start' : - \']*\)\? type="text/coffeescript"\%( [^>]*\)\?>', - \ 'end' : ''}, - \ {'filetype' : 'css', 'start' : - \']*\)\? type="text/css"\%( [^>]*\)\?>', - \ 'end' : ''}, - \]) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_context_filetype_lists', - \ 'python', [ - \ {'filetype' : 'vim', - \ 'start' : 'vim.command\s*(\([''"]\)', 'end' : '\\\@', 'end' : '^<'}, - \]) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_context_filetype_lists', - \ 'nyaos,int-nyaos', [ - \ {'filetype' : 'lua', - \ 'start' : '\ new filetype graph. - let dup_check[old_filetype] = new_filetype - let old_filetype = new_filetype - endwhile - - return neocomplcache.context_filetype -endfunction"}}} -function! neocomplcache#context_filetype#get(filetype) "{{{ - " Default. - let filetype = a:filetype - if filetype == '' - let filetype = 'nothing' - endif - - " Default range. - let neocomplcache = neocomplcache#get_current_neocomplcache() - - let pos = [line('.'), col('.')] - for include in get(g:neocomplcache_context_filetype_lists, filetype, []) - let start_backward = searchpos(include.start, 'bneW') - - " Check pos > start. - if start_backward[0] == 0 || s:compare_pos(start_backward, pos) > 0 - continue - endif - - let end_pattern = include.end - if end_pattern =~ '\\1' - let match_list = matchlist(getline(start_backward[0]), include.start) - let end_pattern = substitute(end_pattern, '\\1', '\=match_list[1]', 'g') - endif - let end_forward = searchpos(end_pattern, 'nW') - if end_forward[0] == 0 - let end_forward = [line('$'), len(getline('$'))+1] - endif - - " Check end > pos. - if s:compare_pos(pos, end_forward) > 0 - continue - endif - - let end_backward = searchpos(end_pattern, 'bnW') - - " Check start <= end. - if s:compare_pos(start_backward, end_backward) < 0 - continue - endif - - if start_backward[1] == len(getline(start_backward[0])) - " Next line. - let start_backward[0] += 1 - let start_backward[1] = 1 - endif - if end_forward[1] == 1 - " Previous line. - let end_forward[0] -= 1 - let end_forward[1] = len(getline(end_forward[0])) - endif - - let neocomplcache.context_filetype_range = - \ [ start_backward, end_forward ] - return include.filetype - endfor - - return filetype -endfunction"}}} - -function! s:compare_pos(i1, i2) - return a:i1[0] == a:i2[0] ? a:i1[1] - a:i2[1] : a:i1[0] - a:i2[0] -endfunction" - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters.vim deleted file mode 100644 index 8615c42..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters.vim +++ /dev/null @@ -1,132 +0,0 @@ -"============================================================================= -" FILE: filters.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 28 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#keyword_filter(list, complete_str) "{{{ - let complete_str = a:complete_str - - if g:neocomplcache_enable_debug - echomsg len(a:list) - endif - - " Delimiter check. - let filetype = neocomplcache#get_context_filetype() - for delimiter in get(g:neocomplcache_delimiter_patterns, filetype, []) - let complete_str = substitute(complete_str, - \ delimiter, '*' . delimiter, 'g') - endfor - - if complete_str == '' || - \ &l:completefunc ==# 'neocomplcache#complete#unite_complete' || - \ empty(a:list) - return a:list - elseif neocomplcache#check_match_filter(complete_str) - " Match filter. - let word = type(a:list[0]) == type('') ? 'v:val' : 'v:val.word' - - let expr = printf('%s =~ %s', - \ word, string('^' . - \ neocomplcache#keyword_escape(complete_str))) - if neocomplcache#is_auto_complete() - " Don't complete cursor word. - let expr .= printf(' && %s !=? a:complete_str', word) - endif - - " Check head character. - if complete_str[0] != '\' && complete_str[0] != '.' - let expr = word.'[0] == ' . - \ string(complete_str[0]) .' && ' . expr - endif - - call neocomplcache#print_debug(expr) - - return filter(a:list, expr) - else - " Use fast filter. - return s:head_filter(a:list, complete_str) - endif -endfunction"}}} - -function! s:head_filter(list, complete_str) "{{{ - let word = type(a:list[0]) == type('') ? 'v:val' : 'v:val.word' - - if &ignorecase - let expr = printf('!stridx(tolower(%s), %s)', - \ word, string(tolower(a:complete_str))) - else - let expr = printf('!stridx(%s, %s)', - \ word, string(a:complete_str)) - endif - - if neocomplcache#is_auto_complete() - " Don't complete cursor word. - let expr .= printf(' && %s !=? a:complete_str', word) - endif - - return filter(a:list, expr) -endfunction"}}} - -function! neocomplcache#filters#dictionary_filter(dictionary, complete_str) "{{{ - if empty(a:dictionary) - return [] - endif - - let completion_length = 2 - if len(a:complete_str) < completion_length || - \ neocomplcache#check_completion_length_match( - \ a:complete_str, completion_length) || - \ &l:completefunc ==# 'neocomplcache#cunite_complete' - return neocomplcache#keyword_filter( - \ neocomplcache#unpack_dictionary(a:dictionary), a:complete_str) - endif - - let key = tolower(a:complete_str[: completion_length-1]) - - if !has_key(a:dictionary, key) - return [] - endif - - let list = a:dictionary[key] - if type(list) == type({}) - " Convert dictionary dictionary. - unlet list - let list = values(a:dictionary[key]) - else - let list = copy(list) - endif - - return (len(a:complete_str) == completion_length && &ignorecase - \ && !neocomplcache#check_completion_length_match( - \ a:complete_str, completion_length)) ? - \ list : neocomplcache#keyword_filter(list, a:complete_str) -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_abbr.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_abbr.vim deleted file mode 100644 index 8019cf2..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_abbr.vim +++ /dev/null @@ -1,63 +0,0 @@ -"============================================================================= -" FILE: converter_abbr.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 06 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#converter_abbr#define() "{{{ - return s:converter -endfunction"}}} - -let s:converter = { - \ 'name' : 'converter_abbr', - \ 'description' : 'abbr converter', - \} - -function! s:converter.filter(context) "{{{ - if g:neocomplcache_max_keyword_width < 0 - return a:context.candidates - endif - - for candidate in a:context.candidates - let abbr = get(candidate, 'abbr', candidate.word) - if len(abbr) > g:neocomplcache_max_keyword_width - let len = neocomplcache#util#wcswidth(abbr) - - if len > g:neocomplcache_max_keyword_width - let candidate.abbr = neocomplcache#util#truncate_smart( - \ abbr, g:neocomplcache_max_keyword_width, - \ g:neocomplcache_max_keyword_width/2, '..') - endif - endif - endfor - - return a:context.candidates -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_case.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_case.vim deleted file mode 100644 index 2699a77..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_case.vim +++ /dev/null @@ -1,79 +0,0 @@ -"============================================================================= -" FILE: converter_case.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 02 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#converter_case#define() "{{{ - return s:converter -endfunction"}}} - -let s:converter = { - \ 'name' : 'converter_case', - \ 'description' : 'case converter', - \} - -function! s:converter.filter(context) "{{{ - if !neocomplcache#is_text_mode() && !neocomplcache#within_comment() - return a:context.candidates - endif - - let convert_candidates = filter(copy(a:context.candidates), - \ "get(v:val, 'neocomplcache__convertable', 1) - \ && v:val.word =~ '^[a-zA-Z0-9_''-]\\+$'") - - if a:context.complete_str =~ '^\l\+$' - for candidate in convert_candidates - let candidate.word = tolower(candidate.word) - if has_key(candidate, 'abbr') - let candidate.abbr = tolower(candidate.abbr) - endif - endfor - elseif a:context.complete_str =~ '^\u\+$' - for candidate in convert_candidates - let candidate.word = toupper(candidate.word) - if has_key(candidate, 'abbr') - let candidate.abbr = toupper(candidate.abbr) - endif - endfor - elseif a:context.complete_str =~ '^\u\l\+$' - for candidate in convert_candidates - let candidate.word = toupper(candidate.word[0]). - \ tolower(candidate.word[1:]) - if has_key(candidate, 'abbr') - let candidate.abbr = toupper(candidate.abbr[0]). - \ tolower(candidate.abbr[1:]) - endif - endfor - endif - - return a:context.candidates -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_delimiter.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_delimiter.vim deleted file mode 100644 index cac3a32..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_delimiter.vim +++ /dev/null @@ -1,94 +0,0 @@ -"============================================================================= -" FILE: converter_delimiter.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 06 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#converter_delimiter#define() "{{{ - return s:converter -endfunction"}}} - -let s:converter = { - \ 'name' : 'converter_delimiter', - \ 'description' : 'delimiter converter', - \} - -function! s:converter.filter(context) "{{{ - if g:neocomplcache_max_keyword_width < 0 - return a:context.candidates - endif - - " Delimiter check. - let filetype = neocomplcache#get_context_filetype() - - let next_keyword = neocomplcache#filters# - \converter_remove_next_keyword#get_next_keyword(a:context.source_name) - for delimiter in ['/'] + - \ get(g:neocomplcache_delimiter_patterns, filetype, []) - " Count match. - let delim_cnt = 0 - let matchend = matchend(a:context.complete_str, delimiter) - while matchend >= 0 - let matchend = matchend(a:context.complete_str, - \ delimiter, matchend) - let delim_cnt += 1 - endwhile - - for candidate in a:context.candidates - let split_list = split(candidate.word, delimiter.'\ze.', 1) - if len(split_list) > 1 - let delimiter_sub = substitute( - \ delimiter, '\\\([.^$]\)', '\1', 'g') - let candidate.word = join(split_list[ : delim_cnt], delimiter_sub) - let candidate.abbr = join( - \ split(get(candidate, 'abbr', candidate.word), - \ delimiter.'\ze.', 1)[ : delim_cnt], - \ delimiter_sub) - - if g:neocomplcache_max_keyword_width >= 0 - \ && len(candidate.abbr) > g:neocomplcache_max_keyword_width - let candidate.abbr = substitute(candidate.abbr, - \ '\(\h\)\w*'.delimiter, '\1'.delimiter_sub, 'g') - endif - if delim_cnt+1 < len(split_list) - let candidate.abbr .= delimiter_sub . '~' - let candidate.dup = 0 - - if g:neocomplcache_enable_auto_delimiter && next_keyword == '' - let candidate.word .= delimiter_sub - endif - endif - endif - endfor - endfor - - return a:context.candidates -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_nothing.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_nothing.vim deleted file mode 100644 index 4e3d6dc..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_nothing.vim +++ /dev/null @@ -1,47 +0,0 @@ -"============================================================================= -" FILE: converter_nothing.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#converter_nothing#define() "{{{ - return s:converter -endfunction"}}} - -let s:converter = { - \ 'name' : 'converter_nothing', - \ 'description' : 'nothing converter', - \} - -function! s:converter.filter(context) "{{{ - " Nothing. - return a:context.candidates -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_remove_next_keyword.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_remove_next_keyword.vim deleted file mode 100644 index d186db7..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/converter_remove_next_keyword.vim +++ /dev/null @@ -1,87 +0,0 @@ -"============================================================================= -" FILE: converter_remove_next_keyword.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 31 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#converter_remove_next_keyword#define() "{{{ - return s:converter -endfunction"}}} - -let s:converter = { - \ 'name' : 'converter_remove_next_keyword', - \ 'description' : 'remove next keyword converter', - \} - -function! s:converter.filter(context) "{{{ - " Remove next keyword. - let next_keyword = neocomplcache#filters# - \converter_remove_next_keyword#get_next_keyword(a:context.source_name) - if next_keyword == '' - return a:context.candidates - endif - - let next_keyword = substitute( - \ substitute(escape(next_keyword, - \ '~" \.^$*[]'), "'", "''", 'g'), ')$', '', '').'$' - - " No ignorecase. - let ignorecase_save = &ignorecase - let &ignorecase = 0 - try - for r in a:context.candidates - let pos = match(r.word, next_keyword) - if pos >= 0 - if !has_key(r, 'abbr') - let r.abbr = r.word - endif - - let r.word = r.word[: pos-1] - endif - endfor - finally - let &ignorecase = ignorecase_save - endtry - - return a:context.candidates -endfunction"}}} - -function! neocomplcache#filters#converter_remove_next_keyword#get_next_keyword(source_name) "{{{ - let pattern = '^\%(' . - \ ((a:source_name ==# 'filename_complete' || - \ a:source_name ==# 'filename_complete') ? - \ neocomplcache#get_next_keyword_pattern('filename') : - \ neocomplcache#get_next_keyword_pattern()) . '\m\)' - - let next_keyword = matchstr('a'. - \ getline('.')[len(neocomplcache#get_cur_text(1)) :], pattern)[1:] - return next_keyword -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_fuzzy.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_fuzzy.vim deleted file mode 100644 index 838cf55..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_fuzzy.vim +++ /dev/null @@ -1,47 +0,0 @@ -"============================================================================= -" FILE: matcher_fuzzy.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#matcher_fuzzy#define() "{{{ - return s:matcher -endfunction"}}} - -let s:matcher = { - \ 'name' : 'matcher_fuzzy', - \ 'description' : 'fuzzy matcher', - \} - -function! s:matcher.filter(context) "{{{ - " Todo: - return [] -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_head.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_head.vim deleted file mode 100644 index 275e3b6..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_head.vim +++ /dev/null @@ -1,47 +0,0 @@ -"============================================================================= -" FILE: matcher_head.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 25 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#matcher_head#define() "{{{ - return s:matcher -endfunction"}}} - -let s:matcher = { - \ 'name' : 'matcher_head', - \ 'description' : 'head matcher', - \} - -function! s:matcher.filter(context) "{{{ - " Todo: - return [] -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_old.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_old.vim deleted file mode 100644 index 89da149..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/matcher_old.vim +++ /dev/null @@ -1,57 +0,0 @@ -"============================================================================= -" FILE: matcher_old.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 25 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#matcher_old#define() "{{{ - return s:matcher -endfunction"}}} - -let s:matcher = { - \ 'name' : 'matcher_old', - \ 'description' : 'old matcher', - \} - -function! s:matcher.filter(candidates, context) "{{{ - if a:context.input == '' - return neocomplcache#util#filter_matcher( - \ a:candidates, '', a:context) - endif - - let candidates = a:candidates - for input in a:context.input_list - let candidates = neocomplcache#filters#matcher_old#glob_matcher( - \ candidates, input, a:context) - endfor - - return candidates -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_length.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_length.vim deleted file mode 100644 index 8020de1..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_length.vim +++ /dev/null @@ -1,54 +0,0 @@ -"============================================================================= -" FILE: sorter_length.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 09 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#sorter_length#define() "{{{ - return s:sorter -endfunction"}}} - -let s:sorter = { - \ 'name' : 'sorter_length', - \ 'description' : 'sort by length order', - \} - -function! s:sorter.filter(context) "{{{ - return sort(a:context.candidates, 's:compare') -endfunction"}}} - -function! s:compare(i1, i2) - let diff = len(a:i1.word) - len(a:i2.word) - if !diff - let diff = (a:i1.word ># a:i2.word) ? 1 : -1 - endif - return diff -endfunction - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_nothing.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_nothing.vim deleted file mode 100644 index 4535f13..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_nothing.vim +++ /dev/null @@ -1,47 +0,0 @@ -"============================================================================= -" FILE: sorter_nothing.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#sorter_nothing#define() "{{{ - return s:sorter -endfunction"}}} - -let s:sorter = { - \ 'name' : 'sorter_nothing', - \ 'description' : 'nothing sorter', - \} - -function! s:sorter.filter(context) "{{{ - " Nothing. - return a:candidates -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_rank.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_rank.vim deleted file mode 100644 index cc1355b..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/filters/sorter_rank.vim +++ /dev/null @@ -1,51 +0,0 @@ -"============================================================================= -" FILE: sorter_rank.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 09 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#filters#sorter_rank#define() "{{{ - return s:sorter -endfunction"}}} - -let s:sorter = { - \ 'name' : 'sorter_rank', - \ 'description' : 'sort by matched rank order', - \} - -function! s:sorter.filter(context) "{{{ - return sort(a:context.candidates, 's:compare') -endfunction"}}} - -function! s:compare(i1, i2) - let diff = (get(a:i2, 'rank', 0) - get(a:i1, 'rank', 0)) - return (diff != 0) ? diff : (a:i1.word ># a:i2.word) ? 1 : -1 -endfunction" - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/handler.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/handler.vim deleted file mode 100644 index e2f3324..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/handler.vim +++ /dev/null @@ -1,291 +0,0 @@ -"============================================================================= -" FILE: handler.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 29 Jul 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#handler#_on_moved_i() "{{{ - " Get cursor word. - let cur_text = neocomplcache#get_cur_text(1) - - call s:close_preview_window() -endfunction"}}} -function! neocomplcache#handler#_on_insert_enter() "{{{ - if &l:foldmethod ==# 'expr' && foldlevel('.') != 0 - foldopen - endif -endfunction"}}} -function! neocomplcache#handler#_on_insert_leave() "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - - let neocomplcache.cur_text = '' - let neocomplcache.old_cur_text = '' - - call s:close_preview_window() -endfunction"}}} -function! neocomplcache#handler#_on_write_post() "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - - " Restore foldinfo. - for winnr in filter(range(1, winnr('$')), - \ "!empty(getwinvar(v:val, 'neocomplcache_foldinfo'))") - let neocomplcache_foldinfo = - \ getwinvar(winnr, 'neocomplcache_foldinfo') - call setwinvar(winnr, '&foldmethod', - \ neocomplcache_foldinfo.foldmethod) - call setwinvar(winnr, '&foldexpr', - \ neocomplcache_foldinfo.foldexpr) - call setwinvar(winnr, - \ 'neocomplcache_foldinfo', {}) - endfor -endfunction"}}} -function! neocomplcache#handler#_on_complete_done() "{{{ - " Get cursor word. - let [_, candidate] = neocomplcache#match_word( - \ neocomplcache#get_cur_text(1)) - if candidate == '' - return - endif - - let frequencies = neocomplcache#variables#get_frequencies() - if !has_key(frequencies, candidate) - let frequencies[candidate] = 20 - else - let frequencies[candidate] += 20 - endif -endfunction"}}} -function! neocomplcache#handler#_change_update_time() "{{{ - if &updatetime > g:neocomplcache_cursor_hold_i_time - " Change updatetime. - let neocomplcache = neocomplcache#get_current_neocomplcache() - let neocomplcache.update_time_save = &updatetime - let &updatetime = g:neocomplcache_cursor_hold_i_time - endif -endfunction"}}} -function! neocomplcache#handler#_restore_update_time() "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - if &updatetime < neocomplcache.update_time_save - " Restore updatetime. - let &updatetime = neocomplcache.update_time_save - endif -endfunction"}}} - -function! neocomplcache#handler#_do_auto_complete(event) "{{{ - if s:check_in_do_auto_complete() - return - endif - - let neocomplcache = neocomplcache#get_current_neocomplcache() - let neocomplcache.skipped = 0 - let neocomplcache.event = a:event - - let cur_text = neocomplcache#get_cur_text(1) - - if g:neocomplcache_enable_debug - echomsg 'cur_text = ' . cur_text - endif - - " Prevent infinity loop. - if s:is_skip_auto_complete(cur_text) - " Make cache. - if cur_text =~ '^\s*$\|\s\+$' - if neocomplcache#is_enabled_source('buffer_complete') - " Caching current cache line. - call neocomplcache#sources#buffer_complete#caching_current_line() - endif - if neocomplcache#is_enabled_source('member_complete') - " Caching current cache line. - call neocomplcache#sources#member_complete#caching_current_line() - endif - endif - - if g:neocomplcache_enable_debug - echomsg 'Skipped.' - endif - - call neocomplcache#helper#clear_result() - return - endif - - let neocomplcache.old_cur_text = cur_text - - if neocomplcache#helper#is_omni_complete(cur_text) - call feedkeys("\(neocomplcache_start_omni_complete)") - return - endif - - " Check multibyte input or eskk. - if neocomplcache#is_eskk_enabled() - \ || neocomplcache#is_multibyte_input(cur_text) - if g:neocomplcache_enable_debug - echomsg 'Skipped.' - endif - - return - endif - - " Check complete position. - let complete_results = neocomplcache#complete#_set_results_pos(cur_text) - if empty(complete_results) - if g:neocomplcache_enable_debug - echomsg 'Skipped.' - endif - - return - endif - - let &l:completefunc = 'neocomplcache#complete#auto_complete' - - if neocomplcache#is_prefetch() - " Do prefetch. - let neocomplcache.complete_results = - \ neocomplcache#complete#_get_results(cur_text) - - if empty(neocomplcache.complete_results) - if g:neocomplcache_enable_debug - echomsg 'Skipped.' - endif - - " Skip completion. - let &l:completefunc = 'neocomplcache#complete#manual_complete' - call neocomplcache#helper#clear_result() - return - endif - endif - - call s:save_foldinfo() - - " Set options. - set completeopt-=menu - set completeopt-=longest - set completeopt+=menuone - - " Start auto complete. - call feedkeys(&l:formatoptions !~ 'a' ? - \ "\(neocomplcache_start_auto_complete)": - \ "\(neocomplcache_start_auto_complete_no_select)") -endfunction"}}} - -function! s:save_foldinfo() "{{{ - " Save foldinfo. - let winnrs = filter(range(1, winnr('$')), - \ "winbufnr(v:val) == bufnr('%')") - - " Note: for foldmethod=expr or syntax. - call filter(winnrs, " - \ (getwinvar(v:val, '&foldmethod') ==# 'expr' || - \ getwinvar(v:val, '&foldmethod') ==# 'syntax') && - \ getwinvar(v:val, '&modifiable')") - for winnr in winnrs - call setwinvar(winnr, 'neocomplcache_foldinfo', { - \ 'foldmethod' : getwinvar(winnr, '&foldmethod'), - \ 'foldexpr' : getwinvar(winnr, '&foldexpr') - \ }) - call setwinvar(winnr, '&foldmethod', 'manual') - call setwinvar(winnr, '&foldexpr', 0) - endfor -endfunction"}}} -function! s:check_in_do_auto_complete() "{{{ - if neocomplcache#is_locked() - return 1 - endif - - " Detect completefunc. - if &l:completefunc !~# '^neocomplcache#' - if g:neocomplcache_force_overwrite_completefunc - " Set completefunc. - let &l:completefunc = 'neocomplcache#complete#manual_complete' - else - " Warning. - redir => output - 99verbose setl completefunc - redir END - call neocomplcache#print_error(output) - call neocomplcache#print_error( - \ 'Another plugin set completefunc! Disabled neocomplcache.') - NeoComplCacheLock - return 1 - endif - endif - - " Detect AutoComplPop. - if exists('g:acp_enableAtStartup') && g:acp_enableAtStartup - call neocomplcache#print_error( - \ 'Detected enabled AutoComplPop! Disabled neocomplcache.') - NeoComplCacheLock - return 1 - endif -endfunction"}}} -function! s:is_skip_auto_complete(cur_text) "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - - if a:cur_text =~ '^\s*$\|\s\+$' - \ || a:cur_text == neocomplcache.old_cur_text - \ || (g:neocomplcache_lock_iminsert && &l:iminsert) - \ || (&l:formatoptions =~# '[tc]' && &l:textwidth > 0 - \ && neocomplcache#util#wcswidth(a:cur_text) >= &l:textwidth) - return 1 - endif - - if !neocomplcache.skip_next_complete - return 0 - endif - - " Check delimiter pattern. - let is_delimiter = 0 - let filetype = neocomplcache#get_context_filetype() - - for delimiter in ['/', '\.'] + - \ get(g:neocomplcache_delimiter_patterns, filetype, []) - if a:cur_text =~ delimiter . '$' - let is_delimiter = 1 - break - endif - endfor - - if is_delimiter && neocomplcache.skip_next_complete == 2 - let neocomplcache.skip_next_complete = 0 - return 0 - endif - - let neocomplcache.skip_next_complete = 0 - let neocomplcache.cur_text = '' - let neocomplcache.old_cur_text = '' - - return 1 -endfunction"}}} -function! s:close_preview_window() "{{{ - if g:neocomplcache_enable_auto_close_preview && - \ bufname('%') !=# '[Command Line]' && winnr('$') != 1 - " Close preview window. - pclose! - endif -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/helper.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/helper.vim deleted file mode 100644 index b714d5a..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/helper.vim +++ /dev/null @@ -1,438 +0,0 @@ -"============================================================================= -" FILE: helper.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 03 Jul 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#helper#get_cur_text() "{{{ - let cur_text = - \ (mode() ==# 'i' ? (col('.')-1) : col('.')) >= len(getline('.')) ? - \ getline('.') : - \ matchstr(getline('.'), - \ '^.*\%' . col('.') . 'c' . (mode() ==# 'i' ? '' : '.')) - - if cur_text =~ '^.\{-}\ze\S\+$' - let complete_str = matchstr(cur_text, '\S\+$') - let cur_text = matchstr(cur_text, '^.\{-}\ze\S\+$') - else - let complete_str = '' - endif - - let neocomplcache = neocomplcache#get_current_neocomplcache() - if neocomplcache.event ==# 'InsertCharPre' - let complete_str .= v:char - endif - - let filetype = neocomplcache#get_context_filetype() - let wildcard = get(g:neocomplcache_wildcard_characters, filetype, - \ get(g:neocomplcache_wildcard_characters, '_', '*')) - if g:neocomplcache_enable_wildcard && - \ wildcard !=# '*' && len(wildcard) == 1 - " Substitute wildcard character. - while 1 - let index = stridx(complete_str, wildcard) - if index <= 0 - break - endif - - let complete_str = complete_str[: index-1] - \ . '*' . complete_str[index+1: ] - endwhile - endif - - let neocomplcache.cur_text = cur_text . complete_str - - " Save cur_text. - return neocomplcache.cur_text -endfunction"}}} - -function! neocomplcache#helper#keyword_escape(complete_str) "{{{ - " Fuzzy completion. - let keyword_len = len(a:complete_str) - let keyword_escape = s:keyword_escape(a:complete_str) - if g:neocomplcache_enable_fuzzy_completion - \ && (g:neocomplcache_fuzzy_completion_start_length - \ <= keyword_len && keyword_len < 20) - let pattern = keyword_len >= 8 ? - \ '\0\\w*' : '\\%(\0\\w*\\|\U\0\E\\l*\\)' - - let start = g:neocomplcache_fuzzy_completion_start_length - if start <= 1 - let keyword_escape = - \ substitute(keyword_escape, '\w', pattern, 'g') - elseif keyword_len < 8 - let keyword_escape = keyword_escape[: start - 2] - \ . substitute(keyword_escape[start-1 :], '\w', pattern, 'g') - else - let keyword_escape = keyword_escape[: 3] . - \ substitute(keyword_escape[4:12], '\w', - \ pattern, 'g') . keyword_escape[13:] - endif - else - " Underbar completion. "{{{ - if g:neocomplcache_enable_underbar_completion - \ && keyword_escape =~ '[^_]_\|^_' - let keyword_escape = substitute(keyword_escape, - \ '\%(^\|[^_]\)\zs_', '[^_]*_', 'g') - endif - if g:neocomplcache_enable_underbar_completion - \ && '-' =~ '\k' && keyword_escape =~ '[^-]-' - let keyword_escape = substitute(keyword_escape, - \ '[^-]\zs-', '[^-]*-', 'g') - endif - "}}} - " Camel case completion. "{{{ - if g:neocomplcache_enable_camel_case_completion - \ && keyword_escape =~ '\u\?\U*' - let keyword_escape = - \ substitute(keyword_escape, - \ '\u\?\zs\U*', - \ '\\%(\0\\l*\\|\U\0\E\\u*_\\?\\)', 'g') - endif - "}}} - endif - - call neocomplcache#print_debug(keyword_escape) - return keyword_escape -endfunction"}}} - -function! neocomplcache#helper#is_omni_complete(cur_text) "{{{ - " Check eskk complete length. - if neocomplcache#is_eskk_enabled() - \ && exists('g:eskk#start_completion_length') - if !neocomplcache#is_eskk_convertion(a:cur_text) - \ || !neocomplcache#is_multibyte_input(a:cur_text) - return 0 - endif - - let complete_pos = call(&l:omnifunc, [1, '']) - let complete_str = a:cur_text[complete_pos :] - return neocomplcache#util#mb_strlen(complete_str) >= - \ g:eskk#start_completion_length - endif - - let filetype = neocomplcache#get_context_filetype() - let omnifunc = get(g:neocomplcache_omni_functions, - \ filetype, &l:omnifunc) - - if neocomplcache#check_invalid_omnifunc(omnifunc) - return 0 - endif - - let syn_name = neocomplcache#helper#get_syn_name(1) - if syn_name ==# 'Comment' || syn_name ==# 'String' - " Skip omni_complete in string literal. - return 0 - endif - - if has_key(g:neocomplcache_force_omni_patterns, omnifunc) - let pattern = g:neocomplcache_force_omni_patterns[omnifunc] - elseif filetype != '' && - \ get(g:neocomplcache_force_omni_patterns, filetype, '') != '' - let pattern = g:neocomplcache_force_omni_patterns[filetype] - else - return 0 - endif - - if a:cur_text !~# '\%(' . pattern . '\m\)$' - return 0 - endif - - " Set omnifunc. - let &omnifunc = omnifunc - - return 1 -endfunction"}}} - -function! neocomplcache#helper#is_enabled_source(source_name) "{{{ - if neocomplcache#is_disabled_source(a:source_name) - return 0 - endif - - let neocomplcache = neocomplcache#get_current_neocomplcache() - if !has_key(neocomplcache, 'sources') - call neocomplcache#helper#get_sources_list() - endif - - return index(keys(neocomplcache.sources), a:source_name) >= 0 -endfunction"}}} - -function! neocomplcache#helper#get_source_filetypes(filetype) "{{{ - let filetype = (a:filetype == '') ? 'nothing' : a:filetype - - let filetype_dict = {} - - let filetypes = [filetype] - if filetype =~ '\.' - if exists('g:neocomplcache_ignore_composite_filetype_lists') - \ && has_key(g:neocomplcache_ignore_composite_filetype_lists, filetype) - let filetypes = [g:neocomplcache_ignore_composite_filetype_lists[filetype]] - else - " Set composite filetype. - let filetypes += split(filetype, '\.') - endif - endif - - if exists('g:neocomplcache_same_filetype_lists') - for ft in copy(filetypes) - let filetypes += split(get(g:neocomplcache_same_filetype_lists, ft, - \ get(g:neocomplcache_same_filetype_lists, '_', '')), ',') - endfor - endif - - return neocomplcache#util#uniq(filetypes) -endfunction"}}} - -function! neocomplcache#helper#get_completion_length(plugin_name) "{{{ - " Todo. -endfunction"}}} - -function! neocomplcache#helper#complete_check() "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - if g:neocomplcache_enable_debug - echomsg split(reltimestr(reltime(neocomplcache.start_time)))[0] - endif - let ret = (!neocomplcache#is_prefetch() && complete_check()) - \ || (neocomplcache#is_auto_complete() - \ && g:neocomplcache_skip_auto_completion_time != '' - \ && split(reltimestr(reltime(neocomplcache.start_time)))[0] > - \ g:neocomplcache_skip_auto_completion_time) - if ret - let neocomplcache = neocomplcache#get_current_neocomplcache() - let neocomplcache.skipped = 1 - - redraw - echo 'Skipped.' - endif - - return ret -endfunction"}}} - -function! neocomplcache#helper#get_syn_name(is_trans) "{{{ - return len(getline('.')) < 200 ? - \ synIDattr(synIDtrans(synID(line('.'), mode() ==# 'i' ? - \ col('.')-1 : col('.'), a:is_trans)), 'name') : '' -endfunction"}}} - -function! neocomplcache#helper#match_word(cur_text, ...) "{{{ - let pattern = a:0 >= 1 ? a:1 : neocomplcache#get_keyword_pattern_end() - - " Check wildcard. - let complete_pos = s:match_wildcard( - \ a:cur_text, pattern, match(a:cur_text, pattern)) - - let complete_str = (complete_pos >=0) ? - \ a:cur_text[complete_pos :] : '' - - return [complete_pos, complete_str] -endfunction"}}} - -function! neocomplcache#helper#filetype_complete(arglead, cmdline, cursorpos) "{{{ - " Dup check. - let ret = {} - for item in map( - \ split(globpath(&runtimepath, 'syntax/*.vim'), '\n') + - \ split(globpath(&runtimepath, 'indent/*.vim'), '\n') + - \ split(globpath(&runtimepath, 'ftplugin/*.vim'), '\n') - \ , 'fnamemodify(v:val, ":t:r")') - if !has_key(ret, item) && item =~ '^'.a:arglead - let ret[item] = 1 - endif - endfor - - return sort(keys(ret)) -endfunction"}}} - -function! neocomplcache#helper#unite_patterns(pattern_var, filetype) "{{{ - let keyword_patterns = [] - let dup_check = {} - - " Composite filetype. - for ft in split(a:filetype, '\.') - if has_key(a:pattern_var, ft) && !has_key(dup_check, ft) - let dup_check[ft] = 1 - call add(keyword_patterns, a:pattern_var[ft]) - endif - - " Same filetype. - if exists('g:neocomplcache_same_filetype_lists') - \ && has_key(g:neocomplcache_same_filetype_lists, ft) - for ft in split(g:neocomplcache_same_filetype_lists[ft], ',') - if has_key(a:pattern_var, ft) && !has_key(dup_check, ft) - let dup_check[ft] = 1 - call add(keyword_patterns, a:pattern_var[ft]) - endif - endfor - endif - endfor - - if empty(keyword_patterns) - let default = get(a:pattern_var, '_', get(a:pattern_var, 'default', '')) - if default != '' - call add(keyword_patterns, default) - endif - endif - - return join(keyword_patterns, '\m\|') -endfunction"}}} - -function! neocomplcache#helper#ftdictionary2list(dictionary, filetype) "{{{ - let list = [] - for filetype in neocomplcache#get_source_filetypes(a:filetype) - if has_key(a:dictionary, filetype) - call add(list, a:dictionary[filetype]) - endif - endfor - - return list -endfunction"}}} - -function! neocomplcache#helper#get_sources_list(...) "{{{ - let filetype = neocomplcache#get_context_filetype() - - let source_names = exists('b:neocomplcache_sources_list') ? - \ b:neocomplcache_sources_list : - \ get(a:000, 0, - \ get(g:neocomplcache_sources_list, filetype, - \ get(g:neocomplcache_sources_list, '_', ['_']))) - let disabled_sources = get( - \ g:neocomplcache_disabled_sources_list, filetype, - \ get(g:neocomplcache_disabled_sources_list, '_', [])) - call neocomplcache#init#_sources(source_names) - - let all_sources = neocomplcache#available_sources() - let sources = {} - for source_name in source_names - if source_name ==# '_' - " All sources. - let sources = all_sources - break - endif - - if !has_key(all_sources, source_name) - call neocomplcache#print_warning(printf( - \ 'Invalid source name "%s" is given.', source_name)) - continue - endif - - let sources[source_name] = all_sources[source_name] - endfor - - let neocomplcache = neocomplcache#get_current_neocomplcache() - let neocomplcache.sources = filter(sources, " - \ index(disabled_sources, v:val.name) < 0 && - \ (empty(v:val.filetypes) || - \ get(v:val.filetypes, neocomplcache.context_filetype, 0))") - - return neocomplcache.sources -endfunction"}}} - -function! neocomplcache#helper#clear_result() "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - - let neocomplcache.complete_str = '' - let neocomplcache.candidates = [] - let neocomplcache.complete_results = [] - let neocomplcache.complete_pos = -1 -endfunction"}}} - -function! neocomplcache#helper#call_hook(sources, hook_name, context) "{{{ - for source in neocomplcache#util#convert2list(a:sources) - try - if !has_key(source.hooks, a:hook_name) - if a:hook_name ==# 'on_init' && has_key(source, 'initialize') - call source.initialize() - elseif a:hook_name ==# 'on_final' && has_key(source, 'finalize') - call source.finalize() - endif - else - call call(source.hooks[a:hook_name], - \ [extend(source.neocomplcache__context, a:context)], - \ source.hooks) - endif - catch - call unite#print_error(v:throwpoint) - call unite#print_error(v:exception) - call unite#print_error( - \ '[unite.vim] Error occured in calling hook "' . a:hook_name . '"!') - call unite#print_error( - \ '[unite.vim] Source name is ' . source.name) - endtry - endfor -endfunction"}}} - -function! neocomplcache#helper#call_filters(filters, source, context) "{{{ - let context = extend(a:source.neocomplcache__context, a:context) - let _ = [] - for filter in neocomplcache#init#_filters( - \ neocomplcache#util#convert2list(a:filters)) - try - let context.candidates = call(filter.filter, [context], filter) - catch - call unite#print_error(v:throwpoint) - call unite#print_error(v:exception) - call unite#print_error( - \ '[unite.vim] Error occured in calling filter ' - \ . filter.name . '!') - call unite#print_error( - \ '[unite.vim] Source name is ' . a:source.name) - endtry - endfor - - return context.candidates -endfunction"}}} - -function! s:match_wildcard(cur_text, pattern, complete_pos) "{{{ - let complete_pos = a:complete_pos - while complete_pos > 1 && a:cur_text[complete_pos - 1] == '*' - let left_text = a:cur_text[: complete_pos - 2] - if left_text == '' || left_text !~ a:pattern - break - endif - - let complete_pos = match(left_text, a:pattern) - endwhile - - return complete_pos -endfunction"}}} - -function! s:keyword_escape(complete_str) "{{{ - let keyword_escape = escape(a:complete_str, '~" \.^$[]') - if g:neocomplcache_enable_wildcard - let keyword_escape = substitute( - \ substitute(keyword_escape, '.\zs\*', '.*', 'g'), - \ '\%(^\|\*\)\zs\*', '\\*', 'g') - else - let keyword_escape = escape(keyword_escape, '*') - endif - - return keyword_escape -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/init.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/init.vim deleted file mode 100644 index 67ab24d..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/init.vim +++ /dev/null @@ -1,866 +0,0 @@ -"============================================================================= -" FILE: init.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -if !exists('s:is_enabled') - let s:is_enabled = 0 -endif - -function! neocomplcache#init#lazy() "{{{ - if !exists('s:lazy_progress') - let s:lazy_progress = 0 - endif - - if s:lazy_progress == 0 - call neocomplcache#init#_others() - let s:is_enabled = 0 - elseif s:lazy_progress == 1 - call neocomplcache#init#_sources(get(g:neocomplcache_sources_list, - \ neocomplcache#get_context_filetype(), ['_'])) - else - call neocomplcache#init#_autocmds() - let s:is_enabled = 1 - endif - - let s:lazy_progress += 1 -endfunction"}}} - -function! neocomplcache#init#enable() "{{{ - if neocomplcache#is_enabled() - return - endif - - call neocomplcache#init#_autocmds() - call neocomplcache#init#_others() - - call neocomplcache#init#_sources(get(g:neocomplcache_sources_list, - \ neocomplcache#get_context_filetype(), ['_'])) - let s:is_enabled = 1 -endfunction"}}} - -function! neocomplcache#init#disable() "{{{ - if !neocomplcache#is_enabled() - call neocomplcache#print_warning( - \ 'neocomplcache is disabled! This command is ignored.') - return - endif - - let s:is_enabled = 0 - - augroup neocomplcache - autocmd! - augroup END - - delcommand NeoComplCacheDisable - - call neocomplcache#helper#call_hook(filter(values( - \ neocomplcache#variables#get_sources()), 'v:val.loaded'), - \ 'on_final', {}) -endfunction"}}} - -function! neocomplcache#init#is_enabled() "{{{ - return s:is_enabled -endfunction"}}} - -function! neocomplcache#init#_autocmds() "{{{ - augroup neocomplcache - autocmd! - autocmd InsertEnter * - \ call neocomplcache#handler#_on_insert_enter() - autocmd InsertLeave * - \ call neocomplcache#handler#_on_insert_leave() - autocmd CursorMovedI * - \ call neocomplcache#handler#_on_moved_i() - autocmd BufWritePost * - \ call neocomplcache#handler#_on_write_post() - augroup END - - if g:neocomplcache_enable_insert_char_pre - \ && (v:version > 703 || v:version == 703 && has('patch418')) - autocmd neocomplcache InsertCharPre * - \ call neocomplcache#handler#_do_auto_complete('InsertCharPre') - elseif g:neocomplcache_enable_cursor_hold_i - augroup neocomplcache - autocmd CursorHoldI * - \ call neocomplcache#handler#_do_auto_complete('CursorHoldI') - autocmd InsertEnter * - \ call neocomplcache#handler#_change_update_time() - autocmd InsertLeave * - \ call neocomplcache#handler#_restore_update_time() - augroup END - else - autocmd neocomplcache CursorMovedI * - \ call neocomplcache#handler#_do_auto_complete('CursorMovedI') - endif - - if (v:version > 703 || v:version == 703 && has('patch598')) - autocmd neocomplcache CompleteDone * - \ call neocomplcache#handler#_on_complete_done() - endif -endfunction"}}} - -function! neocomplcache#init#_others() "{{{ - call neocomplcache#init#_variables() - - call neocomplcache#context_filetype#initialize() - - call neocomplcache#commands#_initialize() - - " Save options. - let s:completefunc_save = &completefunc - let s:completeopt_save = &completeopt - - " Set completefunc. - let &completefunc = 'neocomplcache#complete#manual_complete' - - " For auto complete keymappings. - call neocomplcache#mappings#define_default_mappings() - - " Detect set paste. - if &paste - redir => output - 99verbose set paste - redir END - call neocomplcache#print_error(output) - call neocomplcache#print_error( - \ 'Detected set paste! Disabled neocomplcache.') - endif - - command! -nargs=0 -bar NeoComplCacheDisable - \ call neocomplcache#init#disable() -endfunction"}}} - -function! neocomplcache#init#_variables() "{{{ - " Initialize keyword patterns. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_keyword_patterns', {}) - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'_', - \'\k\+') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_keyword_patterns', - \'filename', - \ neocomplcache#util#is_windows() ? - \'\%(\a\+:/\)\?\%([/[:alnum:]()$+_~.\x80-\xff-]\|[^[:print:]]\|\\.\)\+' : - \'\%([/\[\][:alnum:]()$+_~.-]\|[^[:print:]]\|\\.\)\+') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'lisp,scheme,clojure,int-gosh,int-clisp,int-clj', - \'[[:alpha:]+*/@$_=.!?-][[:alnum:]+*/@$_:=.!?-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'ruby,int-irb', - \'^=\%(b\%[egin]\|e\%[nd]\)\|\%(@@\|[:$@]\)\h\w*\|\h\w*\%(::\w*\)*[!?]\?') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'php,int-php', - \'\)\?'. - \'\|\$\h\w*\|\h\w*\%(\%(\\\|::\)\w*\)*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'perl,int-perlsh', - \'<\h\w*>\?\|[$@%&*]\h\w*\|\h\w*\%(::\w*\)*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'perl6,int-perl6', - \'<\h\w*>\?\|[$@%&][!.*?]\?\h[[:alnum:]_-]*'. - \'\|\h[[:alnum:]_-]*\%(::[[:alnum:]_-]*\)*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'pir', - \'[$@%.=]\?\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'pasm', - \'[=]\?\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'vim,help', - \'-\h[[:alnum:]-]*=\?\|\c\[:\%(\h\w*:\]\)\?\|&\h[[:alnum:]_:]*\|'. - \'\%(\h\w*\)\?\|([^)]*)\?'. - \'\|<\h[[:alnum:]_-]*>\?\|\h[[:alnum:]_:#]*!\?\|$\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'tex', - \'\\\a{\a\{1,2}}\|\\[[:alpha:]@][[:alnum:]@]*'. - \'\%({\%([[:alnum:]:_]\+\*\?}\?\)\?\)\?\|\a[[:alnum:]:_]*\*\?') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'sh,zsh,int-zsh,int-bash,int-sh', - \'[[:alpha:]_.-][[:alnum:]_.-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'vimshell', - \'\$\$\?\w*\|[[:alpha:]_.\\/~-][[:alnum:]_.\\/~-]*\|\d\+\%(\.\d\+\)\+') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'ps1,int-powershell', - \'\[\h\%([[:alnum:]_.]*\]::\)\?\|[$%@.]\?[[:alpha:]_.:-][[:alnum:]_.:-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'c', - \'^\s*#\s*\h\w*\|\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'cpp', - \'^\s*#\s*\h\w*\|\h\w*\%(::\w*\)*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'objc', - \'^\s*#\s*\h\w*\|\h\w*\|@\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'objcpp', - \'^\s*#\s*\h\w*\|\h\w*\%(::\w*\)*\|@\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'objj', - \'\h\w*\|@\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'d', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'python,int-python,int-ipython', - \'[@]\?\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'cs', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'java', - \'[@]\?\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'javascript,actionscript,int-js,int-kjs,int-rhino', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'coffee,int-coffee', - \'[@]\?\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'awk', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'haskell,int-ghci', - \'\%(\u\w*\.\)\+[[:alnum:]_'']*\|[[:alpha:]_''][[:alnum:]_'']*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'ml,ocaml,int-ocaml,int-sml,int-smlsharp', - \'[''`#.]\?\h[[:alnum:]_'']*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'erlang,int-erl', - \'^\s*-\h\w*\|\%(\h\w*:\)*\h\w\|\h[[:alnum:]_@]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'html,xhtml,xml,markdown,eruby', - \'\)\?\|&\h\%(\w*;\)\?'. - \'\|\h[[:alnum:]_-]*="\%([^"]*"\?\)\?\|\h[[:alnum:]_:-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'css,stylus,scss,less', - \'[@#.]\?[[:alpha:]_:-][[:alnum:]_:-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'tags', - \'^[^!][^/[:blank:]]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'pic', - \'^\s*#\h\w*\|\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'arm', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'asmh8300', - \'[[:alpha:]_.][[:alnum:]_.]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'masm', - \'\.\h\w*\|[[:alpha:]_@?$][[:alnum:]_@?$]*\|\h\w*:\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'nasm', - \'^\s*\[\h\w*\|[%.]\?\h\w*\|\%(\.\.@\?\|%[%$!]\)\%(\h\w*\)\?\|\h\w*:\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'asm', - \'[%$.]\?\h\w*\%(\$\h\w*\)\?') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'gas', - \'[$.]\?\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'gdb,int-gdb', - \'$\h\w*\|[[:alnum:]:._-]\+') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'make', - \'[[:alpha:]_.-][[:alnum:]_.-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'scala,int-scala', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'int-termtter', - \'\h[[:alnum:]_/-]*\|\$\a\+\|#\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'int-earthquake', - \'[:#$]\h\w*\|\h[[:alnum:]_/-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'dosbatch,int-cmdproxy', - \'\$\w+\|[[:alpha:]_./-][[:alnum:]_.-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'vb', - \'\h\w*\|#\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'lua', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \ 'zimbu', - \'\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'konoha', - \'[*$@%]\h\w*\|\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'cobol', - \'\a[[:alnum:]-]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'coq', - \'\h[[:alnum:]_'']*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'tcl', - \'[.-]\h\w*\|\h\w*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_keyword_patterns', - \'nyaos,int-nyaos', - \'\h\w*') - "}}} - - " Initialize next keyword patterns. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_next_keyword_patterns', {}) - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_next_keyword_patterns', 'perl', - \'\h\w*>') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_next_keyword_patterns', 'perl6', - \'\h\w*>') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_next_keyword_patterns', 'vim,help', - \'\w*()\?\|\w*:\]\|[[:alnum:]_-]*[)>=]') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_next_keyword_patterns', 'python', - \'\w*()\?') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_next_keyword_patterns', 'tex', - \'[[:alnum:]:_]\+[*[{}]') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_next_keyword_patterns', 'html,xhtml,xml,mkd', - \'[^"]*"\|[[:alnum:]_:-]*>') - "}}} - - " Initialize same file type lists. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_same_filetype_lists', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'c', 'cpp') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'cpp', 'c') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'erb', 'ruby,html,xhtml') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'html,xml', 'xhtml') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'html,xhtml', 'css,stylus,less') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'css', 'scss') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'scss', 'css') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'stylus', 'css') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'less', 'css') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'xhtml', 'html,xml') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'help', 'vim') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'tex', 'bib,plaintex') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'plaintex', 'bib,tex') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'lingr-say', 'lingr-messages,lingr-members') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'J6uil_say', 'J6uil') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'vimconsole', 'vim') - - " Interactive filetypes. - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-irb', 'ruby') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-ghci,int-hugs', 'haskell') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-python,int-ipython', 'python') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-gosh', 'scheme') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-clisp', 'lisp') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-erl', 'erlang') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-zsh', 'zsh') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-bash', 'bash') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-sh', 'sh') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-cmdproxy', 'dosbatch') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-powershell', 'powershell') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-perlsh', 'perl') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-perl6', 'perl6') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-ocaml', 'ocaml') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-clj', 'clojure') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-sml,int-smlsharp', 'sml') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-js,int-kjs,int-rhino', 'javascript') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-coffee', 'coffee') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-gdb', 'gdb') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-scala', 'scala') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-nyaos', 'nyaos') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists', - \ 'int-php', 'php') - "}}} - - " Initialize delimiter patterns. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_delimiter_patterns', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'vim,help', ['#']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'erlang,lisp,int-clisp', [':']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'lisp,int-clisp', ['/', ':']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'clojure,int-clj', ['/', '\.']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'perl,cpp', ['::']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'php', ['\', '::']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'java,d,javascript,actionscript,'. - \ 'ruby,eruby,haskell,int-ghci,coffee,zimbu,konoha', - \ ['\.']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'lua', ['\.', ':']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_delimiter_patterns', - \ 'perl6', ['\.', '::']) - "}}} - - " Initialize ctags arguments. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_ctags_arguments_list', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_ctags_arguments_list', - \ '_', '') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_ctags_arguments_list', 'vim', - \ '--extra=fq --fields=afmiKlnsStz ' . - \ "--regex-vim='/function!? ([a-z#:_0-9A-Z]+)/\\1/function/'") - if neocomplcache#util#is_mac() - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_ctags_arguments_list', 'c', - \ '--c-kinds=+p --fields=+iaS --extra=+q - \ -I__DARWIN_ALIAS,__DARWIN_ALIAS_C,__DARWIN_ALIAS_I,__DARWIN_INODE64 - \ -I__DARWIN_1050,__DARWIN_1050ALIAS,__DARWIN_1050ALIAS_C,__DARWIN_1050ALIAS_I,__DARWIN_1050INODE64 - \ -I__DARWIN_EXTSN,__DARWIN_EXTSN_C - \ -I__DARWIN_LDBL_COMPAT,__DARWIN_LDBL_COMPAT2') - else - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_ctags_arguments_list', 'c', - \ '-R --sort=1 --c-kinds=+p --fields=+iaS --extra=+q ' . - \ '-I __wur,__THROW,__attribute_malloc__,__nonnull+,'. - \ '__attribute_pure__,__attribute_warn_unused_result__,__attribute__+') - endif - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_ctags_arguments_list', 'cpp', - \ '--language-force=C++ -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q '. - \ '-I __wur,__THROW,__attribute_malloc__,__nonnull+,'. - \ '__attribute_pure__,__attribute_warn_unused_result__,__attribute__+') - "}}} - - " Initialize text mode filetypes. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_text_mode_filetypes', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_text_mode_filetypes', - \ 'hybrid,text,help,tex,gitcommit,gitrebase,vcs-commit,markdown,'. - \ 'textile,creole,org,rdoc,mediawiki,rst,asciidoc,pod', 1) - "}}} - - " Initialize tags filter patterns. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_tags_filter_patterns', {}) - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_tags_filter_patterns', 'c,cpp', - \'v:val.word !~ ''^[~_]''') - "}}} - - " Initialize force omni completion pattern. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_force_omni_patterns', {}) - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_force_omni_patterns', 'objc', - \'\h\w\+\|[^.[:digit:] *\t]\%(\.\|->\)') - "}}} - - " Initialize ignore composite filetypes - call neocomplcache#util#set_default( - \ 'g:neocomplcache_ignore_composite_filetype_lists', {}) - - " Must g:neocomplcache_auto_completion_start_length > 1. - if g:neocomplcache_auto_completion_start_length < 1 - let g:neocomplcache_auto_completion_start_length = 1 - endif - " Must g:neocomplcache_min_keyword_length > 1. - if g:neocomplcache_min_keyword_length < 1 - let g:neocomplcache_min_keyword_length = 1 - endif - - " Initialize omni function list. "{{{ - if !exists('g:neocomplcache_omni_functions') - let g:neocomplcache_omni_functions = {} - endif - "}}} - - " Set custom. - call s:set_default_custom() -endfunction"}}} - -function! neocomplcache#init#_current_neocomplcache() "{{{ - let b:neocomplcache = { - \ 'context' : { - \ 'input' : '', - \ 'complete_pos' : -1, - \ 'complete_str' : '', - \ 'candidates' : [], - \ }, - \ 'lock' : 0, - \ 'skip_next_complete' : 0, - \ 'filetype' : '', - \ 'context_filetype' : '', - \ 'context_filetype_range' : - \ [[1, 1], [line('$'), len(getline('$'))+1]], - \ 'completion_length' : -1, - \ 'update_time_save' : &updatetime, - \ 'foldinfo' : [], - \ 'lock_sources' : {}, - \ 'skipped' : 0, - \ 'event' : '', - \ 'cur_text' : '', - \ 'old_cur_text' : '', - \ 'complete_str' : '', - \ 'complete_pos' : -1, - \ 'candidates' : [], - \ 'complete_results' : [], - \ 'complete_sources' : [], - \ 'manual_sources' : [], - \ 'start_time' : reltime(), - \} -endfunction"}}} - -function! neocomplcache#init#_sources(names) "{{{ - if !exists('s:loaded_source_files') - " Initialize. - let s:loaded_source_files = {} - let s:loaded_all_sources = 0 - let s:runtimepath_save = '' - endif - - " Initialize sources table. - if s:loaded_all_sources && &runtimepath ==# s:runtimepath_save - return - endif - - let runtimepath_save = neocomplcache#util#split_rtp(s:runtimepath_save) - let runtimepath = neocomplcache#util#join_rtp( - \ filter(neocomplcache#util#split_rtp(), - \ 'index(runtimepath_save, v:val) < 0')) - let sources = neocomplcache#variables#get_sources() - - for name in filter(copy(a:names), '!has_key(sources, v:val)') - " Search autoload. - for source_name in map(split(globpath(runtimepath, - \ 'autoload/neocomplcache/sources/*.vim'), '\n'), - \ "fnamemodify(v:val, ':t:r')") - if has_key(s:loaded_source_files, source_name) - continue - endif - - let s:loaded_source_files[source_name] = 1 - - let source = neocomplcache#sources#{source_name}#define() - if empty(source) - " Ignore. - continue - endif - - call neocomplcache#define_source(source) - endfor - - if name == '_' - let s:loaded_all_sources = 1 - let s:runtimepath_save = &runtimepath - endif - endfor -endfunction"}}} - -function! neocomplcache#init#_source(source) "{{{ - let default = { - \ 'max_candidates' : 0, - \ 'filetypes' : {}, - \ 'hooks' : {}, - \ 'matchers' : ['matcher_old'], - \ 'sorters' : ['sorter_rank'], - \ 'converters' : [ - \ 'converter_remove_next_keyword', - \ 'converter_delimiter', - \ 'converter_case', - \ 'converter_abbr', - \ ], - \ 'neocomplcache__context' : copy(neocomplcache#get_context()), - \ } - - let source = extend(copy(default), a:source) - - " Overwritten by user custom. - let custom = neocomplcache#variables#get_custom().sources - let source = extend(source, get(custom, source.name, - \ get(custom, '_', {}))) - - let source.loaded = 0 - " Source kind convertion. - if source.kind ==# 'plugin' || - \ (!has_key(source, 'gather_candidates') && - \ !has_key(source, 'get_complete_words')) - let source.kind = 'keyword' - elseif source.kind ==# 'ftplugin' || source.kind ==# 'complfunc' - " For compatibility. - let source.kind = 'manual' - else - let source.kind = 'manual' - endif - - if !has_key(source, 'rank') - " Set default rank. - let source.rank = (source.kind ==# 'keyword') ? 5 : - \ empty(source.filetypes) ? 10 : 100 - endif - - if !has_key(source, 'min_pattern_length') - " Set min_pattern_length. - let source.min_pattern_length = (source.kind ==# 'keyword') ? - \ g:neocomplcache_auto_completion_start_length : 0 - endif - - let source.neocomplcache__context.source_name = source.name - - " Note: This routine is for compatibility of old sources implementation. - " Initialize sources. - if empty(source.filetypes) && has_key(source, 'initialize') - try - call source.initialize() - catch - call neocomplcache#print_error(v:throwpoint) - call neocomplcache#print_error(v:exception) - call neocomplcache#print_error( - \ 'Error occured in source''s initialize()!') - call neocomplcache#print_error( - \ 'Source name is ' . source.name) - endtry - - let source.loaded = 1 - endif - - return source -endfunction"}}} - -function! neocomplcache#init#_filters(names) "{{{ - let _ = [] - let filters = neocomplcache#variables#get_filters() - - for name in a:names - if !has_key(filters, name) - " Search autoload. - for filter_name in map(split(globpath(&runtimepath, - \ 'autoload/neocomplcache/filters/'. - \ substitute(name, - \'^\%(matcher\|sorter\|converter\)_[^/_-]\+\zs[/_-].*$', '', '') - \ .'*.vim'), '\n'), "fnamemodify(v:val, ':t:r')") - let filter = neocomplcache#filters#{filter_name}#define() - if empty(filter) - " Ignore. - continue - endif - - call neocomplcache#define_filter(filter) - endfor - - if !has_key(filters, name) - " Not found. - call neocomplcache#print_error( - \ printf('filter name : %s is not found.', string(name))) - continue - endif - endif - - if has_key(filters, name) - call add(_, filters[name]) - endif - endfor - - return _ -endfunction"}}} - -function! neocomplcache#init#_filter(filter) "{{{ - let default = { - \ } - - let filter = extend(default, a:filter) - if !has_key(filter, 'kind') - let filter.kind = - \ (filter.name =~# '^matcher_') ? 'matcher' : - \ (filter.name =~# '^sorter_') ? 'sorter' : 'converter' - endif - - return filter -endfunction"}}} - -function! s:set_default_custom() "{{{ - let custom = neocomplcache#variables#get_custom().sources - - " Initialize completion length. - for [source_name, length] in items( - \ g:neocomplcache_source_completion_length) - if !has_key(custom, source_name) - let custom[source_name] = {} - endif - let custom[source_name].min_pattern_length = length - endfor - - " Initialize rank. - for [source_name, rank] in items( - \ g:neocomplcache_source_rank) - if !has_key(custom, source_name) - let custom[source_name] = {} - endif - let custom[source_name].rank = rank - endfor -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/mappings.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/mappings.vim deleted file mode 100644 index 4e06b1b..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/mappings.vim +++ /dev/null @@ -1,188 +0,0 @@ -"============================================================================= -" FILE: mappings.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 19 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! neocomplcache#mappings#define_default_mappings() "{{{ - inoremap (neocomplcache_start_unite_complete) - \ unite#sources#neocomplcache#start_complete() - inoremap (neocomplcache_start_unite_quick_match) - \ unite#sources#neocomplcache#start_quick_match() - inoremap (neocomplcache_start_auto_complete) - \ =neocomplcache#mappings#popup_post() - inoremap (neocomplcache_start_auto_complete_no_select) - \ - " \ - inoremap (neocomplcache_start_omni_complete) - \ -endfunction"}}} - -function! neocomplcache#mappings#smart_close_popup() "{{{ - return g:neocomplcache_enable_auto_select ? - \ neocomplcache#mappings#cancel_popup() : - \ neocomplcache#mappings#close_popup() -endfunction -"}}} -function! neocomplcache#mappings#close_popup() "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - let neocomplcache.complete_str = '' - let neocomplcache.skip_next_complete = 2 - let neocomplcache.candidates = [] - - return pumvisible() ? "\" : '' -endfunction -"}}} -function! neocomplcache#mappings#cancel_popup() "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - let neocomplcache.skip_next_complete = 1 - call neocomplcache#helper#clear_result() - - return pumvisible() ? "\" : '' -endfunction -"}}} - -function! neocomplcache#mappings#popup_post() "{{{ - return !pumvisible() ? "" : - \ g:neocomplcache_enable_auto_select ? "\\" : - \ "\" -endfunction"}}} - -function! neocomplcache#mappings#undo_completion() "{{{ - if !exists(':NeoComplCacheDisable') - return '' - endif - - let neocomplcache = neocomplcache#get_current_neocomplcache() - - " Get cursor word. - let [complete_pos, complete_str] = - \ neocomplcache#match_word(neocomplcache#get_cur_text(1)) - let old_keyword_str = neocomplcache.complete_str - let neocomplcache.complete_str = complete_str - - return (!pumvisible() ? '' : - \ complete_str ==# old_keyword_str ? "\" : "\") - \. repeat("\", len(complete_str)) . old_keyword_str -endfunction"}}} - -function! neocomplcache#mappings#complete_common_string() "{{{ - if !exists(':NeoComplCacheDisable') - return '' - endif - - " Save options. - let ignorecase_save = &ignorecase - - " Get cursor word. - let [complete_pos, complete_str] = - \ neocomplcache#match_word(neocomplcache#get_cur_text(1)) - - if neocomplcache#is_text_mode() - let &ignorecase = 1 - elseif g:neocomplcache_enable_smart_case && complete_str =~ '\u' - let &ignorecase = 0 - else - let &ignorecase = g:neocomplcache_enable_ignore_case - endif - - let is_fuzzy = g:neocomplcache_enable_fuzzy_completion - - try - let g:neocomplcache_enable_fuzzy_completion = 0 - let neocomplcache = neocomplcache#get_current_neocomplcache() - let candidates = neocomplcache#keyword_filter( - \ copy(neocomplcache.candidates), complete_str) - finally - let g:neocomplcache_enable_fuzzy_completion = is_fuzzy - endtry - - if empty(candidates) - let &ignorecase = ignorecase_save - - return '' - endif - - let common_str = candidates[0].word - for keyword in candidates[1:] - while !neocomplcache#head_match(keyword.word, common_str) - let common_str = common_str[: -2] - endwhile - endfor - if &ignorecase - let common_str = tolower(common_str) - endif - - let &ignorecase = ignorecase_save - - if common_str == '' - return '' - endif - - return (pumvisible() ? "\" : '') - \ . repeat("\", len(complete_str)) . common_str -endfunction"}}} - -" Manual complete wrapper. -function! neocomplcache#mappings#start_manual_complete(...) "{{{ - if !neocomplcache#is_enabled() - return '' - endif - - " Set context filetype. - call neocomplcache#context_filetype#set() - - let neocomplcache = neocomplcache#get_current_neocomplcache() - - let sources = get(a:000, 0, - \ keys(neocomplcache#available_sources())) - let neocomplcache.manual_sources = neocomplcache#helper#get_sources_list( - \ neocomplcache#util#convert2list(sources)) - - " Set function. - let &l:completefunc = 'neocomplcache#complete#sources_manual_complete' - - " Start complete. - return "\\\" -endfunction"}}} - -function! neocomplcache#mappings#start_manual_complete_list(complete_pos, complete_str, candidates) "{{{ - let neocomplcache = neocomplcache#get_current_neocomplcache() - let [neocomplcache.complete_pos, - \ neocomplcache.complete_str, neocomplcache.candidates] = - \ [a:complete_pos, a:complete_str, a:candidates] - - " Set function. - let &l:completefunc = 'neocomplcache#complete#auto_complete' - - " Start complete. - return "\\\" -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/buffer_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/buffer_complete.vim deleted file mode 100644 index f6791d8..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/buffer_complete.vim +++ /dev/null @@ -1,435 +0,0 @@ -"============================================================================= -" FILE: buffer_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 27 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -" Important variables. -if !exists('s:buffer_sources') - let s:buffer_sources = {} - let s:async_dictionary_list = {} -endif - -let s:source = { - \ 'name' : 'buffer_complete', - \ 'kind' : 'manual', - \ 'mark' : '[B]', - \ 'rank' : 5, - \ 'min_pattern_length' : - \ g:neocomplcache_auto_completion_start_length, - \ 'hooks' : {}, - \} - -function! s:source.hooks.on_init(context) "{{{ - let s:buffer_sources = {} - - augroup neocomplcache "{{{ - " Caching events - autocmd BufEnter,BufRead,BufWinEnter * - \ call s:check_source() - autocmd CursorHold,CursorHoldI * - \ call s:check_cache() - autocmd BufWritePost * - \ call s:check_recache() - autocmd InsertEnter,InsertLeave * - \ call neocomplcache#sources#buffer_complete#caching_current_line() - augroup END"}}} - - " Create cache directory. - if !isdirectory(neocomplcache#get_temporary_directory() . '/buffer_cache') - call mkdir(neocomplcache#get_temporary_directory() . '/buffer_cache', 'p') - endif - - " Initialize script variables. "{{{ - let s:buffer_sources = {} - let s:cache_line_count = 70 - let s:rank_cache_count = 1 - let s:disable_caching_list = {} - let s:async_dictionary_list = {} - "}}} - - call s:check_source() -endfunction -"}}} - -function! s:source.hooks.on_final(context) "{{{ - delcommand NeoComplCacheCachingBuffer - delcommand NeoComplCachePrintSource - delcommand NeoComplCacheOutputKeyword - delcommand NeoComplCacheDisableCaching - delcommand NeoComplCacheEnableCaching - - let s:buffer_sources = {} -endfunction"}}} - -function! s:source.gather_candidates(context) "{{{ - call s:check_source() - - let keyword_list = [] - for [key, source] in s:get_sources_list() - call neocomplcache#cache#check_cache_list('buffer_cache', - \ source.path, s:async_dictionary_list, source.keyword_cache, 1) - - let keyword_list += neocomplcache#dictionary_filter( - \ source.keyword_cache, a:context.complete_str) - if key == bufnr('%') - let source.accessed_time = localtime() - endif - endfor - - return keyword_list -endfunction"}}} - -function! neocomplcache#sources#buffer_complete#define() "{{{ - return s:source -endfunction"}}} - -function! neocomplcache#sources#buffer_complete#get_frequencies() "{{{ - " Current line caching. - return get(get(s:buffer_sources, bufnr('%'), {}), 'frequencies', {}) -endfunction"}}} -function! neocomplcache#sources#buffer_complete#caching_current_line() "{{{ - " Current line caching. - return s:caching_current_buffer( - \ max([1, line('.') - 10]), min([line('.') + 10, line('$')])) -endfunction"}}} -function! neocomplcache#sources#buffer_complete#caching_current_block() "{{{ - " Current line caching. - return s:caching_current_buffer( - \ max([1, line('.') - 500]), min([line('.') + 500, line('$')])) -endfunction"}}} -function! s:caching_current_buffer(start, end) "{{{ - " Current line caching. - - if !s:exists_current_source() - call s:word_caching(bufnr('%')) - endif - - let source = s:buffer_sources[bufnr('%')] - let keyword_pattern = source.keyword_pattern - let keyword_pattern2 = '^\%('.keyword_pattern.'\m\)' - let keywords = source.keyword_cache - - let completion_length = 2 - let line = join(getline(a:start, a:end)) - let match = match(line, keyword_pattern) - while match >= 0 "{{{ - let match_str = matchstr(line, keyword_pattern2, match) - - " Ignore too short keyword. - if len(match_str) >= g:neocomplcache_min_keyword_length "{{{ - " Check dup. - let key = tolower(match_str[: completion_length-1]) - if !has_key(keywords, key) - let keywords[key] = {} - endif - if !has_key(keywords[key], match_str) - " Append list. - let keywords[key][match_str] = match_str - let source.frequencies[match_str] = 30 - endif - endif"}}} - - " Next match. - let match = match(line, keyword_pattern, match + len(match_str)) - endwhile"}}} -endfunction"}}} - -function! s:get_sources_list() "{{{ - let sources_list = [] - - let filetypes_dict = {} - for filetype in neocomplcache#get_source_filetypes( - \ neocomplcache#get_context_filetype()) - let filetypes_dict[filetype] = 1 - endfor - - for [key, source] in items(s:buffer_sources) - if has_key(filetypes_dict, source.filetype) - \ || has_key(filetypes_dict, '_') - \ || bufnr('%') == key - \ || (source.name ==# '[Command Line]' && bufnr('#') == key) - call add(sources_list, [key, source]) - endif - endfor - - return sources_list -endfunction"}}} - -function! s:initialize_source(srcname) "{{{ - let path = fnamemodify(bufname(a:srcname), ':p') - let filename = fnamemodify(path, ':t') - if filename == '' - let filename = '[No Name]' - let path .= '/[No Name]' - endif - - let ft = getbufvar(a:srcname, '&filetype') - if ft == '' - let ft = 'nothing' - endif - - let buflines = getbufline(a:srcname, 1, '$') - let keyword_pattern = neocomplcache#get_keyword_pattern(ft) - - let s:buffer_sources[a:srcname] = { - \ 'keyword_cache' : {}, - \ 'frequencies' : {}, - \ 'name' : filename, 'filetype' : ft, - \ 'keyword_pattern' : keyword_pattern, - \ 'end_line' : len(buflines), - \ 'accessed_time' : 0, - \ 'cached_time' : 0, - \ 'path' : path, 'loaded_cache' : 0, - \ 'cache_name' : neocomplcache#cache#encode_name( - \ 'buffer_cache', path), - \} -endfunction"}}} - -function! s:word_caching(srcname) "{{{ - " Initialize source. - call s:initialize_source(a:srcname) - - let source = s:buffer_sources[a:srcname] - - if !filereadable(source.path) - \ || getbufvar(a:srcname, '&buftype') =~ 'nofile' - return - endif - - let source.cache_name = - \ neocomplcache#cache#async_load_from_file( - \ 'buffer_cache', source.path, - \ source.keyword_pattern, 'B') - let source.cached_time = localtime() - let source.end_line = len(getbufline(a:srcname, 1, '$')) - let s:async_dictionary_list[source.path] = [{ - \ 'filename' : source.path, - \ 'cachename' : source.cache_name, - \ }] -endfunction"}}} - -function! s:check_changed_buffer(bufnumber) "{{{ - let source = s:buffer_sources[a:bufnumber] - - let ft = getbufvar(a:bufnumber, '&filetype') - if ft == '' - let ft = 'nothing' - endif - - let filename = fnamemodify(bufname(a:bufnumber), ':t') - if filename == '' - let filename = '[No Name]' - endif - - return s:buffer_sources[a:bufnumber].name != filename - \ || s:buffer_sources[a:bufnumber].filetype != ft -endfunction"}}} - -function! s:check_source() "{{{ - if !s:exists_current_source() - call neocomplcache#sources#buffer_complete#caching_current_block() - return - endif - - for bufnumber in range(1, bufnr('$')) - " Check new buffer. - let bufname = fnamemodify(bufname(bufnumber), ':p') - if (!has_key(s:buffer_sources, bufnumber) - \ || s:check_changed_buffer(bufnumber)) - \ && !has_key(s:disable_caching_list, bufnumber) - \ && (!neocomplcache#is_locked(bufnumber) || - \ g:neocomplcache_disable_auto_complete) - \ && !getwinvar(bufwinnr(bufnumber), '&previewwindow') - \ && getfsize(bufname) < - \ g:neocomplcache_caching_limit_file_size - " Caching. - call s:word_caching(bufnumber) - endif - - if has_key(s:buffer_sources, bufnumber) - let source = s:buffer_sources[bufnumber] - call neocomplcache#cache#check_cache_list('buffer_cache', - \ source.path, s:async_dictionary_list, source.keyword_cache, 1) - endif - endfor -endfunction"}}} -function! s:check_cache() "{{{ - let release_accessd_time = - \ localtime() - g:neocomplcache_release_cache_time - - for [key, source] in items(s:buffer_sources) - " Check deleted buffer and access time. - if !bufloaded(str2nr(key)) - \ || (source.accessed_time > 0 && - \ source.accessed_time < release_accessd_time) - " Remove item. - call remove(s:buffer_sources, key) - endif - endfor -endfunction"}}} -function! s:check_recache() "{{{ - if !s:exists_current_source() - return - endif - - let release_accessd_time = - \ localtime() - g:neocomplcache_release_cache_time - - let source = s:buffer_sources[bufnr('%')] - - " Check buffer access time. - if (source.cached_time > 0 && source.cached_time < release_accessd_time) - \ || (neocomplcache#util#has_vimproc() && line('$') != source.end_line) - " Buffer recache. - if g:neocomplcache_enable_debug - echomsg 'Caching buffer: ' . bufname('%') - endif - - call neocomplcache#sources#buffer_complete#caching_current_block() - endif -endfunction"}}} - -function! s:exists_current_source() "{{{ - return has_key(s:buffer_sources, bufnr('%')) -endfunction"}}} - -" Command functions. "{{{ -function! neocomplcache#sources#buffer_complete#caching_buffer(name) "{{{ - if a:name == '' - let number = bufnr('%') - else - let number = bufnr(a:name) - - if number < 0 - let bufnr = bufnr('%') - - " No swap warning. - let save_shm = &shortmess - set shortmess+=A - - " Open new buffer. - execute 'silent! edit' fnameescape(a:name) - - let &shortmess = save_shm - - if bufnr('%') != bufnr - setlocal nobuflisted - execute 'buffer' bufnr - endif - endif - - let number = bufnr(a:name) - endif - - " Word recaching. - call s:word_caching(number) - call s:caching_current_buffer(1, line('$')) -endfunction"}}} -function! neocomplcache#sources#buffer_complete#print_source(name) "{{{ - if a:name == '' - let number = bufnr('%') - else - let number = bufnr(a:name) - - if number < 0 - call neocomplcache#print_error('Invalid buffer name.') - return - endif - endif - - if !has_key(s:buffer_sources, number) - return - endif - - silent put=printf('Print neocomplcache %d source.', number) - for key in keys(s:buffer_sources[number]) - silent put =printf('%s => %s', key, string(s:buffer_sources[number][key])) - endfor -endfunction"}}} -function! neocomplcache#sources#buffer_complete#output_keyword(name) "{{{ - if a:name == '' - let number = bufnr('%') - else - let number = bufnr(a:name) - - if number < 0 - call neocomplcache#print_error('Invalid buffer name.') - return - endif - endif - - if !has_key(s:buffer_sources, number) - return - endif - - " Output buffer. - for keyword in neocomplcache#unpack_dictionary( - \ s:buffer_sources[number].keyword_cache) - silent put=string(keyword) - endfor -endfunction "}}} -function! neocomplcache#sources#buffer_complete#disable_caching(name) "{{{ - if a:name == '' - let number = bufnr('%') - else - let number = bufnr(a:name) - - if number < 0 - call neocomplcache#print_error('Invalid buffer name.') - return - endif - endif - - let s:disable_caching_list[number] = 1 - - if has_key(s:buffer_sources, number) - " Delete source. - call remove(s:buffer_sources, number) - endif -endfunction"}}} -function! neocomplcache#sources#buffer_complete#enable_caching(name) "{{{ - if a:name == '' - let number = bufnr('%') - else - let number = bufnr(a:name) - - if number < 0 - call neocomplcache#print_error('Invalid buffer name.') - return - endif - endif - - if has_key(s:disable_caching_list, number) - call remove(s:disable_caching_list, number) - endif -endfunction"}}} -"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/dictionary_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/dictionary_complete.vim deleted file mode 100644 index 6c542f1..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/dictionary_complete.vim +++ /dev/null @@ -1,172 +0,0 @@ -"============================================================================= -" FILE: dictionary_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 28 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -" Important variables. -if !exists('s:dictionary_list') - let s:dictionary_list = {} - let s:async_dictionary_list = {} -endif - -function! neocomplcache#sources#dictionary_complete#define() "{{{ - return s:source -endfunction"}}} - -let s:source = { - \ 'name' : 'dictionary_complete', - \ 'kind' : 'keyword', - \ 'mark' : '[D]', - \ 'rank' : 4, - \} - -function! s:source.initialize() "{{{ - " Initialize dictionary. "{{{ - if !exists('g:neocomplcache_dictionary_filetype_lists') - let g:neocomplcache_dictionary_filetype_lists = {} - endif - if !has_key(g:neocomplcache_dictionary_filetype_lists, 'default') - let g:neocomplcache_dictionary_filetype_lists['default'] = '' - endif - "}}} - - " Initialize dictionary completion pattern. "{{{ - if !exists('g:neocomplcache_dictionary_patterns') - let g:neocomplcache_dictionary_patterns = {} - endif - "}}} - - " Set caching event. - autocmd neocomplcache FileType * call s:caching() - - " Create cache directory. - if !isdirectory(neocomplcache#get_temporary_directory() . '/dictionary_cache') - call mkdir(neocomplcache#get_temporary_directory() . '/dictionary_cache') - endif - - " Initialize check. - call s:caching() -endfunction"}}} - -function! s:source.finalize() "{{{ - delcommand NeoComplCacheCachingDictionary -endfunction"}}} - -function! s:source.get_keyword_list(complete_str) "{{{ - let list = [] - - let filetype = neocomplcache#is_text_mode() ? - \ 'text' : neocomplcache#get_context_filetype() - if !has_key(s:dictionary_list, filetype) - " Caching. - call s:caching() - endif - - for ft in neocomplcache#get_source_filetypes(filetype) - call neocomplcache#cache#check_cache('dictionary_cache', ft, - \ s:async_dictionary_list, s:dictionary_list, 1) - - for dict in neocomplcache#get_sources_list(s:dictionary_list, ft) - let list += neocomplcache#dictionary_filter(dict, a:complete_str) - endfor - endfor - - return list -endfunction"}}} - -function! s:caching() "{{{ - if !bufloaded(bufnr('%')) - return - endif - - let key = neocomplcache#is_text_mode() ? - \ 'text' : neocomplcache#get_context_filetype() - for filetype in neocomplcache#get_source_filetypes(key) - if !has_key(s:dictionary_list, filetype) - \ && !has_key(s:async_dictionary_list, filetype) - call neocomplcache#sources#dictionary_complete#recaching(filetype) - endif - endfor -endfunction"}}} - -function! s:caching_dictionary(filetype) - let filetype = a:filetype - if filetype == '' - let filetype = neocomplcache#get_context_filetype(1) - endif - - if has_key(s:async_dictionary_list, filetype) - \ && filereadable(s:async_dictionary_list[filetype].cache_name) - " Delete old cache. - call delete(s:async_dictionary_list[filetype].cache_name) - endif - - call neocomplcache#sources#dictionary_complete#recaching(filetype) -endfunction -function! neocomplcache#sources#dictionary_complete#recaching(filetype) "{{{ - if !exists('g:neocomplcache_dictionary_filetype_lists') - call neocomplcache#initialize() - endif - - let filetype = a:filetype - if filetype == '' - let filetype = neocomplcache#get_context_filetype(1) - endif - - " Caching. - let dictionaries = get( - \ g:neocomplcache_dictionary_filetype_lists, filetype, '') - - if dictionaries == '' - if filetype != &filetype && - \ &l:dictionary != '' && &l:dictionary !=# &g:dictionary - let dictionaries .= &l:dictionary - endif - endif - - let s:async_dictionary_list[filetype] = [] - - let pattern = get(g:neocomplcache_dictionary_patterns, filetype, - \ neocomplcache#get_keyword_pattern(filetype)) - for dictionary in split(dictionaries, ',') - let dictionary = neocomplcache#util#substitute_path_separator( - \ fnamemodify(dictionary, ':p')) - if filereadable(dictionary) - call neocomplcache#print_debug('Caching dictionary: ' . dictionary) - call add(s:async_dictionary_list[filetype], { - \ 'filename' : dictionary, - \ 'cachename' : neocomplcache#cache#async_load_from_file( - \ 'dictionary_cache', dictionary, pattern, 'D') - \ }) - endif - endfor -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_complete.vim deleted file mode 100644 index 98a265d..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_complete.vim +++ /dev/null @@ -1,202 +0,0 @@ -"============================================================================= -" FILE: filename_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 20 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:source = { - \ 'name' : 'filename_complete', - \ 'kind' : 'manual', - \ 'mark' : '[F]', - \ 'rank' : 3, - \ 'min_pattern_length' : - \ g:neocomplcache_auto_completion_start_length, - \} - -function! s:source.initialize() "{{{ -endfunction"}}} -function! s:source.finalize() "{{{ -endfunction"}}} - -function! s:source.get_keyword_pos(cur_text) "{{{ - let filetype = neocomplcache#get_context_filetype() - if filetype ==# 'vimshell' || filetype ==# 'unite' || filetype ==# 'int-ssh' - return -1 - endif - - " Filename pattern. - let pattern = neocomplcache#get_keyword_pattern_end('filename') - let [complete_pos, complete_str] = - \ neocomplcache#match_word(a:cur_text, pattern) - if complete_str =~ '//' || - \ (neocomplcache#is_auto_complete() && - \ (complete_str !~ '/' || - \ complete_str =~# - \ '\\[^ ;*?[]"={}'']\|\.\.\+$\|/c\%[ygdrive/]$')) - " Not filename pattern. - return -1 - endif - - if neocomplcache#is_sources_complete() && complete_pos < 0 - let complete_pos = len(a:cur_text) - endif - - return complete_pos -endfunction"}}} - -function! s:source.get_complete_words(complete_pos, complete_str) "{{{ - return s:get_glob_files(a:complete_str, '') -endfunction"}}} - -let s:cached_files = {} - -function! s:get_glob_files(complete_str, path) "{{{ - let path = ',,' . substitute(a:path, '\.\%(,\|$\)\|,,', '', 'g') - - let complete_str = neocomplcache#util#substitute_path_separator( - \ substitute(a:complete_str, '\\\(.\)', '\1', 'g')) - - let glob = (complete_str !~ '\*$')? - \ complete_str . '*' : complete_str - - if a:path == '' && complete_str !~ '/' - if !has_key(s:cached_files, getcwd()) - call s:caching_current_files() - endif - - let files = copy(s:cached_files[getcwd()]) - else - let ftype = getftype(glob) - if ftype != '' && ftype !=# 'dir' - " Note: If glob() device files, Vim may freeze! - return [] - endif - - if a:path == '' - let files = neocomplcache#util#glob(glob) - else - try - let globs = globpath(path, glob) - catch - return [] - endtry - let files = split(substitute(globs, '\\', '/', 'g'), '\n') - endif - endif - - let files = neocomplcache#keyword_filter(map( - \ files, '{ - \ "word" : fnamemodify(v:val, ":t"), - \ "orig" : v:val, - \ }'), - \ fnamemodify(complete_str, ':t')) - - if neocomplcache#is_auto_complete() - \ && len(files) > g:neocomplcache_max_list - let files = files[: g:neocomplcache_max_list - 1] - endif - - let files = map(files, '{ - \ "word" : substitute(v:val.orig, "//", "/", "g"), - \ }') - - if a:complete_str =~ '^\$\h\w*' - let env = matchstr(a:complete_str, '^\$\h\w*') - let env_ev = eval(env) - if neocomplcache#is_windows() - let env_ev = substitute(env_ev, '\\', '/', 'g') - endif - let len_env = len(env_ev) - else - let len_env = 0 - endif - - let home_pattern = '^'. - \ neocomplcache#util#substitute_path_separator( - \ expand('~')).'/' - let exts = escape(substitute($PATHEXT, ';', '\\|', 'g'), '.') - - let dir_list = [] - let file_list = [] - for dict in files - call add(isdirectory(dict.word) ? - \ dir_list : file_list, dict) - - let dict.orig = dict.word - - if len_env != 0 && dict.word[: len_env-1] == env_ev - let dict.word = env . dict.word[len_env :] - endif - - let abbr = dict.word - if isdirectory(dict.word) && dict.word !~ '/$' - let abbr .= '/' - if g:neocomplcache_enable_auto_delimiter - let dict.word .= '/' - endif - elseif neocomplcache#is_windows() - if '.'.fnamemodify(dict.word, ':e') =~ exts - let abbr .= '*' - endif - elseif executable(dict.word) - let abbr .= '*' - endif - let dict.abbr = abbr - - if a:complete_str =~ '^\~/' - let dict.word = substitute(dict.word, home_pattern, '\~/', '') - let dict.abbr = substitute(dict.abbr, home_pattern, '\~/', '') - endif - - " Escape word. - let dict.word = escape(dict.word, ' ;*?[]"={}''') - endfor - - return dir_list + file_list -endfunction"}}} -function! s:caching_current_files() "{{{ - let s:cached_files[getcwd()] = neocomplcache#util#glob('*') - if !exists('vimproc#readdir') - let s:cached_files[getcwd()] += neocomplcache#util#glob('.*') - endif -endfunction"}}} - -function! neocomplcache#sources#filename_complete#define() "{{{ - return s:source -endfunction"}}} - -function! neocomplcache#sources#filename_complete#get_complete_words(complete_str, path) "{{{ - if !neocomplcache#is_enabled() - return [] - endif - - return s:get_glob_files(a:complete_str, a:path) -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_include.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_include.vim deleted file mode 100644 index 1835c8b..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/filename_include.vim +++ /dev/null @@ -1,238 +0,0 @@ -"============================================================================= -" FILE: filename_include.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 29 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -" Global options definition. "{{{ -if !exists('g:neocomplcache_include_patterns') - let g:neocomplcache_include_patterns = {} -endif -if !exists('g:neocomplcache_include_exprs') - let g:neocomplcache_include_exprs = {} -endif -if !exists('g:neocomplcache_include_paths') - let g:neocomplcache_include_paths = {} -endif -if !exists('g:neocomplcache_include_suffixes') - let g:neocomplcache_include_suffixes = {} -endif -"}}} - -let s:source = { - \ 'name' : 'filename_include', - \ 'kind' : 'manual', - \ 'mark' : '[FI]', - \ 'rank' : 10, - \ 'min_pattern_length' : - \ g:neocomplcache_auto_completion_start_length, - \} - -function! s:source.initialize() "{{{ - " Initialize. - - " Initialize filename include expr. "{{{ - let g:neocomplcache_filename_include_exprs = - \ get(g:, 'neocomplcache_filename_include_exprs', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_filename_include_exprs', - \ 'perl', - \ 'fnamemodify(substitute(v:fname, "/", "::", "g"), ":r")') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_filename_include_exprs', - \ 'ruby,python,java,d', - \ 'fnamemodify(substitute(v:fname, "/", ".", "g"), ":r")') - "}}} - - " Initialize filename include extensions. "{{{ - let g:neocomplcache_filename_include_exts = - \ get(g:, 'neocomplcache_filename_include_exts', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_filename_include_exts', - \ 'c', ['h']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_filename_include_exts', - \ 'cpp', ['', 'h', 'hpp', 'hxx']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_filename_include_exts', - \ 'perl', ['pm']) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_filename_include_exts', - \ 'java', ['java']) - "}}} -endfunction"}}} -function! s:source.finalize() "{{{ -endfunction"}}} - -function! s:source.get_keyword_pos(cur_text) "{{{ - let filetype = neocomplcache#get_context_filetype() - - " Not Filename pattern. - if exists('g:neocomplcache_include_patterns') - let pattern = get(g:neocomplcache_include_patterns, filetype, - \ &l:include) - else - let pattern = '' - endif - if neocomplcache#is_auto_complete() - \ && (pattern == '' || a:cur_text !~ pattern) - \ && a:cur_text =~ '\*$\|\.\.\+$\|/c\%[ygdrive/]$' - " Skip filename completion. - return -1 - endif - - " Check include pattern. - let pattern = get(g:neocomplcache_include_patterns, filetype, - \ &l:include) - if pattern == '' || a:cur_text !~ pattern - return -1 - endif - - let match_end = matchend(a:cur_text, pattern) - let complete_str = matchstr(a:cur_text[match_end :], '\f\+') - - let expr = get(g:neocomplcache_include_exprs, filetype, - \ &l:includeexpr) - if expr != '' - let cur_text = - \ substitute(eval(substitute(expr, - \ 'v:fname', string(complete_str), 'g')), - \ '\.\w*$', '', '') - endif - - let complete_pos = len(a:cur_text) - len(complete_str) - if neocomplcache#is_sources_complete() && complete_pos < 0 - let complete_pos = len(a:cur_text) - endif - - return complete_pos -endfunction"}}} - -function! s:source.get_complete_words(complete_pos, complete_str) "{{{ - return s:get_include_files(a:complete_str) -endfunction"}}} - -function! s:get_include_files(complete_str) "{{{ - let filetype = neocomplcache#get_context_filetype() - - let path = neocomplcache#util#substitute_path_separator( - \ get(g:neocomplcache_include_paths, filetype, - \ &l:path)) - let pattern = get(g:neocomplcache_include_patterns, filetype, - \ &l:include) - let expr = get(g:neocomplcache_include_exprs, filetype, - \ &l:includeexpr) - let reverse_expr = get(g:neocomplcache_filename_include_exprs, filetype, - \ '') - let exts = get(g:neocomplcache_filename_include_exts, filetype, - \ []) - - let line = neocomplcache#get_cur_text() - if line =~ '^\s*\' && &filetype =~# 'ruby' - " For require_relative. - let path = '.' - endif - - let match_end = matchend(line, pattern) - let complete_str = matchstr(line[match_end :], '\f\+') - if expr != '' - let complete_str = - \ substitute(eval(substitute(expr, - \ 'v:fname', string(complete_str), 'g')), '\.\w*$', '', '') - endif - - " Path search. - let glob = (complete_str !~ '\*$')? - \ complete_str . '*' : complete_str - let cwd = getcwd() - let bufdirectory = neocomplcache#util#substitute_path_separator( - \ fnamemodify(expand('%'), ':p:h')) - let dir_list = [] - let file_list = s:get_default_include_files(filetype) - for subpath in split(path, '[,;]') - let dir = (subpath == '.') ? bufdirectory : subpath - if !isdirectory(dir) - continue - endif - - execute 'lcd' fnameescape(dir) - - for word in split( - \ neocomplcache#util#substitute_path_separator( - \ glob(glob)), '\n') - let dict = { 'word' : word } - - call add(isdirectory(word) ? dir_list : file_list, dict) - - let abbr = dict.word - if isdirectory(word) - let abbr .= '/' - if g:neocomplcache_enable_auto_delimiter - let dict.word .= '/' - endif - elseif !empty(exts) && - \ index(exts, fnamemodify(dict.word, ':e')) < 0 - " Skip. - continue - endif - let dict.abbr = abbr - - if reverse_expr != '' - " Convert filename. - let dict.word = eval(substitute(reverse_expr, - \ 'v:fname', string(dict.word), 'g')) - let dict.abbr = eval(substitute(reverse_expr, - \ 'v:fname', string(dict.abbr), 'g')) - else - " Escape word. - let dict.word = escape(dict.word, ' ;*?[]"={}''') - endif - endfor - endfor - execute 'lcd' fnameescape(cwd) - - return neocomplcache#keyword_filter(dir_list, a:complete_str) - \ + neocomplcache#keyword_filter(file_list, a:complete_str) -endfunction"}}} - -function! s:get_default_include_files(filetype) "{{{ - let files = [] - - if a:filetype ==# 'python' || a:filetype ==# 'python3' - let files = ['sys'] - endif - - return map(files, "{ 'word' : v:val }") -endfunction"}}} - -function! neocomplcache#sources#filename_include#define() "{{{ - return s:source -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/include_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/include_complete.vim deleted file mode 100644 index b94548a..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/include_complete.vim +++ /dev/null @@ -1,490 +0,0 @@ -"============================================================================= -" FILE: include_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:source = { - \ 'name' : 'include_complete', - \ 'kind' : 'keyword', - \ 'rank' : 8, - \} - -function! s:source.initialize() "{{{ - call s:initialize_variables() - - if neocomplcache#has_vimproc() - augroup neocomplcache - " Caching events - autocmd BufWritePost * call s:check_buffer('', 0) - autocmd CursorHold * call s:check_cache() - augroup END - endif - - call neocomplcache#util#set_default( - \ 'g:neocomplcache_include_max_processes', 20) - - " Create cache directory. - if !isdirectory(neocomplcache#get_temporary_directory() . '/include_cache') - call mkdir(neocomplcache#get_temporary_directory() - \ . '/include_cache', 'p') - endif - - if neocomplcache#exists_echodoc() - call echodoc#register('include_complete', s:doc_dict) - endif -endfunction"}}} - -function! s:source.finalize() "{{{ - delcommand NeoComplCacheCachingInclude - - if neocomplcache#exists_echodoc() - call echodoc#unregister('include_complete') - endif -endfunction"}}} - -function! s:source.get_keyword_list(complete_str) "{{{ - if neocomplcache#within_comment() - return [] - endif - - if !has_key(s:include_info, bufnr('%')) - " Auto caching. - call s:check_buffer('', 0) - endif - - let keyword_list = [] - - " Check caching. - for include in s:include_info[bufnr('%')].include_files - call neocomplcache#cache#check_cache( - \ 'include_cache', include, s:async_include_cache, s:include_cache) - if has_key(s:include_cache, include) - let s:cache_accessed_time[include] = localtime() - let keyword_list += neocomplcache#dictionary_filter( - \ s:include_cache[include], a:complete_str) - endif - endfor - - return neocomplcache#keyword_filter( - \ neocomplcache#dup_filter(keyword_list), a:complete_str) -endfunction"}}} - -function! neocomplcache#sources#include_complete#define() "{{{ - return s:source -endfunction"}}} - -function! neocomplcache#sources#include_complete#get_include_files(bufnumber) "{{{ - if has_key(s:include_info, a:bufnumber) - return copy(s:include_info[a:bufnumber].include_files) - else - return s:get_buffer_include_files(a:bufnumber) - endif -endfunction"}}} - -function! neocomplcache#sources#include_complete#get_include_tags(bufnumber) "{{{ - return filter(map( - \ neocomplcache#sources#include_complete#get_include_files(a:bufnumber), - \ "neocomplcache#cache#encode_name('tags_output', v:val)"), - \ 'filereadable(v:val)') -endfunction"}}} - -" For Debug. -function! neocomplcache#sources#include_complete#get_current_include_files() "{{{ - return s:get_buffer_include_files(bufnr('%')) -endfunction"}}} - -" For echodoc. "{{{ -let s:doc_dict = { - \ 'name' : 'include_complete', - \ 'rank' : 5, - \ 'filetypes' : {}, - \ } -function! s:doc_dict.search(cur_text) "{{{ - if &filetype ==# 'vim' || !has_key(s:include_info, bufnr('%')) - return [] - endif - - let completion_length = 2 - - " Collect words. - let words = [] - let i = 0 - while i >= 0 - let word = matchstr(a:cur_text, '\k\+', i) - if len(word) >= completion_length - call add(words, word) - endif - - let i = matchend(a:cur_text, '\k\+', i) - endwhile - - for word in reverse(words) - let key = tolower(word[: completion_length-1]) - - for include in filter(copy(s:include_info[bufnr('%')].include_files), - \ 'has_key(s:include_cache, v:val) && has_key(s:include_cache[v:val], key)') - for matched in filter(values(s:include_cache[include][key]), - \ 'v:val.word ==# word && has_key(v:val, "kind") && v:val.kind != ""') - let ret = [] - - let match = match(matched.abbr, neocomplcache#escape_match(word)) - if match > 0 - call add(ret, { 'text' : matched.abbr[ : match-1] }) - endif - - call add(ret, { 'text' : word, 'highlight' : 'Identifier' }) - call add(ret, { 'text' : matched.abbr[match+len(word) :] }) - - if match > 0 || len(ret[-1].text) > 0 - return ret - endif - endfor - endfor - endfor - - return [] -endfunction"}}} -"}}} - -function! s:check_buffer(bufnumber, is_force) "{{{ - if !neocomplcache#is_enabled_source('include_complete') - return - endif - - let bufnumber = (a:bufnumber == '') ? bufnr('%') : a:bufnumber - let filename = fnamemodify(bufname(bufnumber), ':p') - - if !has_key(s:include_info, bufnumber) - " Initialize. - let s:include_info[bufnumber] = { - \ 'include_files' : [], 'lines' : [], - \ 'async_files' : {}, - \ } - endif - - if !executable(g:neocomplcache_ctags_program) - \ || (!a:is_force && !neocomplcache#has_vimproc()) - return - endif - - let include_info = s:include_info[bufnumber] - - if a:is_force || include_info.lines !=# getbufline(bufnumber, 1, 100) - let include_info.lines = getbufline(bufnumber, 1, 100) - - " Check include files contained bufname. - let include_files = s:get_buffer_include_files(bufnumber) - - " Check include files from function. - let filetype = getbufvar(a:bufnumber, '&filetype') - let function = get(g:neocomplcache_include_functions, filetype, '') - if function != '' && getbufvar(bufnumber, '&buftype') !~ 'nofile' - let path = get(g:neocomplcache_include_paths, filetype, - \ getbufvar(a:bufnumber, '&path')) - let include_files += call(function, - \ [getbufline(bufnumber, 1, (a:is_force ? '$' : 1000)), path]) - endif - - if getbufvar(bufnumber, '&buftype') !~ 'nofile' - \ && filereadable(filename) - call add(include_files, filename) - endif - let include_info.include_files = neocomplcache#util#uniq(include_files) - endif - - if g:neocomplcache_include_max_processes <= 0 - return - endif - - let filetype = getbufvar(bufnumber, '&filetype') - if filetype == '' - let filetype = 'nothing' - endif - - for filename in include_info.include_files - if (a:is_force || !has_key(include_info.async_files, filename)) - \ && !has_key(s:include_cache, filename) - if !a:is_force && has_key(s:async_include_cache, filename) - \ && len(s:async_include_cache[filename]) - \ >= g:neocomplcache_include_max_processes - break - endif - - " Caching. - let s:async_include_cache[filename] - \ = [ s:initialize_include(filename, filetype) ] - let include_info.async_files[filename] = 1 - endif - endfor -endfunction"}}} -function! s:get_buffer_include_files(bufnumber) "{{{ - let filetype = getbufvar(a:bufnumber, '&filetype') - if filetype == '' - return [] - endif - - if (filetype ==# 'python' || filetype ==# 'python3') - \ && (executable('python') || executable('python3')) - " Initialize python path pattern. - - let path = '' - if executable('python3') - let path .= ',' . neocomplcache#system('python3 -', - \ 'import sys;sys.stdout.write(",".join(sys.path))') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_include_paths', 'python3', path) - endif - if executable('python') - let path .= ',' . neocomplcache#system('python -', - \ 'import sys;sys.stdout.write(",".join(sys.path))') - endif - let path = join(neocomplcache#util#uniq(filter( - \ split(path, ',', 1), "v:val != ''")), ',') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_include_paths', 'python', path) - elseif filetype ==# 'cpp' && isdirectory('/usr/include/c++') - " Add cpp path. - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_include_paths', 'cpp', - \ getbufvar(a:bufnumber, '&path') . - \ ','.join(split(glob('/usr/include/c++/*'), '\n'), ',')) - endif - - let pattern = get(g:neocomplcache_include_patterns, filetype, - \ getbufvar(a:bufnumber, '&include')) - if pattern == '' - return [] - endif - let path = get(g:neocomplcache_include_paths, filetype, - \ getbufvar(a:bufnumber, '&path')) - let expr = get(g:neocomplcache_include_exprs, filetype, - \ getbufvar(a:bufnumber, '&includeexpr')) - if has_key(g:neocomplcache_include_suffixes, filetype) - let suffixes = &l:suffixesadd - endif - - " Change current directory. - let cwd_save = getcwd() - let buffer_dir = fnamemodify(bufname(a:bufnumber), ':p:h') - if isdirectory(buffer_dir) - execute 'lcd' fnameescape(buffer_dir) - endif - - let include_files = s:get_include_files(0, - \ getbufline(a:bufnumber, 1, 100), filetype, pattern, path, expr) - - if isdirectory(buffer_dir) - execute 'lcd' fnameescape(cwd_save) - endif - - " Restore option. - if has_key(g:neocomplcache_include_suffixes, filetype) - let &l:suffixesadd = suffixes - endif - - return include_files -endfunction"}}} -function! s:get_include_files(nestlevel, lines, filetype, pattern, path, expr) "{{{ - let include_files = [] - for line in a:lines "{{{ - if line =~ a:pattern - let match_end = matchend(line, a:pattern) - if a:expr != '' - let eval = substitute(a:expr, 'v:fname', - \ string(matchstr(line[match_end :], '\f\+')), 'g') - let filename = fnamemodify(findfile(eval(eval), a:path), ':p') - else - let filename = fnamemodify(findfile( - \ matchstr(line[match_end :], '\f\+'), a:path), ':p') - endif - - if filereadable(filename) - call add(include_files, filename) - - if (a:filetype == 'c' || a:filetype == 'cpp') && a:nestlevel < 1 - let include_files += s:get_include_files( - \ a:nestlevel + 1, readfile(filename)[:100], - \ a:filetype, a:pattern, a:path, a:expr) - endif - elseif isdirectory(filename) && a:filetype ==# 'java' - " For Java import with *. - " Ex: import lejos.nxt.* - let include_files += - \ neocomplcache#util#glob(filename . '/*.java') - endif - endif - endfor"}}} - - return include_files -endfunction"}}} - -function! s:check_cache() "{{{ - if neocomplcache#is_disabled_source('include_complete') - return - endif - - let release_accessd_time = localtime() - g:neocomplcache_release_cache_time - - for key in keys(s:include_cache) - if has_key(s:cache_accessed_time, key) - \ && s:cache_accessed_time[key] < release_accessd_time - call remove(s:include_cache, key) - endif - endfor -endfunction"}}} - -function! s:initialize_include(filename, filetype) "{{{ - " Initialize include list from tags. - return { - \ 'filename' : a:filename, - \ 'cachename' : neocomplcache#cache#async_load_from_tags( - \ 'include_cache', a:filename, a:filetype, 'I', 1) - \ } -endfunction"}}} -function! neocomplcache#sources#include_complete#caching_include(bufname) "{{{ - let bufnumber = (a:bufname == '') ? bufnr('%') : bufnr(a:bufname) - if has_key(s:async_include_cache, bufnumber) - \ && filereadable(s:async_include_cache[bufnumber].cache_name) - " Delete old cache. - call delete(s:async_include_cache[bufnumber].cache_name) - endif - - " Initialize. - if has_key(s:include_info, bufnumber) - call remove(s:include_info, bufnumber) - endif - - call s:check_buffer(bufnumber, 1) -endfunction"}}} - -" Analyze include files functions. -function! neocomplcache#sources#include_complete#analyze_vim_include_files(lines, path) "{{{ - let include_files = [] - let dup_check = {} - for line in a:lines - if line =~ '\<\h\w*#' && line !~ '\' - let filename = 'autoload/' . substitute(matchstr(line, '\<\%(\h\w*#\)*\h\w*\ze#'), - \ '#', '/', 'g') . '.vim' - if filename == '' || has_key(dup_check, filename) - continue - endif - let dup_check[filename] = 1 - - let filename = fnamemodify(findfile(filename, &runtimepath), ':p') - if filereadable(filename) - call add(include_files, filename) - endif - endif - endfor - - return include_files -endfunction"}}} -function! neocomplcache#sources#include_complete#analyze_ruby_include_files(lines, path) "{{{ - let include_files = [] - let dup_check = {} - for line in a:lines - if line =~ '\' - let args = split(line, ',') - if len(args) < 2 - continue - endif - let filename = substitute(matchstr(args[1], '["'']\zs\f\+\ze["'']'), - \ '\.', '/', 'g') . '.rb' - if filename == '' || has_key(dup_check, filename) - continue - endif - let dup_check[filename] = 1 - - let filename = fnamemodify(findfile(filename, a:path), ':p') - if filereadable(filename) - call add(include_files, filename) - endif - endif - endfor - - return include_files -endfunction"}}} - -function! s:initialize_variables() "{{{ - let s:include_info = {} - let s:include_cache = {} - let s:cache_accessed_time = {} - let s:async_include_cache = {} - let s:cached_pattern = {} - - " Initialize include pattern. "{{{ - let g:neocomplcache_include_patterns = - \ get(g:, 'neocomplcache_include_patterns', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_include_patterns', - \ 'java,haskell', '^\s*\') - "}}} - " Initialize expr pattern. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_include_exprs', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_include_exprs', - \ 'haskell,cs', - \ "substitute(v:fname, '\\.', '/', 'g')") - "}}} - " Initialize path pattern. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_include_paths', {}) - "}}} - " Initialize include suffixes. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_include_suffixes', {}) - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_include_suffixes', - \ 'haskell', '.hs') - "}}} - " Initialize include functions. "{{{ - call neocomplcache#util#set_default( - \ 'g:neocomplcache_include_functions', {}) - " call neocomplcache#util#set_default_dictionary( - " \ 'g:neocomplcache_include_functions', 'vim', - " \ 'neocomplcache#sources#include_complete#analyze_vim_include_files') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_include_functions', 'ruby', - \ 'neocomplcache#sources#include_complete#analyze_ruby_include_files') - "}}} -endfunction"}}} - -if !exists('s:include_info') - call s:initialize_variables() -endif - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/member_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/member_complete.vim deleted file mode 100644 index 8292b71..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/member_complete.vim +++ /dev/null @@ -1,247 +0,0 @@ -"============================================================================= -" FILE: member_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 01 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -" Important variables. -if !exists('s:member_sources') - let s:member_sources = {} -endif - -let s:source = { - \ 'name' : 'member_complete', - \ 'kind' : 'manual', - \ 'mark' : '[M]', - \ 'rank' : 5, - \ 'min_pattern_length' : 0, - \} - -function! s:source.initialize() "{{{ - augroup neocomplcache "{{{ - " Caching events - autocmd CursorHold * call s:caching_current_buffer(line('.')-10, line('.')+10) - autocmd InsertEnter,InsertLeave * - \ call neocomplcache#sources#member_complete#caching_current_line() - augroup END"}}} - - " Initialize member prefix patterns. "{{{ - if !exists('g:neocomplcache_member_prefix_patterns') - let g:neocomplcache_member_prefix_patterns = {} - endif - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_member_prefix_patterns', - \ 'c,cpp,objc,objcpp', '\.\|->') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_member_prefix_patterns', - \ 'perl,php', '->') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_member_prefix_patterns', - \ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb', '\.') - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_member_prefix_patterns', - \ 'lua', '\.\|:') - "}}} - - " Initialize member patterns. "{{{ - if !exists('g:neocomplcache_member_patterns') - let g:neocomplcache_member_patterns = {} - endif - call neocomplcache#util#set_default_dictionary( - \ 'g:neocomplcache_member_patterns', - \'default', '\h\w*\%(()\|\[\h\w*\]\)\?') - "}}} - - " Initialize script variables. "{{{ - let s:member_sources = {} - "}}} -endfunction -"}}} - -function! s:source.get_keyword_pos(cur_text) "{{{ - " Check member prefix pattern. - let filetype = neocomplcache#get_context_filetype() - if !has_key(g:neocomplcache_member_prefix_patterns, filetype) - \ || g:neocomplcache_member_prefix_patterns[filetype] == '' - return -1 - endif - - let member = s:get_member_pattern(filetype) - let prefix = g:neocomplcache_member_prefix_patterns[filetype] - let complete_pos = matchend(a:cur_text, - \ '\%(' . member . '\%(' . prefix . '\m\)\)\+\ze\w*$') - return complete_pos -endfunction"}}} - -function! s:source.get_complete_words(complete_pos, complete_str) "{{{ - " Check member prefix pattern. - let filetype = neocomplcache#get_context_filetype() - if !has_key(g:neocomplcache_member_prefix_patterns, filetype) - \ || g:neocomplcache_member_prefix_patterns[filetype] == '' - return [] - endif - - let cur_text = neocomplcache#get_cur_text() - let var_name = matchstr(cur_text, - \ '\%(' . s:get_member_pattern(filetype) . '\%(' . - \ g:neocomplcache_member_prefix_patterns[filetype] . '\m\)\)\+\ze\w*$') - if var_name == '' - return [] - endif - - return neocomplcache#keyword_filter( - \ copy(s:get_member_list(cur_text, var_name)), a:complete_str) -endfunction"}}} - -function! neocomplcache#sources#member_complete#define() "{{{ - return s:source -endfunction"}}} - -function! neocomplcache#sources#member_complete#caching_current_line() "{{{ - " Current line caching. - return s:caching_current_buffer(line('.')-1, line('.')+1) -endfunction"}}} -function! neocomplcache#sources#member_complete#caching_current_buffer() "{{{ - " Current line caching. - return s:caching_current_buffer(1, line('$')) -endfunction"}}} -function! s:caching_current_buffer(start, end) "{{{ - " Current line caching. - - if !has_key(s:member_sources, bufnr('%')) - call s:initialize_source(bufnr('%')) - endif - - let filetype = neocomplcache#get_context_filetype(1) - if !has_key(g:neocomplcache_member_prefix_patterns, filetype) - \ || g:neocomplcache_member_prefix_patterns[filetype] == '' - return - endif - - let source = s:member_sources[bufnr('%')] - let keyword_pattern = - \ '\%(' . s:get_member_pattern(filetype) . '\%(' - \ . g:neocomplcache_member_prefix_patterns[filetype] - \ . '\m\)\)\+' . s:get_member_pattern(filetype) - let keyword_pattern2 = '^'.keyword_pattern - let member_pattern = s:get_member_pattern(filetype) . '$' - - " Cache member pattern. - let [line_num, max_lines] = [a:start, a:end] - for line in getline(a:start, a:end) - let match = match(line, keyword_pattern) - - while match >= 0 "{{{ - let match_str = matchstr(line, keyword_pattern2, match) - - " Next match. - let match = matchend(line, keyword_pattern, match + len(match_str)) - - while match_str != '' - let member_name = matchstr(match_str, member_pattern) - if member_name == '' - break - endif - let var_name = match_str[ : -len(member_name)-1] - - if !has_key(source.member_cache, var_name) - let source.member_cache[var_name] = {} - endif - if !has_key(source.member_cache[var_name], member_name) - let source.member_cache[var_name][member_name] = member_name - endif - - let match_str = matchstr(var_name, keyword_pattern2) - endwhile - endwhile"}}} - endfor -endfunction"}}} - -function! s:get_member_list(cur_text, var_name) "{{{ - let keyword_list = [] - for [key, source] in filter(s:get_sources_list(), - \ 'has_key(v:val[1].member_cache, a:var_name)') - let keyword_list += - \ values(source.member_cache[a:var_name]) - endfor - - return keyword_list -endfunction"}}} - -function! s:get_sources_list() "{{{ - let sources_list = [] - - let filetypes_dict = {} - for filetype in neocomplcache#get_source_filetypes( - \ neocomplcache#get_context_filetype()) - let filetypes_dict[filetype] = 1 - endfor - - for [key, source] in items(s:member_sources) - if has_key(filetypes_dict, source.filetype) - \ || has_key(filetypes_dict, '_') - \ || bufnr('%') == key - \ || (bufname('%') ==# '[Command Line]' && bufnr('#') == key) - call add(sources_list, [key, source]) - endif - endfor - - return sources_list -endfunction"}}} - -function! s:initialize_source(srcname) "{{{ - let path = fnamemodify(bufname(a:srcname), ':p') - let filename = fnamemodify(path, ':t') - if filename == '' - let filename = '[No Name]' - let path .= '/[No Name]' - endif - - " Set cache line count. - let buflines = getbufline(a:srcname, 1, '$') - let end_line = len(buflines) - - let ft = getbufvar(a:srcname, '&filetype') - if ft == '' - let ft = 'nothing' - endif - - let s:member_sources[a:srcname] = { - \ 'member_cache' : {}, 'filetype' : ft, - \ 'keyword_pattern' : neocomplcache#get_keyword_pattern(ft), - \} -endfunction"}}} - -function! s:get_member_pattern(filetype) "{{{ - return has_key(g:neocomplcache_member_patterns, a:filetype) ? - \ g:neocomplcache_member_patterns[a:filetype] : - \ g:neocomplcache_member_patterns['default'] -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/omni_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/omni_complete.vim deleted file mode 100644 index bbaa063..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/omni_complete.vim +++ /dev/null @@ -1,303 +0,0 @@ -"============================================================================= -" FILE: omni_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 29 May 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:source = { - \ 'name' : 'omni_complete', - \ 'kind' : 'manual', - \ 'compare_func' : 'neocomplcache#compare_nothing', - \ 'mark' : '[O]', - \ 'rank' : 50, - \} - -let s:List = vital#of('neocomplcache').import('Data.List') - -function! s:source.initialize() "{{{ - " Initialize omni completion pattern. "{{{ - if !exists('g:neocomplcache_omni_patterns') - let g:neocomplcache_omni_patterns = {} - endif - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'html,xhtml,xml,markdown', - \'<[^>]*') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'css,scss,sass', - \'^\s\+\w\+\|\w\+[):;]\?\s\+\w*\|[@!]') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'javascript', - \'[^. \t]\.\%(\h\w*\)\?') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'actionscript', - \'[^. \t][.:]\h\w*') - "call neocomplcache#util#set_default_dictionary( - "\'g:neocomplcache_omni_patterns', - "\'php', - "\'[^. \t]->\h\w*\|\h\w*::') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'java', - \'\%(\h\w*\|)\)\.') - "call neocomplcache#util#set_default_dictionary( - "\'g:neocomplcache_omni_patterns', - "\'perl', - "\'\h\w*->\h\w*\|\h\w*::') - "call neocomplcache#util#set_default_dictionary( - "\'g:neocomplcache_omni_patterns', - "\'c', - "\'[^.[:digit:] *\t]\%(\.\|->\)' - "call neocomplcache#util#set_default_dictionary( - "\'g:neocomplcache_omni_patterns', - "\'cpp', - "\'[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'objc', - \'[^.[:digit:] *\t]\%(\.\|->\)') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'objj', - \'[\[ \.]\w\+$\|:\w*$') - - " External language interface check. - if has('ruby') - " call neocomplcache#util#set_default_dictionary( - "\'g:neocomplcache_omni_patterns', 'ruby', - "\'[^. *\t]\.\h\w*\|\h\w*::') - endif - if has('python/dyn') || has('python3/dyn') - \ || has('python') || has('python3') - call neocomplcache#util#set_default_dictionary( - \'g:neocomplcache_omni_patterns', - \'python', '[^. \t]\.\w*') - endif - "}}} -endfunction"}}} -function! s:source.finalize() "{{{ -endfunction"}}} - -function! s:source.get_keyword_pos(cur_text) "{{{ - let syn_name = neocomplcache#helper#get_syn_name(1) - if syn_name ==# 'Comment' || syn_name ==# 'String' - " Skip omni_complete in string literal. - return -1 - endif - - let filetype = neocomplcache#get_context_filetype() - let s:complete_results = s:set_complete_results_pos( - \ s:get_omni_funcs(filetype), a:cur_text) - - return s:get_complete_pos(s:complete_results) -endfunction"}}} - -function! s:source.get_complete_words(complete_pos, complete_str) "{{{ - return s:get_candidates( - \ s:set_complete_results_words(s:complete_results), - \ a:complete_pos, a:complete_str) -endfunction"}}} - -function! neocomplcache#sources#omni_complete#define() "{{{ - return s:source -endfunction"}}} - -function! s:get_omni_funcs(filetype) "{{{ - let funcs = [] - for ft in insert(split(a:filetype, '\.'), '_') - if has_key(g:neocomplcache_omni_functions, ft) - let omnifuncs = - \ (type(g:neocomplcache_omni_functions[ft]) == type([])) ? - \ g:neocomplcache_omni_functions[ft] : - \ [g:neocomplcache_omni_functions[ft]] - else - let omnifuncs = [&l:omnifunc] - endif - - for omnifunc in omnifuncs - if neocomplcache#check_invalid_omnifunc(omnifunc) - " omnifunc is irregal. - continue - endif - - if get(g:neocomplcache_omni_patterns, omnifunc, '') != '' - let pattern = g:neocomplcache_omni_patterns[omnifunc] - elseif get(g:neocomplcache_omni_patterns, ft, '') != '' - let pattern = g:neocomplcache_omni_patterns[ft] - else - let pattern = '' - endif - - if pattern == '' - continue - endif - - call add(funcs, [omnifunc, pattern]) - endfor - endfor - - return s:List.uniq(funcs) -endfunction"}}} -function! s:get_omni_list(list) "{{{ - let omni_list = [] - - " Convert string list. - for val in deepcopy(a:list) - let dict = (type(val) == type('') ? - \ { 'word' : val } : val) - let dict.menu = '[O]' . get(dict, 'menu', '') - call add(omni_list, dict) - - unlet val - endfor - - return omni_list -endfunction"}}} - -function! s:set_complete_results_pos(funcs, cur_text) "{{{ - " Try omnifunc completion. "{{{ - let complete_results = {} - for [omnifunc, pattern] in a:funcs - if neocomplcache#is_auto_complete() - \ && a:cur_text !~ '\%(' . pattern . '\m\)$' - continue - endif - - " Save pos. - let pos = getpos('.') - - try - let complete_pos = call(omnifunc, [1, '']) - catch - call neocomplcache#print_error( - \ 'Error occured calling omnifunction: ' . omnifunc) - call neocomplcache#print_error(v:throwpoint) - call neocomplcache#print_error(v:exception) - let complete_pos = -1 - finally - if getpos('.') != pos - call setpos('.', pos) - endif - endtry - - if complete_pos < 0 - continue - endif - - let complete_str = a:cur_text[complete_pos :] - - let complete_results[omnifunc] = { - \ 'candidates' : [], - \ 'complete_pos' : complete_pos, - \ 'complete_str' : complete_str, - \ 'omnifunc' : omnifunc, - \} - endfor - "}}} - - return complete_results -endfunction"}}} -function! s:set_complete_results_words(complete_results) "{{{ - " Try source completion. - for [omnifunc, result] in items(a:complete_results) - if neocomplcache#complete_check() - return a:complete_results - endif - - let pos = getpos('.') - - " Note: For rubycomplete problem. - let complete_str = - \ (omnifunc == 'rubycomplete#Complete') ? - \ '' : result.complete_str - - try - let list = call(omnifunc, [0, complete_str]) - catch - call neocomplcache#print_error( - \ 'Error occured calling omnifunction: ' . omnifunc) - call neocomplcache#print_error(v:throwpoint) - call neocomplcache#print_error(v:exception) - let list = [] - finally - if getpos('.') != pos - call setpos('.', pos) - endif - endtry - - if type(list) != type([]) - " Error. - return a:complete_results - endif - - let list = s:get_omni_list(list) - - let result.candidates = list - endfor - - return a:complete_results -endfunction"}}} -function! s:get_complete_pos(complete_results) "{{{ - if empty(a:complete_results) - return -1 - endif - - let complete_pos = col('.') - for result in values(a:complete_results) - if complete_pos > result.complete_pos - let complete_pos = result.complete_pos - endif - endfor - - return complete_pos -endfunction"}}} -function! s:get_candidates(complete_results, complete_pos, complete_str) "{{{ - " Append prefix. - let candidates = [] - let len_words = 0 - for [source_name, result] in items(a:complete_results) - if result.complete_pos > a:complete_pos - let prefix = a:complete_str[: result.complete_pos - \ - a:complete_pos - 1] - - for keyword in result.candidates - let keyword.word = prefix . keyword.word - endfor - endif - - let candidates += result.candidates - endfor - - return candidates -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/syntax_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/syntax_complete.vim deleted file mode 100644 index 157049a..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/syntax_complete.vim +++ /dev/null @@ -1,322 +0,0 @@ -"============================================================================= -" FILE: syntax_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 05 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -" Important variables. -if !exists('s:syntax_list') - let s:syntax_list = {} -endif - -let s:source = { - \ 'name' : 'syntax_complete', - \ 'kind' : 'keyword', - \ 'mark' : '[S]', - \ 'rank' : 4, - \} - -function! s:source.initialize() "{{{ - " Set caching event. - autocmd neocomplcache Syntax * call s:caching() - - " Create cache directory. - if !isdirectory(neocomplcache#get_temporary_directory() . '/syntax_cache') - call mkdir(neocomplcache#get_temporary_directory() . '/syntax_cache') - endif - - " Initialize check. - call s:caching() -endfunction"}}} - -function! s:source.finalize() "{{{ - delcommand NeoComplCacheCachingSyntax -endfunction"}}} - -function! s:source.get_keyword_list(complete_str) "{{{ - let list = [] - - let filetype = neocomplcache#get_context_filetype() - if !has_key(s:syntax_list, filetype) - call s:caching() - endif - - for syntax in neocomplcache#get_sources_list( - \ s:syntax_list, filetype) - let list += neocomplcache#dictionary_filter(syntax, a:complete_str) - endfor - - return list -endfunction"}}} - -function! neocomplcache#sources#syntax_complete#define() "{{{ - return s:source -endfunction"}}} - -function! s:caching() "{{{ - if &filetype == '' || &filetype ==# 'vim' - return - endif - - for filetype in neocomplcache#get_source_filetypes(&filetype) - if !has_key(s:syntax_list, filetype) - " Check old cache. - let cache_name = neocomplcache#cache#encode_name('syntax_cache', &filetype) - let syntax_files = split( - \ globpath(&runtimepath, 'syntax/'.&filetype.'.vim'), '\n') - if getftime(cache_name) < 0 || (!empty(syntax_files) - \ && getftime(cache_name) <= getftime(syntax_files[0])) - if filetype ==# &filetype - " Caching from syn list. - let s:syntax_list[filetype] = s:caching_from_syn(filetype) - endif - else - let s:syntax_list[filetype] = neocomplcache#cache#index_load_from_cache( - \ 'syntax_cache', filetype, 1) - endif - endif - endfor -endfunction"}}} - -function! neocomplcache#sources#syntax_complete#recaching(filetype) "{{{ - if a:filetype == '' - let filetype = &filetype - else - let filetype = a:filetype - endif - - " Caching. - let s:syntax_list[filetype] = s:caching_from_syn(filetype) -endfunction"}}} - -function! s:caching_from_syn(filetype) "{{{ - call neocomplcache#print_caching( - \ 'Caching syntax "' . a:filetype . '"... please wait.') - - " Get current syntax list. - redir => syntax_list - silent! syntax list - redir END - - if syntax_list =~ '^E\d\+' || syntax_list =~ '^No Syntax items' - return [] - endif - - let group_name = '' - let keyword_pattern = neocomplcache#get_keyword_pattern(a:filetype) - - let dup_check = {} - - let filetype_pattern = tolower(a:filetype) - - let keyword_lists = {} - for line in split(syntax_list, '\n') - if line =~ '^\h\w\+' - " Change syntax group name. - let group_name = matchstr(line, '^\S\+') - let line = substitute(line, '^\S\+\s*xxx', '', '') - endif - - if line =~ 'Syntax items' || line =~ '^\s*links to' || - \ line =~ '^\s*nextgroup=' || - \ strridx(tolower(group_name), filetype_pattern) != 0 - " Next line. - continue - endif - - let line = substitute(line, 'contained\|skipwhite\|skipnl\|oneline', '', 'g') - let line = substitute(line, '^\s*nextgroup=.*\ze\s', '', '') - - if line =~ '^\s*match' - let line = s:substitute_candidate(matchstr(line, '/\zs[^/]\+\ze/')) - elseif line =~ '^\s*start=' - let line = - \s:substitute_candidate(matchstr(line, 'start=/\zs[^/]\+\ze/')) . ' ' . - \s:substitute_candidate(matchstr(line, 'end=/zs[^/]\+\ze/')) - endif - - " Add keywords. - let match_num = 0 - let completion_length = 2 - let match_str = matchstr(line, keyword_pattern, match_num) - while match_str != '' - " Ignore too short keyword. - if len(match_str) >= g:neocomplcache_min_syntax_length - \ && !has_key(dup_check, match_str) - \&& match_str =~ '^[[:print:]]\+$' - let key = tolower(match_str[: completion_length-1]) - if !has_key(keyword_lists, key) - let keyword_lists[key] = [] - endif - call add(keyword_lists[key], match_str) - - let dup_check[match_str] = 1 - endif - - let match_num += len(match_str) - - let match_str = matchstr(line, keyword_pattern, match_num) - endwhile - endfor - - " Save syntax cache. - let unpack_lists = neocomplcache#unpack_dictionary(keyword_lists) - if !empty(unpack_lists) - call neocomplcache#cache#save_cache('syntax_cache', &filetype, unpack_lists) - endif - - call neocomplcache#print_caching('') - - return keyword_lists -endfunction"}}} - -function! s:substitute_candidate(candidate) "{{{ - let candidate = a:candidate - - " Collection. - let candidate = substitute(candidate, - \'\\\@{}]\|[$^]\|\\z\?\a\)', ' ', 'g') - - if candidate =~ '\\%\?(' - let candidate = join(s:split_pattern(candidate)) - endif - - " \ - let candidate = substitute(candidate, '\\\\', '\\', 'g') - " * - let candidate = substitute(candidate, '\\\*', '*', 'g') - return candidate -endfunction"}}} - -function! s:split_pattern(keyword_pattern) "{{{ - let original_pattern = a:keyword_pattern - let result_patterns = [] - let analyzing_patterns = [ '' ] - - let i = 0 - let max = len(original_pattern) - while i < max - if match(original_pattern, '^\\%\?(', i) >= 0 - " Grouping. - let end = s:match_pair(original_pattern, '\\%\?(', '\\)', i) - if end < 0 - "call neocomplcache#print_error('Unmatched (.') - return [ a:keyword_pattern ] - endif - - let save_pattern = analyzing_patterns - let analyzing_patterns = [] - for keyword in split(original_pattern[matchend(original_pattern, '^\\%\?(', i) : end], '\\|') - for prefix in save_pattern - call add(analyzing_patterns, prefix . keyword) - endfor - endfor - - let i = end + 1 - elseif match(original_pattern, '^\\|', i) >= 0 - " Select. - let result_patterns += analyzing_patterns - let analyzing_patterns = [ '' ] - let original_pattern = original_pattern[i+2 :] - let max = len(original_pattern) - - let i = 0 - elseif original_pattern[i] == '\' && i+1 < max - let save_pattern = analyzing_patterns - let analyzing_patterns = [] - for prefix in save_pattern - call add(analyzing_patterns, prefix . original_pattern[i] . original_pattern[i+1]) - endfor - - " Escape. - let i += 2 - else - let save_pattern = analyzing_patterns - let analyzing_patterns = [] - for prefix in save_pattern - call add(analyzing_patterns, prefix . original_pattern[i]) - endfor - - let i += 1 - endif - endwhile - - let result_patterns += analyzing_patterns - return result_patterns -endfunction"}}} - -function! s:match_pair(string, start_pattern, end_pattern, start_cnt) "{{{ - let end = -1 - let start_pattern = '\%(' . a:start_pattern . '\)' - let end_pattern = '\%(' . a:end_pattern . '\)' - - let i = a:start_cnt - let max = len(a:string) - let nest_level = 0 - while i < max - let start = match(a:string, start_pattern, i) - let end = match(a:string, end_pattern, i) - - if start >= 0 && (end < 0 || start < end) - let i = matchend(a:string, start_pattern, i) - let nest_level += 1 - elseif end >= 0 && (start < 0 || end < start) - let nest_level -= 1 - - if nest_level == 0 - return end - endif - - let i = matchend(a:string, end_pattern, i) - else - break - endif - endwhile - - if nest_level != 0 - return -1 - else - return end - endif -endfunction"}}} - -" Global options definition. "{{{ -if !exists('g:neocomplcache_min_syntax_length') - let g:neocomplcache_min_syntax_length = 4 -endif -"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/tags_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/tags_complete.vim deleted file mode 100644 index 071b63d..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/tags_complete.vim +++ /dev/null @@ -1,113 +0,0 @@ -"============================================================================= -" FILE: tags_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -" Important variables. -if !exists('s:tags_list') - let s:tags_list = {} - let s:async_tags_list = {} -endif - -let s:source = { - \ 'name' : 'tags_complete', - \ 'kind' : 'keyword', - \} - -function! s:source.initialize() "{{{ - let g:neocomplcache_tags_caching_limit_file_size = - \ get(g:, 'neocomplcache_tags_caching_limit_file_size', 500000) - - " Create cache directory. - if !isdirectory(neocomplcache#get_temporary_directory() . '/tags_cache') - call mkdir(neocomplcache#get_temporary_directory() . '/tags_cache', 'p') - endif -endfunction"}}} - -function! s:source.finalize() "{{{ - delcommand NeoComplCacheCachingTags -endfunction"}}} - -function! neocomplcache#sources#tags_complete#define() "{{{ - return s:source -endfunction"}}} - -function! s:source.get_keyword_list(complete_str) "{{{ - if !has_key(s:async_tags_list, bufnr('%')) - \ && !has_key(s:tags_list, bufnr('%')) - call neocomplcache#sources#tags_complete#caching_tags(0) - endif - - if neocomplcache#within_comment() - return [] - endif - - call neocomplcache#cache#check_cache( - \ 'tags_cache', bufnr('%'), s:async_tags_list, s:tags_list) - - if !has_key(s:tags_list, bufnr('%')) - return [] - endif - let keyword_list = neocomplcache#dictionary_filter( - \ s:tags_list[bufnr('%')], a:complete_str) - - return neocomplcache#keyword_filter(keyword_list, a:complete_str) -endfunction"}}} - -function! s:initialize_tags(filename) "{{{ - " Initialize tags list. - let ft = &filetype - if ft == '' - let ft = 'nothing' - endif - - return { - \ 'filename' : a:filename, - \ 'cachename' : neocomplcache#cache#async_load_from_tags( - \ 'tags_cache', a:filename, ft, 'T', 0) - \ } -endfunction"}}} -function! neocomplcache#sources#tags_complete#caching_tags(force) "{{{ - let bufnumber = bufnr('%') - - let s:async_tags_list[bufnumber] = [] - for tags in map(filter(tagfiles(), 'getfsize(v:val) > 0'), - \ "neocomplcache#util#substitute_path_separator( - \ fnamemodify(v:val, ':p'))") - if tags !~? '/doc/tags\%(-\w\+\)\?$' && - \ (a:force || getfsize(tags) - \ < g:neocomplcache_tags_caching_limit_file_size) - call add(s:async_tags_list[bufnumber], - \ s:initialize_tags(tags)) - endif - endfor -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete.vim deleted file mode 100644 index 252b5fe..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete.vim +++ /dev/null @@ -1,198 +0,0 @@ -"============================================================================= -" FILE: vim_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:source = { - \ 'name' : 'vim_complete', - \ 'kind' : 'manual', - \ 'filetypes' : { 'vim' : 1, 'vimconsole' : 1, }, - \ 'mark' : '[vim]', - \ 'rank' : 300, - \} - -function! s:source.initialize() "{{{ - " Initialize. - - " Initialize complete function list. "{{{ - if !exists('g:neocomplcache_vim_completefuncs') - let g:neocomplcache_vim_completefuncs = {} - endif - "}}} - - " Call caching event. - autocmd neocomplcache FileType * - \ call neocomplcache#sources#vim_complete#helper#on_filetype() - - " Initialize check. - call neocomplcache#sources#vim_complete#helper#on_filetype() - - " Add command. - command! -nargs=? -complete=buffer NeoComplCacheCachingVim - \ call neocomplcache#sources#vim_complete#helper#recaching() -endfunction"}}} - -function! s:source.finalize() "{{{ - delcommand NeoComplCacheCachingVim - - if neocomplcache#exists_echodoc() - call echodoc#unregister('vim_complete') - endif -endfunction"}}} - -function! s:source.get_keyword_pos(cur_text) "{{{ - let cur_text = neocomplcache#sources#vim_complete#get_cur_text() - - if cur_text =~ '^\s*"' - " Comment. - return -1 - endif - - let pattern = '\.\%(\h\w*\)\?$\|' . - \ neocomplcache#get_keyword_pattern_end('vim') - if cur_text != '' && cur_text !~ - \ '^[[:digit:],[:space:][:tab:]$''<>]*\h\w*$' - let command_completion = - \ neocomplcache#sources#vim_complete#helper#get_completion_name( - \ neocomplcache#sources#vim_complete#get_command(cur_text)) - if command_completion =~ '\%(dir\|file\|shellcmd\)' - let pattern = neocomplcache#get_keyword_pattern_end('filename') - endif - endif - - let [complete_pos, complete_str] = - \ neocomplcache#match_word(a:cur_text, pattern) - if complete_pos < 0 - " Use args pattern. - let [complete_pos, complete_str] = - \ neocomplcache#match_word(a:cur_text, '\S\+$') - endif - - if a:cur_text !~ '\.\%(\h\w*\)\?$' && neocomplcache#is_auto_complete() - \ && bufname('%') !=# '[Command Line]' - \ && neocomplcache#util#mb_strlen(complete_str) - \ < g:neocomplcache_auto_completion_start_length - return -1 - endif - - return complete_pos -endfunction"}}} - -function! s:source.get_complete_words(complete_pos, complete_str) "{{{ - let cur_text = neocomplcache#sources#vim_complete#get_cur_text() - if neocomplcache#is_auto_complete() && cur_text !~ '\h\w*\.\%(\h\w*\)\?$' - \ && len(a:complete_str) < g:neocomplcache_auto_completion_start_length - \ && bufname('%') !=# '[Command Line]' - return [] - endif - - if cur_text =~ '\h\w*\.\%(\h\w*\)\?$' - " Dictionary. - let complete_str = matchstr(cur_text, '.\%(\h\w*\)\?$') - let list = neocomplcache#sources#vim_complete#helper#var_dictionary( - \ cur_text, complete_str) - return neocomplcache#keyword_filter(list, complete_str) - elseif a:complete_str =~# '^&\%([gl]:\)\?' - " Options. - let prefix = matchstr(a:complete_str, '&\%([gl]:\)\?') - let list = deepcopy( - \ neocomplcache#sources#vim_complete#helper#option( - \ cur_text, a:complete_str)) - for keyword in list - let keyword.word = - \ prefix . keyword.word - let keyword.abbr = prefix . - \ get(keyword, 'abbr', keyword.word) - endfor - elseif a:complete_str =~? '^\c' - " SID functions. - let prefix = matchstr(a:complete_str, '^\c') - let complete_str = substitute(a:complete_str, '^\c', 's:', '') - let list = deepcopy( - \ neocomplcache#sources#vim_complete#helper#function( - \ cur_text, complete_str)) - for keyword in list - let keyword.word = prefix . keyword.word[2:] - let keyword.abbr = prefix . - \ get(keyword, 'abbr', keyword.word)[2:] - endfor - elseif cur_text =~# '\[:alnum:]]*$' - " Expand. - let list = neocomplcache#sources#vim_complete#helper#expand( - \ cur_text, a:complete_str) - elseif a:complete_str =~ '^\$' - " Environment. - let list = neocomplcache#sources#vim_complete#helper#environment( - \ cur_text, a:complete_str) - elseif cur_text =~ '^[[:digit:],[:space:][:tab:]$''<>]*!\s*\f\+$' - " Shell commands. - let list = neocomplcache#sources#vim_complete#helper#shellcmd( - \ cur_text, a:complete_str) - else - " Commands. - let list = neocomplcache#sources#vim_complete#helper#command( - \ cur_text, a:complete_str) - endif - - return neocomplcache#keyword_filter(copy(list), a:complete_str) -endfunction"}}} - -function! neocomplcache#sources#vim_complete#define() "{{{ - return s:source -endfunction"}}} - -function! neocomplcache#sources#vim_complete#get_cur_text() "{{{ - let cur_text = neocomplcache#get_cur_text(1) - if &filetype == 'vimshell' && exists('*vimshell#get_secondary_prompt') - \ && empty(b:vimshell.continuation) - return cur_text[len(vimshell#get_secondary_prompt()) :] - endif - - let line = line('.') - let cnt = 0 - while cur_text =~ '^\s*\\' && line > 1 && cnt < 5 - let cur_text = getline(line - 1) . - \ substitute(cur_text, '^\s*\\', '', '') - let line -= 1 - let cnt += 1 - endwhile - - return split(cur_text, '\s\+|\s\+\|', 1)[-1] -endfunction"}}} -function! neocomplcache#sources#vim_complete#get_command(cur_text) "{{{ - return matchstr(a:cur_text, '\<\%(\d\+\)\?\zs\h\w*\ze!\?\|'. - \ '\<\%([[:digit:],[:space:]$''<>]\+\)\?\zs\h\w*\ze/.*') -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/autocmds.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/autocmds.dict deleted file mode 100644 index 7bcbd68..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/autocmds.dict +++ /dev/null @@ -1,83 +0,0 @@ -BufNewFile ; starting to edit a file that doesn't exist -BufReadPre ; starting to edit a new buffer, before reading the file -BufRead ; starting to edit a new buffer, after reading the file -BufReadPost ; starting to edit a new buffer, after reading the file -BufReadCmd ; before starting to edit a new buffer |Cmd-event| -FileReadPre ; before reading a file with a ":read" command -FileReadPost ; after reading a file with a ":read" command -FileReadCmd ; before reading a file with a ":read" command |Cmd-event| -FilterReadPre ; before reading a file from a filter command -FilterReadPost ; after reading a file from a filter command -StdinReadPre ; before reading from stdin into the buffer -StdinReadPost ; After reading from the stdin into the buffer -BufWrite ; starting to write the whole buffer to a file -BufWritePre ; starting to write the whole buffer to a file -BufWritePost ; after writing the whole buffer to a file -BufWriteCmd ; before writing the whole buffer to a file |Cmd-event| -FileWritePre ; starting to write part of a buffer to a file -FileWritePost ; after writing part of a buffer to a file -FileWriteCmd ; starting to append to a file -FileAppendPre ; after appending to a file -FileAppendPost ; before appending to a file |Cmd-event| -FileAppendCmd ; starting to write a file for a filter command or diff -FilterWritePre ; after writing a file for a filter command or diff -FilterWritePost ; just after adding a buffer to the buffer list -BufAdd ; just after adding a buffer to the buffer list -BufCreate ; just after adding a buffer to the buffer list -BufDelete ; before deleting a buffer from the buffer list -BufWipeout ; before completely deleting a buffer -BufFilePre ; before changing the name of the current buffer -BufFilePost ; after changing the name of the current buffer -BufEnter ; after entering a buffer -BufLeave ; before leaving to another buffer -BufWinEnter ; after a buffer is displayed in a window -BufWinLeave ; before a buffer is removed from a window -BufUnload ; before unloading a buffer -BufHidden ; just after a buffer has become hidden -BufNew ; just after creating a new buffer -SwapExists ; detected an existing swap file -FileType ; when the 'filetype' option has been set -Syntax ; when the 'syntax' option has been set -EncodingChanged ; after the 'encoding' option has been changed -TermChanged ; after the value of 'term' has changed -VimEnter ; after doing all the startup stuff -GUIEnter ; after starting the GUI successfully -TermResponse ; after the terminal response to |t_RV| is received -VimLeavePre ; before exiting Vim, before writing the viminfo file -VimLeave ; before exiting Vim, after writing the viminfo file -FileChangedShell ; Vim notices that a file changed since editing started -FileChangedShellPost ; After handling a file changed since editing started -FileChangedRO ; before making the first change to a read-only file -ShellCmdPost ; after executing a shell command -ShellFilterPost ; after filtering with a shell command -FuncUndefined ; a user function is used but it isn't defined -SpellFileMissing ; a spell file is used but it can't be found -SourcePre ; before sourcing a Vim script -SourceCmd ; before sourcing a Vim script |Cmd-event| -VimResized ; after the Vim window size changed -FocusGained ; Vim got input focus -FocusLost ; Vim lost input focus -CursorHold ; the user doesn't press a key for a while -CursorHoldI ; the user doesn't press a key for a while in Insert mode -CursorMoved ; the cursor was moved in Normal mode -CursorMovedI ; the cursor was moved in Insert mode -WinEnter ; after entering another window -WinLeave ; before leaving a window -TabEnter ; after entering another tab page -TabLeave ; before leaving a tab page -CmdwinEnter ; after entering the command-line window -CmdwinLeave ; before leaving the command-line window -InsertEnter ; starting Insert mode -InsertChange ; when typing while in Insert or Replace mode -InsertLeave ; when leaving Insert mode -ColorScheme ; after loading a color scheme -CompleteDone ; after Insert mode completion is done -RemoteReply ; a reply from a server Vim was received -QuickFixCmdPre ; before a quickfix command is run -QuickFixCmdPost ; after a quickfix command is run -SessionLoadPost ; after loading a session file -MenuPopup ; just before showing the popup menu -User ; to be used in combination with ":doautocmd" - ; buffer-local autocommands - ; for the file name that is being - ; for the buffer name that is being diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_args.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_args.dict deleted file mode 100644 index 1805a74..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_args.dict +++ /dev/null @@ -1,44 +0,0 @@ --bang ; the command can take a ! modifier (like :q or :w) --bar ; the command can be followed by a "|" and another command --buffer ; the command will only be available in the current buffer --complete=augroup ; autocmd groups --complete=behave ; :behave suboptions --complete=buffer ; buffer names --complete=color ; color schemes --complete=command ; Ex command (and arguments) --complete=compiler ; compilers --complete=cscope ; :cscope suboptions --complete=custom,{func} ; custom completion, defined via {func} --complete=customlist,{func} ; custom completion, defined via {func} --complete=dir ; directory names --complete=environment ; environment variable names --complete=event ; autocommand events --complete=expression ; Vim expression --complete=file ; file and directory names --complete=file_in_path ; file and directory names in 'path' --complete=filetype ; filetype names 'filetype' --complete=function ; function name --complete=help ; help subjects --complete=highlight ; highlight groups --complete=history ; :history suboptions --complete=locale ; locale names (as output of locale -a) --complete=mapping ; mapping name --complete=menu ; menus --complete=option ; options --complete=shellcmd ; Shell command --complete=sign ; :sign suboptions --complete=syntax ; syntax file names |'syntax'| --complete=tag ; tags --complete=tag_list ; tags, file names are shown when CTRL-D is hit --complete=tag_listfiles ; tags, file names are shown when CTRL-D is hit --complete=var ; user variables --count= ; a count (default N) in the line or as an initial argument --nargs=* ; any number of arguments are allowed (0, 1, or many) --nargs=+ ; arguments must be supplied, but any number are allowed --nargs=0 ; no arguments are allowed (the default) --nargs=1 ; exactly one argument is required --nargs=? ; 0 or 1 arguments are allowed --range ; range allowed, default is current line --range= ; a count (default N) which is specified in the line --range=% ; range allowed, default is whole file (1,$) --register ; the first argument to the command can be an optional register name diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_completions.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_completions.dict deleted file mode 100644 index 3e258a4..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_completions.dict +++ /dev/null @@ -1,498 +0,0 @@ -N[ext] -P[rint] -a[ppend] -ab[breviate] abbreviation -abc[lear] -abo[veleft] command -al[l] -am[enu] -an[oremenu] menu -ar[gs] file -arga[dd] file -argd[elete] file -argdo command -arge[dit] file -argg[lobal] file -argl[ocal] file -argu[ment] -as[cii] -au[tocmd] autocmd_args -aug[roup] augroup -aun[menu] menu -bN[ext] -b[uffer] buffer -ba[ll] -bad[d] file -bd[elete] buffer -be[have] -bel[owright] command -bf[irst] -bl[ast] -bm[odified] -bn[ext] -bo[tright] command -bp[revious] -br[ewind] -brea[k] -breaka[dd] function -breakd[el] -breakl[ist] -bro[wse] command -bufdo command -buffers -bun[load] buffer -bw[ipeout] buffer -cN[ext] -cNf[ile] -c[hange] -ca[bbrev] abbreviation -cabc[lear] -cad[dexpr] expression -caddb[uffer] -caddf[ile] file -cal[l] function -cat[ch] -cb[uffer] -cc -ccl[ose] -cd dir -ce[nter] -cex[pr] expression -cf[ile] file -cfir[st] -cg[etfile] file -cgetb[uffer] -cgete[xpr] expression -changes -chd[ir] dir -che[ckpath] -checkt[ime] -cl[ist] -cla[st] -clo[se] -cm[ap] mapping -cmapc[lear] -cme[nu] menu -cn[ext] -cnew[er] -cnf[ile] -cno[remap] mapping -cnorea[bbrev] abbreviation -cnoreme[nu] menu -co[py] -col[der] -colo[rscheme] colorscheme_args -com[mand] command_args -comc[lear] -comp[iler] compiler_args -con[tinue] -conf[irm] command -cope[n] -cp[revious] -cpf[ile] -cq[uit] -cr[ewind] -cs[cope] cscope_args -cst[ag] -cu[nmap] mapping -cuna[bbrev] abbreviation -cunme[nu] menu -cw[indow] -d[elete] -deb[ug] command -debugg[reedy] -del[command] command -delf[unction] function -delm[arks] -di[splay] -diffg[et] -diffo[ff] -diffp[atch] file -diffpu[t] -diffs[plit] file -diffthis -diffu[pdate] -dig[raphs] -dj[ump] -dl[ist] -do[autocmd] autocmd_args -doautoa[ll] autocmd_args -dr[op] file -ds[earch] -dsp[lit] -e[dit] file -ea[rlier] -ec[ho] expression -echoe[rr] expression -echoh[l] expression -echom[sg] expression -echon expression -el[se] -elsei[f] expression -em[enu] menu -en[dif] -endf[unction] -endfo[r] -endt[ry] -endw[hile] -ene[w] -ex file -exe[cute] execute -exi[t] file -exu[sage] -f[ile] -files -filet[ype] -fin[d] file -fina[lly] -fini[sh] -fir[st] -fix[del] -fo[ld] -foldc[lose] -foldd[oopen] command -folddoc[losed] command -foldo[pen] -for expression -fu[nction] function_args -go[to] -gr[ep] file -grepa[dd] file -gu[i] file -gv[im] file -h[elp] help -ha[rdcopy] -helpf[ind] -helpg[rep] -helpt[ags] dir -hi[ghlight] highlight -hid[e] command -his[tory] -i[nsert] -ia[bbrev] abbreviation -iabc[lear] -if expression -ij[ump] -il[ist] -im[ap] mapping -imapc[lear] -imenu menu -ino[remap] mapping -inorea[bbrev] mapping -inoreme[nu] menu -int[ro] -is[earch] -isp[lit] -iu[nmap] mapping -iuna[bbrev] abbreviation -iunme[nu] menu -j[oin] -ju[mps] -kee[pmarks] command -keep[jumps] command -keepa[lt] command -lN[ext] -lNf[ile] -l[ist] -la[st] -lad[dexpr] expr -laddb[uffer] -laddf[ile] file -lan[guage] language_args -lat[er] -lb[uffer] -lc[d] dir -lch[dir] dir -lcl[ose] -lcs[cope] cscope_args -le[ft] -lefta[bove] command -let let -lex[pr] expression -lf[ile] file -lfir[st] -lg[etfile] file -lgetb[uffer] -lgete[xpr] expression -lgr[ep] file -lgrepa[dd] file -lh[elpgrep] -ll -lla[st] -lli[st] -lm[ap] mapping -lmak[e] file -lmapc[lear] -ln[oremap] mapping -lne[xt] -lnew[er] -lnf[ile] -lo[adview] -loadk[eymap] -loc[kmarks] command -lockv[ar] var -lol[der] -lop[en] -lp[revious] -lpf[ile] -lr[ewind] -ls -lt[ag] -lu[nmap] mapping -lua -luado -luafile file -lv[imgrep] file -lvimgrepadd file -lwindow -m[ove] -ma[rk] -mak[e] file -map mapping -mapc[lear] -marks -match -menu menu -menut[ranslate] menutranslate_args -mes[sages] -mk[exrc] file -mks[ession] file -mksp[ell] file -mkv[imrc] file -mkvie[w] file -mod[e] -mz[scheme] file -mzf[ile] file -n[ext] -nb[key] -new -nm[ap] mapping -nmapc[lear] -nmenu menu -nno[remap] mapping -nnoreme[nu] menu -no[remap] mapping -noa[utocmd] command -noh[lsearch] -norea[bbrev] abbreviation -noreme[nu] menu -norm[al] -nu[mber] -nun[map] mapping -nunme[nu] menu -o[pen] -ol[dfiles] -om[ap] mapping -omapc[lear] -ome[nu] menu -on[ly] -ono[remap] mapping -onoreme[nu] menu -opt[ions] -ou[nmap] lhs -ounmenu menu -ownsyntax syntax_args -p[rint] -pc[lose] -pe[rl] -ped[it] file -perld[o] -po[p] -popu[p] -pp[op] -pre[serve] -prev[ious] -prof[ile] profile_args -profd[el] -promptf[ind] -promptr[epl] -ps[earch] -ptN[ext] -pta[g] tag -ptf[irst] -ptj[ump] -ptl[ast] -ptn[ext] -ptp[revious] -ptr[ewind] -pts[elect] tag -pu[t] -pw[d] -py3f[ile] file -py[thon] -pyf[ile] file -python3 -q[uit] -qa[ll] -quita[ll] -r[ead] -rec[over] file -red[o] -redi[r] -redr[aw] -redraws[tatus] -reg[isters] -res[ize] -ret[ab] -retu[rn] expression -rew[ind] -ri[ght] -rightb[elow] command -rub[y] -rubyd[o] -rubyf[ile] file -runtime file -rv[iminfo] file -sN[ext] -s[ubstitute] -sa[rgument] -sal[l] -san[dbox] command -sav[eas] file -sbN[ext] -sb[uffer] buffer -sba[ll] -sbf[irst] -sbl[ast] -sbm[odified] -sbn[ext] -sbp[revious] -sbr[ewind] -scrip[tnames] -scripte[ncoding] encoding -scscope cscope_args -se[t] option -setf[iletype] filetype -setg[lobal] option -setl[ocal] option -sf[ind] file -sfir[st] -sh[ell] -sig[n] sign_args -sil[ent] command -sim[alt] -sl[eep] -sla[st] -sm[agic] -sm[ap] mapping -smapc[lear] -sme[nu] menu -sn[ext] file -sni[ff] -sno[remap] mapping -snoreme[nu] menu -so[urce] file -sor[t] -sp[lit] -spe[llgood] -spelld[ump] -spelli[nfo] -spellr[epall] -spellu[ndo] -spellw[rong] -spr[evious] -sre[wind] -st[op] -sta[g] tag -star[tinsert] -startg[replace] -startr[eplace] -stj[ump] tag -stopi[nsert] -sts[elect] tag -sun[hide] -sunm[ap] mapping -sunme[nu] menu -sus[pend] -sv[iew] file -sw[apname] -sy[ntax] syntax_args -sync[bind] -t -tN[ext] -ta[g] tag -tab command -tabN[ext] -tabc[lose] -tabd[o] command -tabe[dit] file -tabf[ind] file -tabfir[st] -tabl[ast] -tabm[ove] -tabn[ext] -tabnew file -tabo[nly] -tabp[revious] -tabr[ewind] -tabs -tags -tc[l] -tcld[o] -tclf[ile] file -te[aroff] menu -tf[irst] -th[row] expression -tj[ump] tag -tl[ast] -tm[enu] menu -tn[ext] -to[pleft] command -tp[revious] -tr[ewind] -try -tselect -tu[nmenu] menu -u[ndo] -una[bbreviate] abbreviation -undoj[oin] -undol[ist] -unh[ide] -unl[et] var -unlo[ckvar] var -unm[ap] mapping -unme[nu] menu -uns[ilent] command -up[date] file -ve[rsion] -verb[ose] command -vert[ical] command -vg[lobal] -vi[sual] file -vie[w] file -vim[grep] file -vimgrepa[dd] file -viu[sage] -vm[ap] mapping -vmapc[lear] -vmenu menu -vn[oremap] mapping -vne[w] file -vnoremenu menu -vsp[lit] file -vu[nmap] mapping -vunmenu menu -wN[ext] file -w[rite] file -wa[ll] -wh[ile] expression -win[size] -winc[md] -windo command -winp[os] -wn[ext] -wp[revious] file -wq -wqa[ll] -ws[verb] -wv[iminfo] file -x[it] file -xa[ll] -xm[ap] mapping -xmapc[lear] -xmenu menu -xn[oremap] mapping -xnoremenu menu -xu[nmap] mapping -xunmenu menu -y[ank] diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_prototypes.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_prototypes.dict deleted file mode 100644 index ecd86c9..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_prototypes.dict +++ /dev/null @@ -1,498 +0,0 @@ -N[ext] [count] [++opt] [+cmd] -P[rint] [count] [flags] -a[ppend] -ab[breviate] -abc[lear] -abo[veleft] {cmd} -al[l] [N] -am[enu] -an[oremenu] {menu} -ar[gs] -arga[dd] {name} .. -argd[elete] {pattern} .. -argdo {cmd} -arge[dit] [++opt] [+cmd] {name} -argg[lobal] [++opt] [+cmd] {arglist} -argl[ocal] [++opt] [+cmd] {arglist} -argu[ment] [count] [++opt] [+cmd] -as[cii] -au[tocmd] [group] {event} {pat} [nested] {cmd} -aug[roup] {name} -aun[menu] {menu} -bN[ext] [N] -b[uffer] {bufname} -ba[ll] [N] -bad[d] [+lnum] {fname} -bd[elete] {bufname} -be[have] {model} -bel[owright] {cmd} -bf[irst] -bl[ast] -bm[odified] [N] -bn[ext] [N] -bo[tright] {cmd} -bp[revious] [N] -br[ewind] -brea[k] -breaka[dd] func [lnum] {name} -breakd[el] {nr} -breakl[ist] -bro[wse] {command} -bufdo {cmd} -buffers -bun[load] {bufname} -bw[ipeout] {bufname} -cN[ext] -cNf[ile] -c[hange] -ca[bbrev] [] [lhs] [rhs] -cabc[lear] -cad[dexpr] {expr} -caddb[uffer] [bufnr] -caddf[ile] [errorfile] -cal[l] {name}([arguments]) -cat[ch] /{pattern}/ -cb[uffer] [bufnr] -cc [nr] -ccl[ose] -cd {path} -ce[nter] [width] -cex[pr] {expr} -cf[ile] [errorfile] -cfir[st] [nr] -cg[etfile] [errorfile] -cgetb[uffer] [bufnr] -cgete[xpr] {expr} -changes -chd[ir] [path] -che[ckpath] -checkt[ime] -cl[ist] [from] [, [to]] -cla[st] [nr] -clo[se] -cm[ap] {lhs} {rhs} -cmapc[lear] -cme[nu] {menu} -cn[ext] -cnew[er] [count] -cnf[ile] -cno[remap] {lhs} {rhs} -cnorea[bbrev] [] [lhs] [rhs] -cnoreme[nu] {menu} -co[py] {address} -col[der] [count] -colo[rscheme] {name} -com[mand] [-bang -complete= -nargs=...] {cmdname} {call function()} | {rep} -comc[lear] -comp[iler] {name} -con[tinue] -conf[irm] {command} -cope[n] [height] -cp[revious] -cpf[ile] -cq[uit] -cr[ewind] [nr] -cs[cope] add {file|dir} [pre-path] [flags] | find {querytype} {name} | kill {num|partial_name} | help | reset | show -cst[ag] -cu[nmap] {lhs} -cuna[bbrev] {lhs} -cunme[nu] {menu} -cw[indow] [height] -d[elete] [x] -deb[ug] {cmd} -debugg[reedy] -del[command] {cmd} -delf[unction] {name} -delm[arks] {marks} -di[splay] [arg] -diffg[et] [bufspec] -diffo[ff] -diffp[atch] {patchfile} -diffpu[t] [bufspec] -diffs[plit] {filename} -diffthis -diffu[pdate] -dig[raphs] {char1}{char2} {number} ... -dj[ump] [count] [/]string[/] -dl[ist] [/]string[/] -do[autocmd] [group] {event} [fname] -doautoa[ll] [group] {event} [fname] -dr[op] [++opt] [+cmd] {file} .. -ds[earch] [count] [/]string[/] -dsp[lit] [count] [/]string[/] -e[dit] [++opt] [+cmd] {file} -ea[rlier] {count} | {N}s | {N}h -ec[ho] {expr1} .. -echoe[rr] {expr1} .. -echoh[l] {expr1} .. -echom[sg] {expr1} .. -echon {expr1} .. -el[se] -elsei[f] {expr1} -em[enu] {menu} -en[dif] -endf[unction] -endfo[r] -endt[ry] -endw[hile] -ene[w] -ex [++opt] [+cmd] [file] -exe[cute] {expr1} .. -exi[t] [++opt] [file] -exu[sage] -f[ile] -files -filet[ype] -fin[d] [++opt] [+cmd] {file} -fina[lly] -fini[sh] -fir[st] [++opt] [+cmd] -fix[del] -fo[ld] -foldc[lose] -foldd[oopen] {cmd} -folddoc[losed] {cmd} -foldo[pen] -for {var} in {list} -fu[nction] {name}([arguments]) [range] [abort] [dict] -go[to] [count] -gr[ep] [arguments] -grepa[dd] [arguments] -gu[i] [++opt] [+cmd] [-f|-b] [files...] -gv[im] [++opt] [+cmd] [-f|-b] [files...] -h[elp] {subject} -ha[rdcopy] [arguments] -helpf[ind] -helpg[rep] {pattern}[@xx] -helpt[ags] [++t] {dir} -hi[ghlight] [default] {group-name} {key}={arg} .. -hid[e] {cmd} -his[tory] [{name}] [{first}][, [{last}]] -i[nsert] -ia[bbrev] [] [lhs] [rhs] -iabc[lear] -if {expr1} -ij[ump] [count] [/]pattern[/] -il[ist] [/]pattern[/] -im[ap] {lhs} {rhs} -imapc[lear] -imenu {menu} -ino[remap] {lhs} {rhs} -inorea[bbrev] [] [lhs] [rhs] -inoreme[nu] {menu} -int[ro] -is[earch] [count] [/]pattern[/] -isp[lit] [count] [/]pattern[/] -iu[nmap] {lhs} -iuna[bbrev] {lhs} -iunme[nu] {menu} -j[oin] {count} [flags] -ju[mps] -kee[pmarks] {command} -keep[jumps] {command} -keepa[lt] {cmd} -lN[ext] -lNf[ile] -l[ist] [count] [flags] -la[st] [++opt] [+cmd] -lad[dexpr] {expr} -laddb[uffer] [bufnr] -laddf[ile] [errorfile] -lan[guage] {name} | mes[sages] {name} | cty[pe] {name} | tim[e] {name} -lat[er] {count} | {N}s | {N}m | {N}h -lb[uffer] [bufnr] -lc[d] {path} -lch[dir] {path} -lcl[ose] -lcs[cope] add {file|dir} [pre-path] [flags] | find {querytype} {name} | kill {num|partial_name} | help | reset | show -le[ft] [indent] -lefta[bove] {cmd} -let {var-name} = {expr1} -lex[pr] {expr} -lf[ile] [errorfile] -lfir[st] [nr] -lg[etfile] [errorfile] -lgetb[uffer] [bufnr] -lgete[xpr] {expr} -lgr[ep] [arguments] -lgrepa[dd] [arguments] -lh[elpgrep] {pattern}[@xx] -ll [nr] -lla[st] [nr] -lli[st] [from] [, [to]] -lm[ap] {lhs} {rhs} -lmak[e] [arguments] -lmapc[lear] -ln[oremap] {lhs} {rhs} -lne[xt] -lnew[er] [count] -lnf[ile] -lo[adview] [nr] -loadk[eymap] -loc[kmarks] {command} -lockv[ar] [depth] {name} ... -lol[der] [count] -lop[en] [height] -lp[revious] -lpf[ile] -lr[ewind] [nr] -ls -lt[ag] [ident] -lua {chunk} | << {endmarker} -luado {body} -luafile {file} -lu[nmap] {lhs} -lv[imgrep] /{pattern}/[g][j] {file} ... | {pattern} {file} ... -lvimgrepadd /{pattern}/[g][j] {file} ... | {pattern} {file} ... -lwindow [height] -m[ove] {address} -ma[rk] {a-zA-z'} -mak[e] [arguments] -map {lhs} {rhs} -mapc[lear] -marks -match {group} /{pattern}/ -menu {menu} -menut[ranslate] clear | {english} {mylang} -mes[sages] -mk[exrc] [file] -mks[ession] [file] -mksp[ell] [-ascii] {outname} {inname} ... -mkv[imrc] [file] -mkvie[w] [file] -mod[e] [mode] -mz[scheme] {stmt} | << {endmarker} {script} {endmarker} | {file} -mzf[ile] {file} -n[ext] [++opt] [+cmd] -nb[key] key -new -nm[ap] {lhs} {rhs} -nmapc[lear] -nmenu {menu} -nno[remap] {lhs} {rhs} -nnoreme[nu] {menu} -no[remap] {lhs} {rhs} -noa[utocmd] {cmd} -noh[lsearch] -norea[bbrev] [] [lhs] [rhs] -noreme[nu] {menu} -norm[al] {commands} -nu[mber] [count] [flags] -nun[map] {lhs} -nunme[nu] {menu} -o[pen] /pattern/ -ol[dfiles] -om[ap] {lhs} {rhs} -omapc[lear] -ome[nu] {menu} -on[ly] -ono[remap] {lhs} {rhs} -onoreme[nu] {menu} -opt[ions] -ou[nmap] {lhs} -ounmenu {menu} -ownsyntax list {group-name} | list @{cluster-name} -p[rint] {count} [flags] -pc[lose] -pe[rl] {cmd} | << {endpattern} {script} {endpattern} -ped[it] [++opt] [+cmd] {file} -perld[o] {cmd} -po[p] -popu[p] {name} -pp[op] -pre[serve] -prev[ious] [count] [++opt] [+cmd] -prof[ile] start {fname} | pause | continue | func {pattern} | file {pattern} -profd[el] ... -promptf[ind] [string] -promptr[epl] [string] -ps[earch] [count] [/]pattern[/] -ptN[ext] -pta[g] [tagname] -ptf[irst] -ptj[ump] -ptl[ast] -ptn[ext] -ptp[revious] -ptr[ewind] -pts[elect] [ident] -pu[t] [x] -pw[d] -py[thon] {stmt} | << {endmarker} {script} {endmarker} -python3 {stmt} | << {endmarker} {script} {endmarker} -pyf[ile] {file} -py3f[ile] {file} -q[uit] -qa[ll] -quita[ll] -r[ead] [++opt] [name] -rec[over] [file] -red[o] -redi[r] > {file} | >> {file} | @{a-zA-Z} | => {var} | END -redr[aw] -redraws[tatus] -reg[isters] {arg} -res[ize] -ret[ab] [new_tabstop] -retu[rn] [expr] -rew[ind] [++opt] [+cmd] -ri[ght] [width] -rightb[elow] {cmd} -rub[y] {cmd} | << {endpattern} {script} {endpattern} -rubyd[o] {cmd} -rubyf[ile] {file} -runtime {file} .. -rv[iminfo] [file] -sN[ext] [++opt] [+cmd] [N] -s[ubstitute] /{pattern}/{string}/[flags] [count] -sa[rgument] [++opt] [+cmd] [N] -sal[l] -san[dbox] {cmd} -sav[eas] [++opt] {file} -sbN[ext] [N] -sb[uffer] {bufname} -sba[ll] [N] -sbf[irst] -sbl[ast] -sbm[odified] [N] -sbn[ext] [N] -sbp[revious] [N] -sbr[ewind] -scrip[tnames] -scripte[ncoding] [encoging] -scscope add {file|dir} [pre-path] [flags] | find {querytype} {name} | kill {num|partial_name} | help | reset | show -se[t] {option}={value} {option}? | {option} | {option}& -setf[iletype] {filetype} -setg[lobal] ... -setl[ocal] ... -sf[ind] [++opt] [+cmd] {file} -sfir[st] [++opt] [+cmd] -sh[ell] -sig[n] define {name} {argument}... | icon={pixmap} | linehl={group} | text={text} | texthl={group} -sil[ent] {command} -sim[alt] {key} -sl[eep] [N] [m] -sla[st] [++opt] [+cmd] -sm[agic] ... -sm[ap] {lhs} {rhs} -smapc[lear] -sme[nu] {menu} -sn[ext] [++opt] [+cmd] [file ..] -sni[ff] request [symbol] -sno[remap] {lhs} {rhs} -snoreme[nu] {menu} -so[urce] {file} -sor[t] [i][u][r][n][x][o] [/{pattern}/] -sp[lit] [++opt] [+cmd] -spe[llgood] {word} -spelld[ump] -spelli[nfo] -spellr[epall] -spellu[ndo] {word} -spellw[rong] {word} -spr[evious] [++opt] [+cmd] [N] -sre[wind] [++opt] [+cmd] -st[op] -sta[g] [tagname] -star[tinsert] -startg[replace] -startr[eplace] -stj[ump] [ident] -stopi[nsert] -sts[elect] [ident] -sun[hide] [N] -sunm[ap] {lhs} -sunme[nu] {menu} -sus[pend] -sv[iew] [++opt] [+cmd] {file} -sw[apname] -sy[ntax] list {group-name} | list @{cluster-name} -sync[bind] -t -tN[ext] -ta[g] {ident} -tab {cmd} -tabN[ext] -tabc[lose] -tabd[o] {cmd} -tabe[dit] [++opt] [+cmd] {file} -tabf[ind] [++opt] [+cmd] {file} -tabfir[st] -tabl[ast] -tabm[ove] [N] -tabn[ext] -tabnew [++opt] [+cmd] {file} -tabo[nly] -tabp[revious] -tabr[ewind] -tabs -tags -tc[l] {cmd} | {endmarker} {script} {endmarker} -tcld[o] {cmd} -tclf[ile] {file} -te[aroff] {name} -tf[irst] -th[row] {expr1} -tj[ump] [ident] -tl[ast] -tm[enu] {menu} -tn[ext] -to[pleft] {cmd} -tp[revious] -tr[ewind] -try -tselect -tu[nmenu] {menu} -u[ndo] {N} -una[bbreviate] {lhs} -undoj[oin] -undol[ist] -unh[ide] [N] -unl[et] {name} ... -unlo[ckvar] [depth] {name} ... -unm[ap] {lhs} -unme[nu] {menu} -uns[ilent] {command} -up[date] [++opt] [>>] [file] -ve[rsion] -verb[ose] {command} -vert[ical] {cmd} -vg[lobal] /{pattern}/[cmd] -vi[sual] [++opt] [+cmd] [file] -vie[w] [++opt] [+cmd] file -vim[grep] /{pattern}/[g][j] {file} ... | {pattern} {file} ... -vimgrepa[dd] /{pattern}/[g][j] {file} ... | {pattern} {file} ... -viu[sage] -vm[ap] {lhs} {rhs} -vmapc[lear] -vmenu {menu} -vn[oremap] {lhs} {rhs} -vne[w] [++opt] [+cmd] [file] -vnoremenu {menu} -vsp[lit] [++opt] [+cmd] [file] -vu[nmap] {lhs} -vunmenu {menu} -wN[ext] [++opt] [file] -w[rite] [++opt] [file] -wa[ll] -wh[ile] {expr1} -win[size] {width} {height} -winc[md] {arg} -windo {cmd} -winp[os] {X} {Y} -wn[ext] [++opt] -wp[revious] [++opt] [file] -wq [++opt] -wqa[ll] [++opt] -ws[verb] verb -wv[iminfo] [file] -x[it] [++opt] [file] -xa[ll] [++opt] -xm[ap] {lhs} {rhs} -xmapc[lear] -xmenu {menu} -xn[oremap] {lhs} {rhs} -xnoremenu {menu} -xu[nmap] {lhs} -xunmenu {menu} -y[ank] [x] {count} diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_replaces.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_replaces.dict deleted file mode 100644 index 6ec9154..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/command_replaces.dict +++ /dev/null @@ -1,10 +0,0 @@ - ; the starting line of the command range - ; the final line of the command range - ; any count supplied (as described for the '-range' and '-count' attributes) - ; expands to a ! if the command was executed with a ! modifier - ; the optional register, if specified - ; the command arguments, exactly as supplied - ; a single '<' (Less-Than) character - ; the value is quoted in such a way as to make it a valid value for use in an expression - ; splits the command arguments at spaces and tabs, quotes each argument individually - ; defining a user command in a script diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/commands.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/commands.dict deleted file mode 100644 index 565c1ea..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/commands.dict +++ /dev/null @@ -1,492 +0,0 @@ -Next ; go to previous file in the argument list -Print ; print lines -abbreviate ; enter abbreviation -abclear ; remove all abbreviations -aboveleft ; make split window appear left or above -all ; open a window for each file in the argument list -amenu ; enter new menu item for all modes -anoremenu ; enter a new menu for all modes that will not be remapped -append ; append text -argadd ; add items to the argument list -argdelete ; delete items from the argument list -argdo ; do a command on all items in the argument list -argedit ; add item to the argument list and edit it -argglobal ; define the global argument list -arglocal ; define a local argument list -args ; print the argument list -argument ; go to specific file in the argument list -ascii ; print ascii value of character under the cursor -augroup ; select the autocommand group to use -aunmenu ; remove menu for all modes -autocmd ; enter or show autocommands -bNext ; go to previous buffer in the buffer list -badd ; add buffer to the buffer list -ball ; open a window for each buffer in the buffer list -bdelete ; remove a buffer from the buffer list -behave ; set mouse and selection behavior -belowright ; make split window appear right or below -bfirst ; go to first buffer in the buffer list -blast ; go to last buffer in the buffer list -bmodified ; go to next buffer in the buffer list that has been modified -bnext ; go to next buffer in the buffer list -botright ; make split window appear at bottom or far right -bprevious ; go to previous buffer in the buffer list -break ; break out of while loop -breakadd ; add a debugger breakpoint -breakdel ; delete a debugger breakpoint -breaklist ; list debugger breakpoints -brewind ; go to first buffer in the buffer list -browse ; use file selection dialog -bufdo ; execute command in each listed buffer -buffer ; go to specific buffer in the buffer list -buffers ; list all files in the buffer list -bunload ; unload a specific buffer -bwipeout ; really delete a buffer -cNext ; go to previous error -cNfile ; go to last error in previous file -cabbrev ; like "abbreviate" but for Command-line mode -cabclear ; clear all abbreviations for Command-line mode -caddbuffer ; add errors from buffer -caddexpr ; add errors from expr -caddfile ; add error message to current quickfix list -call ; call a function -catch ; part of a try command -cbuffer ; parse error messages and jump to first error -cclose ; close quickfix window -center ; format lines at the center -cexpr ; read errors from expr and jump to first -cfile ; read file with error messages and jump to first -cfirst ; go to the specified error, default first one -cgetbuffer ; get errors from buffer -cgetexpr ; get errors from expr -cgetfile ; read file with error messages -change ; replace a line or series of lines -changes ; print the change list -chdir ; change directory -checkpath ; list included files -checktime ; check timestamp of loaded buffers -clast ; go to the specified error, default last one -clist ; list all errors -close ; close current window -cmap ; like "map" but for Command-line mode -cmapclear ; clear all mappings for Command-line mode -cmenu ; add menu for Command-line mode -cnewer ; go to newer error list -cnext ; go to next error -cnfile ; go to first error in next file -cnoreabbrev ; like "noreabbrev" but for Command-line mode -cnoremap ; like "noremap" but for Command-line mode -cnoremenu ; like "noremenu" but for Command-line mode -colder ; go to older error list -colorscheme ; load a specific color scheme -comclear ; clear all user-defined commands -command ; create user-defined command -compiler ; do settings for a specific compiler -confirm ; prompt user when confirmation required -continue ; go back to while -copen ; open quickfix window -copy ; copy lines -cpfile ; go to last error in previous file -cprevious ; go to previous error -cquit ; quit Vim with an error code -crewind ; go to the specified error, default first one -cscope ; execute cscope command -cstag ; use cscope to jump to a tag -cunabbrev ; like "unabbrev" but for Command-line mode -cunmap ; like "unmap" but for Command-line mode -cunmenu ; remove menu for Command-line mode -cwindow ; open or close quickfix window -debug ; run a command in debugging mode -debuggreedy ; read debug mode commands from normal input -delcommand ; delete user-defined command -delete ; delete lines -delfunction ; delete a user function -delmarks ; delete marks -diffget ; remove differences in current buffer -diffoff ; switch off diff mode -diffpatch ; apply a patch and show differences -diffput ; remove differences in other buffer -diffsplit ; show differences with another file -diffthis ; make current window a diff window -diffupdate ; update 'diff' buffers -digraphs ; show or enter digraphs -display ; display registers -djump ; jump to #define -dlist ; list #defines -doautoall ; apply autocommands for all loaded buffers -doautocmd ; apply autocommands to current buffer -drop ; jump to window editing file or edit file in current window -dsearch ; list one #define -dsplit ; split window and jump to #define -earlier ; go to older change, undo -echo ; echoes the result of expressions -echoerr ; like echo, show like an error and use history -echohl ; set highlighting for echo commands -echomsg ; same as echo, put message in history -echon ; same as echo, but without -edit ; edit a file -else ; part of an if command -elseif ; part of an if command -emenu ; execute a menu by name -endfor ; end previous for -endfunction ; end of a user function -endif ; end previous if -endtry ; end previous try -endwhile ; end previous while -enew ; edit a new, unnamed buffer -execute ; execute result of expressions -exit ; same as "xit" -exusage ; overview of Ex commands -file ; show or set the current file name -files ; list all files in the buffer list -filetype ; switch file type detection on/off -finally ; part of a try command -find ; find file in 'path' and edit it -finish ; quit sourcing a Vim script -first ; go to the first file in the argument list -fixdel ; set key code of -fold ; create a fold -foldclose ; close folds -folddoclosed ; execute command on lines in a closed fold -folddoopen ; execute command on lines not in a closed fold -foldopen ; open folds -for ; for loop -function ; define a user function -global ; execute commands for matching lines -goto ; go to byte in the buffer -grep ; run 'grepprg' and jump to first match -grepadd ; like grep, but append to current list -gui ; start the GUI -gvim ; start the GUI -hardcopy ; send text to the printer -help ; open a help window -helpfind ; dialog to open a help window -helpgrep ; like "grep" but searches help files -helptags ; generate help tags for a directory -hide ; hide current buffer for a command -highlight ; specify highlighting methods -history ; print a history list -iabbrev ; like "abbrev" but for Insert mode -iabclear ; like "abclear" but for Insert mode -ijump ; jump to definition of identifier -ilist ; list lines where identifier matches -imap ; like "map" but for Insert mode -imapclear ; like "mapclear" but for Insert mode -imenu ; add menu for Insert mode -inoreabbrev ; like "noreabbrev" but for Insert mode -inoremap ; like "noremap" but for Insert mode -inoremenu ; like "noremenu" but for Insert mode -insert ; insert text -intro ; print the introductory message -isearch ; list one line where identifier matches -isplit ; split window and jump to definition of identifier -iunabbrev ; like "unabbrev" but for Insert mode -iunmap ; like "unmap" but for Insert mode -iunmenu ; remove menu for Insert mode -join ; join lines -jumps ; print the jump list -keepalt ; following command keeps the alternate file -keepjumps ; following command keeps jumplist and marks -keepmarks ; following command keeps marks where they are -lNext ; go to previous entry in location list -lNfile ; go to last entry in previous file -laddbuffer ; add locations from buffer -laddexpr ; add locations from expr -laddfile ; add locations to current location list -language ; set the language (locale) -last ; go to the last file in the argument list -later ; go to newer change, redo -lbuffer ; parse locations and jump to first location -lcd ; change directory locally -lchdir ; change directory locally -lclose ; close location window -lcscope ; like "cscope" but uses location list -left ; left align lines -leftabove ; make split window appear left or above -let ; assign a value to a variable or option -lexpr ; read locations from expr and jump to first -lfile ; read file with locations and jump to first -lfirst ; go to the specified location, default first one -lgetbuffer ; get locations from buffer -lgetexpr ; get locations from expr -lgetfile ; read file with locations -lgrep ; run 'grepprg' and jump to first match -lgrepadd ; like grep, but append to current list -lhelpgrep ; like "helpgrep" but uses location list -list ; print lines -llast ; go to the specified location, default last one -llist ; list all locations -lmake ; execute external command 'makeprg' and parse error messages -lmap ; like "map!" but includes Lang-Arg mode -lmapclear ; like "mapclear!" but includes Lang-Arg mode -lnewer ; go to newer location list -lnext ; go to next location -lnfile ; go to first location in next file -lnoremap ; like "noremap!" but includes Lang-Arg mode -loadkeymap ; load the following keymaps until EOF -loadview ; load view for current window from a file -lockmarks ; following command keeps marks where they are -lockvar ; lock variables -lolder ; go to older location list -lopen ; open location window -lpfile ; go to last location in previous file -lprevious ; go to previous location -lrewind ; go to the specified location, default first one -ltag ; jump to tag and add matching tags to the location list -lua ; execute Lua chunk. -luado ; execute Lua function. -luafile ; execute Lua script in file. -lunmap ; like "unmap!" but includes Lang-Arg mode -lvimgrep ; search for pattern in files -lvimgrepadd ; like vimgrep, but append to current list -lwindow ; open or close location window -make ; execute external command 'makeprg' and parse error messages -map ; show or enter a mapping -mapclear ; clear all mappings for Normal and Visual mode -mark ; set a mark -marks ; list all marks -match ; define a match to highlight -menu ; enter a new menu item -menutranslate ; add a menu translation item -messages ; view previously displayed messages -mkexrc ; write current mappings and settings to a file -mksession ; write session info to a file -mkspell ; produce .spl spell file -mkview ; write view of current window to a file -mkvimrc ; write current mappings and settings to a file -mode ; show or change the screen mode -move ; move lines -mzfile ; execute MzScheme script file -mzscheme ; execute MzScheme command -nbkey ; pass a key to Netbeans -new ; create a new empty window -next ; go to next file in the argument list -nmap ; like "map" but for Normal mode -nmapclear ; clear all mappings for Normal mode -nmenu ; add menu for Normal mode -nnoremap ; like "noremap" but for Normal mode -nnoremenu ; like "noremenu" but for Normal mode -noautocmd ; following command don't trigger autocommands -nohlsearch ; suspend 'hlsearch' highlighting -noreabbrev ; enter an abbreviation that will not be remapped -noremap ; enter a mapping that will not be remapped -noremenu ; enter a menu that will not be remapped -normal ; execute Normal mode commands -number ; print lines with line number -nunmap ; like "unmap" but for Normal mode -nunmenu ; remove menu for Normal mode -oldfiles ; list files that have marks in the viminfo file -omap ; like "map" but for Operator-pending mode -omapclear ; remove all mappings for Operator-pending mode -omenu ; add menu for Operator-pending mode -only ; close all windows except the current one -onoremap ; like "noremap" but for Operator-pending mode -onoremenu ; like "noremenu" but for Operator-pending mode -open ; start open mode (not implemented) -options ; open the options-window -ounmap ; like "unmap" but for Operator-pending mode -ounmenu ; remove menu for Operator-pending mode -ownsyntax ; define Window-local syntax -pclose ; close preview window -pedit ; edit file in the preview window -perl ; execute Perl command -perldo ; execute Perl command for each line -pop ; jump to older entry in tag stack -popup ; popup a menu by name -ppop ; "pop" in preview window -preserve ; write all text to swap file -previous ; go to previous file in argument list -print ; print lines -profdel ; stop profiling a function or script -profile ; profiling functions and scripts -promptfind ; open GUI dialog for searching -promptrepl ; open GUI dialog for search/replace -psearch ; like "ijump" but shows match in preview window -ptNext ; tNext in preview window -ptag ; show tag in preview window -ptfirst ; trewind in preview window -ptjump ; tjump and show tag in preview window -ptlast ; tlast in preview window -ptnext ; tnext in preview window -ptprevious ; tprevious in preview window -ptrewind ; trewind in preview window -ptselect ; tselect and show tag in preview window -put ; insert contents of register in the text -pwd ; print current directory -py3file ; execute Python3 script file -pyfile ; execute Python script file -python ; execute Python command -python3 ; execute Python3 command -qall ; quit Vim -quit ; quit current window (when one window quit Vim) -quitall ; quit Vim -read ; read file into the text -recover ; recover a file from a swap file -redir ; redirect messages to a file or register -redo ; redo one undone change -redraw ; force a redraw of the display -redrawstatus ; force a redraw of the status line(s) -registers ; display the contents of registers -resize ; change current window height -retab ; change tab size -return ; return from a user function -rewind ; go to the first file in the argument list -right ; right align text -rightbelow ; make split window appear right or below -ruby ; execute Ruby command -rubydo ; execute Ruby command for each line -rubyfile ; execute Ruby script file -runtime ; source vim scripts in 'runtimepath' -rviminfo ; read from viminfo file -sNext ; split window and go to previous file in argument list -sall ; open a window for each file in argument list -sandbox ; execute a command in the sandbox -sargument ; split window and go to specific file in argument list -saveas ; save file under another name. -sbNext ; split window and go to previous file in the buffer list -sball ; open a window for each file in the buffer list -sbfirst ; split window and go to first file in the buffer list -sblast ; split window and go to last file in buffer list -sbmodified ; split window and go to modified file in the buffer list -sbnext ; split window and go to next file in the buffer list -sbprevious ; split window and go to previous file in the buffer list -sbrewind ; split window and go to first file in the buffer list -sbuffer ; split window and go to specific file in the buffer list -scriptencoding ; encoding used in sourced Vim script -scriptnames ; list names of all sourced Vim scripts -scscope ; split window and execute cscope command -set ; show or set options -setfiletype ; set 'filetype', unless it was set already -setglobal ; show global values of options -setlocal ; show or set options locally -sfind ; split current window and edit file in 'path' -sfirst ; split window and go to first file in the argument list -shell ; escape to a shell -sign ; manipulate signs -silent ; run a command silently -simalt ; Win32 GUI simulate Windows ALT key -slast ; split window and go to last file in the argument list -sleep ; do nothing for a few seconds -smagic ; substitute with 'magic' -smap ; like "map" but for Select mode -smapclear ; remove all mappings for Select mode -smenu ; add menu for Select mode -snext ; split window and go to next file in the argument list -sniff ; send request to sniff -snomagic ; substitute with 'nomagic' -snoremap ; like "noremap" but for Select mode -snoremenu ; like "noremenu" but for Select mode -sort ; sort lines -source ; read Vim or Ex commands from a file -spelldump ; split window and fill with all correct words -spellgood ; add good word for spelling -spellinfo ; show info about loaded spell files -spellrepall ; replace all bad words like last z= -spellundo ; remove good or bad word -spellwrong ; add spelling mistake -split ; split current window -sprevious ; split window and go to previous file in the argument list -srewind ; split window and go to first file in the argument list -stag ; split window and jump to a tag -startgreplace ; start Virtual Replace mode -startinsert ; start Insert mode -startreplace ; start Replace mode -stjump ; do "tjump" and split window -stop ; suspend the editor or escape to a shell -stopinsert ; stop Insert mode -stselect ; do "tselect" and split window -substitute ; find and replace text -sunhide ; same as "unhide" -sunmap ; like "unmap" but for Select mode -sunmenu ; remove menu for Select mode -suspend ; same as "stop" -sview ; split window and edit file read-only -swapname ; show the name of the current swap file -syncbind ; sync scroll binding -syntax ; syntax highlighting -tNext ; jump to previous matching tag -tab ; create new tab when opening new window -tabNext ; go to previous tab page -tabclose ; close current tab page -tabdo ; execute command in each tab page -tabedit ; edit a file in a new tab page -tabfind ; find file in 'path', edit it in a new tab page -tabfirst ; got to first tab page -tablast ; got to last tab page -tabmove ; move tab page to other position -tabnew ; edit a file in a new tab page -tabnext ; go to next tab page -tabonly ; close all tab pages except the current one -tabprevious ; go to previous tab page -tabrewind ; got to first tab page -tabs ; list the tab pages and what they contain -tag ; jump to tag -tags ; show the contents of the tag stack -tcl ; execute Tcl command -tcldo ; execute Tcl command for each line -tclfile ; execute Tcl script file -tearoff ; tear-off a menu -tfirst ; jump to first matching tag -throw ; throw an exception -tjump ; like "tselect", but jump directly when there is only one match -tlast ; jump to last matching tag -tmenu ; define menu tooltip -tnext ; jump to next matching tag -topleft ; make split window appear at top or far left -tprevious ; jump to previous matching tag -trewind ; jump to first matching tag -try ; execute commands, abort on error or exception -tselect ; list matching tags and select one -tunmenu ; remove menu tooltip -unabbreviate ; remove abbreviation -undo ; undo last change(s) -undojoin ; join next change with previous undo block -undolist ; list leafs of the undo tree -unhide ; open a window for each loaded file in the buffer list -unlet ; delete variable -unlockvar ; unlock variables -unmap ; remove mapping -unmenu ; remove menu -unsilent ; run a command not silently -update ; write buffer if modified -verbose ; execute command with 'verbose' set -version ; print version number and other info -vertical ; make following command split vertically -vglobal ; execute commands for not matching lines -view ; edit a file read-only -vimgrep ; search for pattern in files -vimgrepadd ; like vimgrep, but append to current list -visual ; same as "edit", but turns off "Ex" mode -viusage ; overview of Normal mode commands -vmap ; like "map" but for Visual+Select mode -vmapclear ; remove all mappings for Visual+Select mode -vmenu ; add menu for Visual+Select mode -vnew ; create a new empty window, vertically split -vnoremap ; like "noremap" but for Visual+Select mode -vnoremenu ; like "noremenu" but for Visual+Select mode -vsplit ; split current window vertically -vunmap ; like "unmap" but for Visual+Select mode -vunmenu ; remove menu for Visual+Select mode -wNext ; write to a file and go to previous file in argument list -wall ; write all (changed) buffers -while ; execute loop for as long as condition met -wincmd ; execute a Window (CTRL-W) command -windo ; execute command in each window -winpos ; get or set window position -winsize ; get or set window size (obsolete) -wnext ; write to a file and go to next file in argument list -wprevious ; write to a file and go to previous file in argument list -wqall ; write all changed buffers and quit Vim -write ; write to a file -wsverb ; pass the verb to workshop over IPC -wviminfo ; write to viminfo file -xall ; same as "wqall" -xit ; write if buffer changed and quit window or Vim -xmap ; like "map" but for Visual mode -xmapclear ; remove all mappings for Visual mode -xmenu ; add menu for Visual mode -xnoremap ; like "noremap" but for Visual mode -xnoremenu ; like "noremenu" but for Visual mode -xunmap ; like "unmap" but for Visual mode -xunmenu ; remove menu for Visual mode -yank ; yank lines into a register diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/features.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/features.dict deleted file mode 100644 index d76359e..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/features.dict +++ /dev/null @@ -1,153 +0,0 @@ -all_builtin_terms ; Compiled with all builtin terminals enabled. -amiga ; Amiga version of Vim. -arabic ; Compiled with Arabic support |Arabic|. -arp ; Compiled with ARP support (Amiga). -autocmd ; Compiled with autocommand support. |autocommand| -balloon_eval ; Compiled with |balloon-eval| support. -balloon_multiline ; GUI supports multiline balloons. -beos ; BeOS version of Vim. -browse ; Compiled with |:browse| support, and browse() will work. -builtin_terms ; Compiled with some builtin terminals. -byte_offset ; Compiled with support for 'o' in 'statusline' -cindent ; Compiled with 'cindent' support. -clientserver ; Compiled with remote invocation support |clientserver|. -clipboard ; Compiled with 'clipboard' support. -cmdline_compl ; Compiled with |cmdline-completion| support. -cmdline_hist ; Compiled with |cmdline-history| support. -cmdline_info ; Compiled with 'showcmd' and 'ruler' support. -comments ; Compiled with |'comments'| support. -compatible ; Compiled to be very Vi compatible. -cryptv ; Compiled with encryption support |encryption|. -cscope ; Compiled with |cscope| support. -debug ; Compiled with "DEBUG" defined. -dialog_con ; Compiled with console dialog support. -dialog_gui ; Compiled with GUI dialog support. -diff ; Compiled with |vimdiff| and 'diff' support. -digraphs ; Compiled with support for digraphs. -dnd ; Compiled with support for the "~ register |quote_~|. -dos16 ; 16 bits DOS version of Vim. -dos32 ; 32 bits DOS (DJGPP) version of Vim. -ebcdic ; Compiled on a machine with ebcdic character set. -emacs_tags ; Compiled with support for Emacs tags. -eval ; Compiled with expression evaluation support. Always true, of course! -ex_extra ; Compiled with extra Ex commands |+ex_extra|. -extra_search ; Compiled with support for |'incsearch'| and |'hlsearch'| -farsi ; Compiled with Farsi support |farsi|. -file_in_path ; Compiled with support for |gf| and || -filterpipe ; When 'shelltemp' is off pipes are used for shell read/write/filter commands -find_in_path ; Compiled with support for include file searches |+find_in_path|. -float ; Compiled with support for |Float|. -fname_case ; Case in file names matters (for Amiga, MS-DOS, and Windows this is not present). -folding ; Compiled with |folding| support. -footer ; Compiled with GUI footer support. |gui-footer| -fork ; Compiled to use fork()/exec() instead of system(). -gettext ; Compiled with message translation |multi-lang| -gui ; Compiled with GUI enabled. -gui_athena ; Compiled with Athena GUI. -gui_gnome ; Compiled with Gnome support (gui_gtk is also defined). -gui_gtk ; Compiled with GTK+ GUI (any version). -gui_gtk2 ; Compiled with GTK+ 2 GUI (gui_gtk is also defined). -gui_mac ; Compiled with Macintosh GUI. -gui_motif ; Compiled with Motif GUI. -gui_photon ; Compiled with Photon GUI. -gui_running ; Vim is running in the GUI, or it will start soon. -gui_win32 ; Compiled with MS Windows Win32 GUI. -gui_win32s ; idem, and Win32s system being used (Windows 3.1) -hangul_input ; Compiled with Hangul input support. |hangul| -iconv ; Can use iconv() for conversion. -insert_expand ; Compiled with support for CTRL-X expansion commands in Insert mode. -jumplist ; Compiled with |jumplist| support. -keymap ; Compiled with 'keymap' support. -langmap ; Compiled with 'langmap' support. -libcall ; Compiled with |libcall()| support. -linebreak ; Compiled with 'linebreak', 'breakat' and 'showbreak' support. -lispindent ; Compiled with support for lisp indenting. -listcmds ; Compiled with commands for the buffer list |:files| and the argument list |arglist|. -localmap ; Compiled with local mappings and abbr. |:map-local| -lua ; Compiled with Lua interface |Lua|. -mac ; Macintosh version of Vim. -macunix ; Macintosh version of Vim, using Unix files (OS-X). -menu ; Compiled with support for |:menu|. -mksession ; Compiled with support for |:mksession|. -modify_fname ; Compiled with file name modifiers. |filename-modifiers| -mouse ; Compiled with support mouse. -mouse_dec ; Compiled with support for Dec terminal mouse. -mouse_gpm ; Compiled with support for gpm (Linux console mouse) -mouse_netterm ; Compiled with support for netterm mouse. -mouse_pterm ; Compiled with support for qnx pterm mouse. -mouse_sysmouse ; Compiled with support for sysmouse (*BSD console mouse) -mouse_xterm ; Compiled with support for xterm mouse. -mouseshape ; Compiled with support for 'mouseshape'. -multi_byte ; Compiled with support for 'encoding' -multi_byte_encoding ; 'encoding' is set to a multi-byte encoding. -multi_byte_ime ; Compiled with support for IME input method. -multi_lang ; Compiled with support for multiple languages. -mzscheme ; Compiled with MzScheme interface |mzscheme|. -netbeans_enabled ; Compiled with support for |netbeans| and it's used. -netbeans_intg ; Compiled with support for |netbeans|. -ole ; Compiled with OLE automation support for Win32. -os2 ; OS/2 version of Vim. -osfiletype ; Compiled with support for osfiletypes |+osfiletype| -path_extra ; Compiled with up/downwards search in 'path' and 'tags' -perl ; Compiled with Perl interface. -persistent_undo ; Compiled with support for persistent undo history. -postscript ; Compiled with PostScript file printing. -printer ; Compiled with |:hardcopy| support. -profile ; Compiled with |:profile| support. -python ; Compiled with Python interface. -python3 ; Compiled with Python3 interface. -qnx ; QNX version of Vim. -quickfix ; Compiled with |quickfix| support. -reltime ; Compiled with |reltime()| support. -rightleft ; Compiled with 'rightleft' support. -ruby ; Compiled with Ruby interface |ruby|. -scrollbind ; Compiled with 'scrollbind' support. -showcmd ; Compiled with 'showcmd' support. -signs ; Compiled with |:sign| support. -smartindent ; Compiled with 'smartindent' support. -sniff ; Compiled with SNiFF interface support. -spell ; Compiled with spell checking support |spell|. -statusline ; Compiled with |--startuptime| support. -sun_workshop ; Compiled with support for Sun |workshop|. -syntax ; Compiled with syntax highlighting support |syntax|. -syntax_items ; There are active syntax highlighting items for the current buffer. -system ; Compiled to use system() instead of fork()/exec(). -tag_any_white ; Compiled with support for any white characters in tags files |tag-any-white|. -tag_binary ; Compiled with binary searching in tags files |tag-binary-search|. -tag_old_static ; Compiled with support for old static tags |tag-old-static|. -tcl ; Compiled with Tcl interface. -terminfo ; Compiled with terminfo instead of termcap. -termresponse ; Compiled with support for |t_RV| and |v:termresponse|. -textobjects ; Compiled with support for |text-objects|. -tgetent ; Compiled with tgetent support, able to use a termcap or terminfo file. -title ; Compiled with window title support |'title'|. -toolbar ; Compiled with support for |gui-toolbar|. -unix ; Unix version of Vim. -unnamedplus ; Usable '+' register instead of '*' register. -user_commands ; User-defined commands. -vertsplit ; Compiled with vertically split windows |:vsplit|. -vim_starting ; True while initial source'ing takes place. -viminfo ; Compiled with viminfo support. -virtualedit ; Compiled with 'virtualedit' option. -visual ; Compiled with Visual mode. -visualextra ; Compiled with extra Visual mode commands. -vms ; VMS version of Vim. -vreplace ; Compiled with |gR| and |gr| commands. -wildignore ; Compiled with 'wildignore' option. -wildmenu ; Compiled with 'wildmenu' option. -win16 ; Win16 version of Vim (MS-Windows 3.1). -win32 ; Win32 version of Vim (MS-Windows 95/98/ME/NT/2000/XP). -win32unix ; Win32 version of Vim, using Unix files (Cygwin) -win64 ; Win64 version of Vim (MS-Windows 64 bit). -win95 ; Win32 version for MS-Windows 95/98/ME. -winaltkeys ; Compiled with 'winaltkeys' option. -windows ; Compiled with support for more than one window. -writebackup ; Compiled with 'writebackup' default on. -x11 ; Compiled with X11 support. -xfontset ; Compiled with X fontset support |xfontset|. -xim ; Compiled with X input method support |xim|. -xpm_w32 ; Compiled with pixmap support for Win32. -xsmp ; Compiled with X session management support. -xsmp_interact ; Compiled with interactive X session management support. -xterm_clipboard ; Compiled with support for xterm clipboard. -xterm_save ; Compiled with support for saving and restoring the xterm screen. diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/functions.dict b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/functions.dict deleted file mode 100644 index 3a3d798..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/functions.dict +++ /dev/null @@ -1,252 +0,0 @@ -abs({expr}) -acos({expr}) -add({list}, {item}) -append({lnum}, {list}) -append({lnum}, {string}) -argc() -argidx() -argv() -argv({nr}) -asin({expr}) -atan({expr}) -atan2({expr1}, {expr2}) -browse({save}, {title}, {initdir}, {default}) -browsedir({title}, {initdir}) -bufexists({expr}) -buflisted({expr}) -bufloaded({expr}) -bufname({expr}) -bufnr({expr}) -bufwinnr({expr}) -byte2line({byte}) -byteidx({expr}, {nr}) -call({func}, {arglist} [, {dict}]) -ceil({expr}) -changenr() -char2nr({expr}) -cindent({lnum}) -clearmatches() -col({expr}) -complete({startcol}, {matches}) -complete_add({expr}) -complete_check() -confirm({msg} [, {choices} [, {default} [, {type}]]]) -copy({expr}) -cos({expr}) -cosh({expr}) -count({list}, {expr} [, {start} [, {ic}]]) -cscope_connection([{num} , {dbpath} [, {prepend}]]) -cursor({list}) -cursor({lnum}, {col} [, {coladd}]) -deepcopy({expr}) -delete({fname}) -did_filetype() -diff_filler({lnum}) -diff_hlID({lnum}, {col}) -empty({expr}) -escape({string}, {chars}) -eval({string}) -eventhandler() -executable({expr}) -exists({expr}) -exp({expr}) -expand({expr} [, {flag}]) -extend({expr1}, {expr2} [, {expr3}]) -feedkeys({string} [, {mode}]) -filereadable({file}) -filewritable({file}) -filter({expr}, {string}) -finddir({name}[, {path}[, {count}]]) -findfile({name}[, {path}[, {count}]]) -float2nr({expr}) -floor({expr}) -fmod({expr1}, {expr2}) -fnameescape({fname}) -fnamemodify({fname}, {mods}) -foldclosed({lnum}) -foldclosedend({lnum}) -foldlevel({lnum}) -foldtext() -foldtextresult({lnum}) -foreground() -function({name}) -garbagecollect([at_exit]) -get({dict}, {key} [, {def}]) -get({list}, {idx} [, {def}]) -getbufline({expr}, {lnum} [, {end}]) -getbufvar({expr}, {varname}) -getchar([expr]) -getcharmod() -getcmdline() -getcmdpos() -getcmdtype() -getcwd() -getfontname([{name}]) -getfperm({fname}) -getfsize({fname}) -getftime({fname}) -getftype({fname}) -getline({lnum}) -getline({lnum}, {end}) -getloclist({nr}) -getmatches() -getpid() -getpos({expr}) -getqflist() -getreg([{regname} [, 1]]) -getregtype([{regname}]) -gettabvar({tabnr}, {varname}) -gettabwinvar({tabnr}, {winnr}, {name}) -getwinposx() -getwinposy() -getwinvar({nr}, {varname}) -glob({expr} [, {flag}]) -globpath({path}, {expr} [, {flag}]) -has({feature}) -has_key({dict}, {key}) -haslocaldir() -hasmapto({what} [, {mode} [, {abbr}]]) -histadd({history},{item}) -histdel({history} [, {item}]) -histget({history} [, {index}]) -histnr({history}) -hlID({name}) -hlexists({name}) -hostname() -iconv({expr}, {from}, {to}) -indent({lnum}) -index({list}, {expr} [, {start} [, {ic}]]) -input({prompt} [, {text} [, {completion}]]) -inputdialog({p} [, {t} [, {c}]]) -inputlist({textlist}) -inputrestore() -inputsave() -inputsecret({prompt} [, {text}]) -insert({list}, {item} [, {idx}]) -isdirectory({directory}) -islocked({expr}) -items({dict}) -join({list} [, {sep}]) -keys({dict}) -len({expr}) -libcall({lib}, {func}, {arg}) -libcallnr({lib}, {func}, {arg}) -line({expr}) -line2byte({lnum}) -lispindent({lnum}) -localtime() -log({expr}) -log10({expr}) -map({expr}, {string}) -maparg({name}[, {mode} [, {abbr}]]) -mapcheck({name}[, {mode} [, {abbr}]]) -match({expr}, {pat}[, {start}[, {count}]]) -matchadd({group}, {pattern}[, {priority}[, {id}]]) -matcharg({nr}) -matchdelete({id}) -matchend({expr}, {pat}[, {start}[, {count}]]) -matchlist({expr}, {pat}[, {start}[, {count}]]) -matchstr({expr}, {pat}[, {start}[, {count}]]) -max({list}) -min({list}) -mkdir({name} [, {path} [, {prot}]]) -mode([expr]) -nextnonblank({lnum}) -nr2char({expr}) -pathshorten({expr}) -pow({x}, {y}) -prevnonblank({lnum}) -printf({fmt}, {expr1}...) -pumvisible() -range({expr} [, {max} [, {stride}]]) -readfile({fname} [, {binary} [, {max}]]) -reltime([{start} [, {end}]]) -reltimestr({time}) -remote_expr({server}, {string} [, {idvar}]) -remote_foreground({server}) -remote_peek({serverid} [, {retvar}]) -remote_read({serverid}) -remote_send({server}, {string} [, {idvar}]) -remove({dict}, {key}) -remove({list}, {idx} [, {end}]) -rename({from}, {to}) -repeat({expr}, {count}) -resolve({filename}) -reverse({list}) -round({expr}) -search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) -searchdecl({name} [, {global} [, {thisblock}]]) -searchpair({start}, {middle}, {end} [, {flags} [, {skip} [...]]]) -searchpairpos({start}, {middle}, {end} [, {flags} [, {skip} [...]]]) -searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]]) -server2client({clientid}, {string}) -serverlist() -setbufvar({expr}, {varname}, {val}) -setcmdpos({pos}) -setline({lnum}, {line}) -setloclist({nr}, {list}[, {action}]) -setmatches({list}) -setpos({expr}, {list}) -setqflist({list}[, {action}]) -setreg({n}, {v}[, {opt}]) -settabvar({tabnr}, {varname}, {val}) -settabwinvar({tabnr}, {winnr}, {varname}, {val}) -setwinvar({nr}, {varname}, {val}) -shellescape({string} [, {special}]) -simplify({filename}) -sin({expr}) -sinh({expr}) -sort({list} [, {func}]) -soundfold({word}) -spellbadword() -spellsuggest({word} [, {max} [, {capital}]]) -split({expr} [, {pat} [, {keepempty}]]) -sqrt({expr}) -str2float({expr}) -str2nr({expr} [, {base}]) -strchars({expr}) -strdisplaywidth({expr}[, {col}]) -strftime({format}[, {time}]) -stridx({haystack}, {needle}[, {start}]) -string({expr}) -strlen({expr}) -strpart({src}, {start}[, {len}]) -strridx({haystack}, {needle} [, {start}]) -strtrans({expr}) -strwidth({expr}) -submatch({nr}) -substitute({expr}, {pat}, {sub}, {flags}) -synID({lnum}, {col}, {trans}) -synIDattr({synID}, {what} [, {mode}]) -synIDtrans({synID}) -synconcealed({lnum}, {col}) -synstack({lnum}, {col}) -system({expr} [, {input}]) -tabpagebuflist([{arg}]) -tabpagenr([{arg}]) -tabpagewinnr({tabarg}[, {arg}]) -tagfiles() -taglist({expr}) -tan({expr}) -tanh({expr}) -tempname() -tolower({expr}) -toupper({expr}) -tr({src}, {fromstr}, {tostr}) -trunc({expr} -type({name}) -undofile({name}) -undotree() -values({dict}) -virtcol({expr}) -visualmode([expr]) -winbufnr({nr}) -wincol() -winheight({nr}) -winline() -winnr([{expr}]) -winrestcmd() -winrestview({dict}) -winsaveview() -winwidth({nr}) -writefile({list}, {fname} [, {binary}]) diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/helper.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/helper.vim deleted file mode 100644 index 9cd4cb3..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/autoload/neocomplcache/sources/vim_complete/helper.vim +++ /dev/null @@ -1,964 +0,0 @@ -"============================================================================= -" FILE: helper.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 24 Apr 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -if !exists('s:internal_candidates_list') - let s:internal_candidates_list = {} - let s:global_candidates_list = { 'dictionary_variables' : {} } - let s:script_candidates_list = {} - let s:local_candidates_list = {} -endif - -function! neocomplcache#sources#vim_complete#helper#on_filetype() "{{{ - " Caching script candidates. - let bufnumber = 1 - - " Check buffer. - while bufnumber <= bufnr('$') - if getbufvar(bufnumber, '&filetype') == 'vim' && bufloaded(bufnumber) - \&& !has_key(s:script_candidates_list, bufnumber) - let s:script_candidates_list[bufnumber] = s:get_script_candidates(bufnumber) - endif - - let bufnumber += 1 - endwhile - - if neocomplcache#exists_echodoc() - call echodoc#register('vim_complete', s:doc_dict) - endif -endfunction"}}} - -function! neocomplcache#sources#vim_complete#helper#recaching(bufname) "{{{ - " Caching script candidates. - let bufnumber = a:bufname != '' ? bufnr(a:bufname) : bufnr('%') - - if getbufvar(bufnumber, '&filetype') == 'vim' && bufloaded(bufnumber) - let s:script_candidates_list[bufnumber] = s:get_script_candidates(bufnumber) - endif - let s:global_candidates_list = { 'dictionary_variables' : {} } -endfunction"}}} - -" For echodoc. "{{{ -let s:doc_dict = { - \ 'name' : 'vim_complete', - \ 'rank' : 10, - \ 'filetypes' : { 'vim' : 1 }, - \ } -function! s:doc_dict.search(cur_text) "{{{ - let cur_text = a:cur_text - - " Echo prototype. - let script_candidates_list = s:get_cached_script_candidates() - - let prototype_name = matchstr(cur_text, - \'\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\s*(\ze\%([^(]\|(.\{-})\)*$') - let ret = [] - if prototype_name != '' - if !has_key(s:internal_candidates_list, 'function_prototypes') - " No cache. - return [] - endif - - " Search function name. - call add(ret, { 'text' : prototype_name, 'highlight' : 'Identifier' }) - if has_key(s:internal_candidates_list.function_prototypes, prototype_name) - call add(ret, { 'text' : s:internal_candidates_list.function_prototypes[prototype_name] }) - elseif has_key(s:global_candidates_list.function_prototypes, prototype_name) - call add(ret, { 'text' : s:global_candidates_list.function_prototypes[prototype_name] }) - elseif has_key(script_candidates_list.function_prototypes, prototype_name) - call add(ret, { 'text' : script_candidates_list.function_prototypes[prototype_name] }) - else - " No prototypes. - return [] - endif - else - if !has_key(s:internal_candidates_list, 'command_prototypes') - " No cache. - return [] - endif - - " Search command name. - " Skip head digits. - let prototype_name = neocomplcache#sources#vim_complete#get_command(cur_text) - call add(ret, { 'text' : prototype_name, 'highlight' : 'Statement' }) - if has_key(s:internal_candidates_list.command_prototypes, prototype_name) - call add(ret, { 'text' : s:internal_candidates_list.command_prototypes[prototype_name] }) - elseif has_key(s:global_candidates_list.command_prototypes, prototype_name) - call add(ret, { 'text' : s:global_candidates_list.command_prototypes[prototype_name] }) - else - " No prototypes. - return [] - endif - endif - - return ret -endfunction"}}} -"}}} - -function! neocomplcache#sources#vim_complete#helper#get_command_completion(command_name, cur_text, complete_str) "{{{ - let completion_name = - \ neocomplcache#sources#vim_complete#helper#get_completion_name(a:command_name) - if completion_name == '' - " Not found. - return [] - endif - - let args = (completion_name ==# 'custom' || completion_name ==# 'customlist')? - \ [a:command_name, a:cur_text, a:complete_str] : [a:cur_text, a:complete_str] - return call('neocomplcache#sources#vim_complete#helper#'.completion_name, args) -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#get_completion_name(command_name) "{{{ - if !has_key(s:internal_candidates_list, 'command_completions') - let s:internal_candidates_list.command_completions = - \ s:caching_completion_from_dict('command_completions') - endif - if !has_key(s:global_candidates_list, 'command_completions') - let s:global_candidates_list.commands = - \ neocomplcache#pack_dictionary(s:get_cmdlist()) - endif - - if has_key(s:internal_candidates_list.command_completions, a:command_name) - \&& exists('*neocomplcache#sources#vim_complete#helper#' - \ .s:internal_candidates_list.command_completions[a:command_name]) - return s:internal_candidates_list.command_completions[a:command_name] - elseif has_key(s:global_candidates_list.command_completions, a:command_name) - \&& exists('*neocomplcache#sources#vim_complete#helper#' - \ .s:global_candidates_list.command_completions[a:command_name]) - return s:global_candidates_list.command_completions[a:command_name] - else - return '' - endif -endfunction"}}} - -function! neocomplcache#sources#vim_complete#helper#autocmd_args(cur_text, complete_str) "{{{ - let args = s:split_args(a:cur_text, a:complete_str) - if len(args) < 2 - return [] - endif - - " Caching. - if !has_key(s:global_candidates_list, 'augroups') - let s:global_candidates_list.augroups = s:get_augrouplist() - endif - if !has_key(s:internal_candidates_list, 'autocmds') - let s:internal_candidates_list.autocmds = s:caching_from_dict('autocmds', '') - endif - - let list = [] - if len(args) == 2 - let list += s:global_candidates_list.augroups + s:internal_candidates_list.autocmds - elseif len(args) == 3 - if args[1] ==# 'FileType' - " Filetype completion. - let list += neocomplcache#sources#vim_complete#helper#filetype(a:cur_text, a:complete_str) - endif - - let list += s:internal_candidates_list.autocmds - elseif len(args) == 4 - if args[2] ==# 'FileType' - " Filetype completion. - let list += neocomplcache#sources#vim_complete#helper#filetype( - \ a:cur_text, a:complete_str) - endif - - let list += neocomplcache#sources#vim_complete#helper#command( - \ args[3], a:complete_str) - let list += s:make_completion_list(['nested'], '') - else - let command = args[3] =~ '^*' ? - \ join(args[4:]) : join(args[3:]) - let list += neocomplcache#sources#vim_complete#helper#command( - \ command, a:complete_str) - let list += s:make_completion_list(['nested'], '') - endif - - return list -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#augroup(cur_text, complete_str) "{{{ - " Caching. - if !has_key(s:global_candidates_list, 'augroups') - let s:global_candidates_list.augroups = s:get_augrouplist() - endif - - return s:global_candidates_list.augroups -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#buffer(cur_text, complete_str) "{{{ - return [] -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#colorscheme_args(cur_text, complete_str) "{{{ - return s:make_completion_list(filter(map(split( - \ globpath(&runtimepath, 'colors/*.vim'), '\n'), - \ 'fnamemodify(v:val, ":t:r")'), - \ 'stridx(v:val, a:complete_str) == 0'), '') -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#command(cur_text, complete_str) "{{{ - if a:cur_text == '' || - \ a:cur_text =~ '^[[:digit:],[:space:][:tab:]$''<>]*\h\w*$' - " Commands. - - " Caching. - if !has_key(s:global_candidates_list, 'commands') - let s:global_candidates_list.commands = - \ neocomplcache#pack_dictionary(s:get_cmdlist()) - endif - if !has_key(s:internal_candidates_list, 'commands') - let s:internal_candidates_list.command_prototypes = - \ s:caching_prototype_from_dict('command_prototypes') - let commands = s:caching_from_dict('commands', 'c') - for command in commands - if has_key(s:internal_candidates_list.command_prototypes, command.word) - let command.description = command.word . - \ s:internal_candidates_list.command_prototypes[command.word] - endif - endfor - - let s:internal_candidates_list.commands = - \ neocomplcache#pack_dictionary(commands) - endif - - " echomsg string(s:internal_candidates_list.commands)[: 1000] - " echomsg string(s:global_candidates_list.commands)[: 1000] - let list = neocomplcache#dictionary_filter( - \ s:internal_candidates_list.commands, a:complete_str) - \ + neocomplcache#dictionary_filter( - \ s:global_candidates_list.commands, a:complete_str) - else - " Commands args. - let command = neocomplcache#sources#vim_complete#get_command(a:cur_text) - let completion_name = - \ neocomplcache#sources#vim_complete#helper#get_completion_name(command) - - " Prevent infinite loop. - let cur_text = completion_name ==# 'command' ? - \ a:cur_text[len(command):] : a:cur_text - - let list = neocomplcache#sources#vim_complete#helper#get_command_completion( - \ command, cur_text, a:complete_str) - - if a:cur_text =~ - \'[[(,{]\|`=[^`]*$' - " Expression. - let list += neocomplcache#sources#vim_complete#helper#expression( - \ a:cur_text, a:complete_str) - endif - endif - - return list -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#command_args(cur_text, complete_str) "{{{ - " Caching. - if !has_key(s:internal_candidates_list, 'command_args') - let s:internal_candidates_list.command_args = - \ s:caching_from_dict('command_args', '') - let s:internal_candidates_list.command_replaces = - \ s:caching_from_dict('command_replaces', '') - endif - - return s:internal_candidates_list.command_args + - \ s:internal_candidates_list.command_replaces -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#custom(command_name, cur_text, complete_str) "{{{ - if !has_key(g:neocomplcache_vim_completefuncs, a:command_name) - return [] - endif - - return s:make_completion_list(split( - \ call(g:neocomplcache_vim_completefuncs[a:command_name], - \ [a:complete_str, getline('.'), len(a:cur_text)]), '\n'), '') -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#customlist(command_name, cur_text, complete_str) "{{{ - if !has_key(g:neocomplcache_vim_completefuncs, a:command_name) - return [] - endif - - return s:make_completion_list( - \ call(g:neocomplcache_vim_completefuncs[a:command_name], - \ [a:complete_str, getline('.'), len(a:cur_text)]), '') -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#dir(cur_text, complete_str) "{{{ - return filter(neocomplcache#sources#filename_complete#get_complete_words( - \ a:complete_str, '.'), 'isdirectory(v:val.word)') -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#environment(cur_text, complete_str) "{{{ - " Caching. - if !has_key(s:global_candidates_list, 'environments') - let s:global_candidates_list.environments = s:get_envlist() - endif - - return s:global_candidates_list.environments -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#event(cur_text, complete_str) "{{{ - return [] -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#execute(cur_text, complete_str) "{{{ - if a:cur_text =~ '["''][^"'']*$' - let command = matchstr(a:cur_text, '["'']\zs[^"'']*$') - return neocomplcache#sources#vim_complete#helper#command(command, a:complete_str) - else - return neocomplcache#sources#vim_complete#helper#expression(a:cur_text, a:complete_str) - endif -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#expression(cur_text, complete_str) "{{{ - return neocomplcache#sources#vim_complete#helper#function(a:cur_text, a:complete_str) - \+ neocomplcache#sources#vim_complete#helper#var(a:cur_text, a:complete_str) -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#feature(cur_text, complete_str) "{{{ - if !has_key(s:internal_candidates_list, 'features') - let s:internal_candidates_list.features = s:caching_from_dict('features', '') - endif - return s:internal_candidates_list.features -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#file(cur_text, complete_str) "{{{ - return neocomplcache#sources#filename_complete#get_complete_words( - \ a:complete_str, '.') -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#filetype(cur_text, complete_str) "{{{ - if !has_key(s:internal_candidates_list, 'filetypes') - let s:internal_candidates_list.filetypes = - \ neocomplcache#pack_dictionary(s:make_completion_list(map( - \ split(globpath(&runtimepath, 'syntax/*.vim'), '\n') + - \ split(globpath(&runtimepath, 'indent/*.vim'), '\n') + - \ split(globpath(&runtimepath, 'ftplugin/*.vim'), '\n') - \ , "matchstr(fnamemodify(v:val, ':t:r'), '^[[:alnum:]-]*')"), '')) - endif - - return neocomplcache#dictionary_filter( - \ s:internal_candidates_list.filetypes, a:complete_str) -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#function(cur_text, complete_str) "{{{ - " Caching. - if !has_key(s:global_candidates_list, 'functions') - let s:global_candidates_list.functions = - \ neocomplcache#pack_dictionary(s:get_functionlist()) - endif - if !has_key(s:internal_candidates_list, 'functions') - let s:internal_candidates_list.function_prototypes = - \ s:caching_prototype_from_dict('functions') - - let functions = s:caching_from_dict('functions', 'f') - for function in functions - if has_key(s:internal_candidates_list.function_prototypes, function.word) - let function.description = function.word - \ . s:internal_candidates_list.function_prototypes[function.word] - endif - endfor - - let s:internal_candidates_list.functions = - \ neocomplcache#pack_dictionary(functions) - endif - - let script_candidates_list = s:get_cached_script_candidates() - if a:complete_str =~ '^s:' - let list = values(script_candidates_list.functions) - elseif a:complete_str =~ '^\a:' - let functions = deepcopy(values(script_candidates_list.functions)) - for keyword in functions - let keyword.word = '' . keyword.word[2:] - let keyword.abbr = '' . keyword.abbr[2:] - endfor - let list = functions - else - let list = neocomplcache#dictionary_filter( - \ s:internal_candidates_list.functions, a:complete_str) - \ + neocomplcache#dictionary_filter( - \ s:global_candidates_list.functions, a:complete_str) - endif - - return list -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#help(cur_text, complete_str) "{{{ - return [] -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#highlight(cur_text, complete_str) "{{{ - return [] -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#let(cur_text, complete_str) "{{{ - if a:cur_text !~ '=' - return neocomplcache#sources#vim_complete#helper#var(a:cur_text, a:complete_str) - elseif a:cur_text =~# '\' - let list += neocomplcache#sources#vim_complete#helper#expression(a:cur_text, a:complete_str) - elseif a:cur_text =~ ':\?' - let command = matchstr(a:cur_text, ':\?\zs.*$') - let list += neocomplcache#sources#vim_complete#helper#command(command, a:complete_str) - endif - - return list -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#menu(cur_text, complete_str) "{{{ - return [] -endfunction"}}} -function! neocomplcache#sources#vim_complete#helper#option(cur_text, complete_str) "{{{ - " Caching. - if !has_key(s:internal_candidates_list, 'options') - let s:internal_candidates_list.options = s:caching_from_dict('options', 'o') - - for keyword in deepcopy(s:internal_candidates_list.options) - let keyword.word = 'no' . keyword.word - let keyword.abbr = 'no' . keyword.abbr - call add(s:internal_candidates_list.options, keyword) - endfor - endif - - if a:cur_text =~ '\', '', '', '', - \ '', '', '', ''], '') -endfunction"}}} - -function! s:get_local_variables() "{{{ - " Get local variable list. - - let keyword_dict = {} - " Search function. - let line_num = line('.') - 1 - let end_line = (line('.') > 100) ? line('.') - 100 : 1 - while line_num >= end_line - let line = getline(line_num) - if line =~ '\' - break - elseif line =~ '\ 700 ? - \ s:script_candidates_list[bufnr('%')] : { - \ 'functions' : {}, 'variables' : {}, 'function_prototypes' : {}, 'dictionary_variables' : {} } -endfunction"}}} -function! s:get_script_candidates(bufnumber) "{{{ - " Get script candidate list. - - let function_dict = {} - let variable_dict = {} - let dictionary_variable_dict = {} - let function_prototypes = {} - let var_pattern = '\a:[[:alnum:]_:]*\.\h\w*\%(()\?\)\?' - - for line in getbufline(a:bufnumber, 1, '$') - if line =~ '\\?\|\h[[:alnum:]_:#\[]*\%([!\]]\+\|()\?\)\?\)' - let keyword_list = [] - for line in readfile(dict_files[0]) - call add(keyword_list, { - \ 'word' : substitute(matchstr( - \ line, keyword_pattern), '[\[\]]', '', 'g'), - \ 'kind' : a:kind, 'abbr' : line - \}) - endfor - - return keyword_list -endfunction"}}} -function! s:caching_completion_from_dict(dict_name) "{{{ - let dict_files = split(globpath(&runtimepath, - \ 'autoload/neocomplcache/sources/vim_complete/'.a:dict_name.'.dict'), '\n') - if empty(dict_files) - return {} - endif - - let keyword_dict = {} - for line in readfile(dict_files[0]) - let word = matchstr(line, '^[[:alnum:]_\[\]]\+') - let completion = matchstr(line[len(word):], '\h\w*') - if completion != '' - if word =~ '\[' - let [word_head, word_tail] = split(word, '\[') - let word_tail = ' ' . substitute(word_tail, '\]', '', '') - else - let word_head = word - let word_tail = ' ' - endif - - for i in range(len(word_tail)) - let keyword_dict[word_head . word_tail[1:i]] = completion - endfor - endif - endfor - - return keyword_dict -endfunction"}}} -function! s:caching_prototype_from_dict(dict_name) "{{{ - let dict_files = split(globpath(&runtimepath, - \ 'autoload/neocomplcache/sources/vim_complete/'.a:dict_name.'.dict'), '\n') - if empty(dict_files) - return {} - endif - if a:dict_name == 'functions' - let pattern = '^[[:alnum:]_]\+(' - else - let pattern = '^[[:alnum:]_\[\](]\+' - endif - - let keyword_dict = {} - for line in readfile(dict_files[0]) - let word = matchstr(line, pattern) - let rest = line[len(word):] - if word =~ '\[' - let [word_head, word_tail] = split(word, '\[') - let word_tail = ' ' . substitute(word_tail, '\]', '', '') - else - let word_head = word - let word_tail = ' ' - endif - - for i in range(len(word_tail)) - let keyword_dict[word_head . word_tail[1:i]] = rest - endfor - endfor - - return keyword_dict -endfunction"}}} - -function! s:get_cmdlist() "{{{ - " Get command list. - redir => redir - silent! command - redir END - - let keyword_list = [] - let completions = [ 'augroup', 'buffer', 'behave', - \ 'color', 'command', 'compiler', 'cscope', - \ 'dir', 'environment', 'event', 'expression', - \ 'file', 'file_in_path', 'filetype', 'function', - \ 'help', 'highlight', 'history', 'locale', - \ 'mapping', 'menu', 'option', 'shellcmd', 'sign', - \ 'syntax', 'tag', 'tag_listfiles', - \ 'var', 'custom', 'customlist' ] - let command_prototypes = {} - let command_completions = {} - for line in split(redir, '\n')[1:] - let word = matchstr(line, '\a\w*') - - " Analyze prototype. - let end = matchend(line, '\a\w*') - let args = matchstr(line, '[[:digit:]?+*]', end) - if args != '0' - let prototype = matchstr(line, '\a\w*', end) - let found = 0 - for comp in completions - if comp == prototype - let command_completions[word] = prototype - let found = 1 - - break - endif - endfor - - if !found - let prototype = 'arg' - endif - - if args == '*' - let prototype = '[' . prototype . '] ...' - elseif args == '?' - let prototype = '[' . prototype . ']' - elseif args == '+' - let prototype = prototype . ' ...' - endif - - let command_prototypes[word] = ' ' . repeat(' ', 16 - len(word)) . prototype - else - let command_prototypes[word] = '' - endif - let prototype = command_prototypes[word] - - call add(keyword_list, { - \ 'word' : word, 'abbr' : word . prototype, - \ 'description' : word . prototype, 'kind' : 'c' - \}) - endfor - let s:global_candidates_list.command_prototypes = command_prototypes - let s:global_candidates_list.command_completions = command_completions - - return keyword_list -endfunction"}}} -function! s:get_variablelist(dict, prefix) "{{{ - let kind_dict = ['0', '""', '()', '[]', '{}', '.'] - return values(map(copy(a:dict), "{ - \ 'word' : a:prefix.v:key, - \ 'kind' : kind_dict[type(v:val)], - \}")) -endfunction"}}} -function! s:get_functionlist() "{{{ - " Get function list. - redir => redir - silent! function - redir END - - let keyword_dict = {} - let function_prototypes = {} - for line in split(redir, '\n') - let line = line[9:] - if line =~ '^' - continue - endif - let orig_line = line - - let word = matchstr(line, '\h[[:alnum:]_:#.]*()\?') - if word != '' - let keyword_dict[word] = { - \ 'word' : word, 'abbr' : line, - \ 'description' : line, - \} - - let function_prototypes[word] = orig_line[len(word):] - endif - endfor - - let s:global_candidates_list.function_prototypes = function_prototypes - - return values(keyword_dict) -endfunction"}}} -function! s:get_augrouplist() "{{{ - " Get augroup list. - redir => redir - silent! augroup - redir END - - let keyword_list = [] - for group in split(redir . ' END', '\s\|\n') - call add(keyword_list, { 'word' : group }) - endfor - return keyword_list -endfunction"}}} -function! s:get_mappinglist() "{{{ - " Get mapping list. - redir => redir - silent! map - redir END - - let keyword_list = [] - for line in split(redir, '\n') - let map = matchstr(line, '^\a*\s*\zs\S\+') - if map !~ '^<' || map =~ '^' - continue - endif - call add(keyword_list, { 'word' : map }) - endfor - return keyword_list -endfunction"}}} -function! s:get_envlist() "{{{ - " Get environment variable list. - - let keyword_list = [] - for line in split(system('set'), '\n') - let word = '$' . toupper(matchstr(line, '^\h\w*')) - call add(keyword_list, { 'word' : word, 'kind' : 'e' }) - endfor - return keyword_list -endfunction"}}} -function! s:make_completion_list(list, kind) "{{{ - let list = [] - for item in a:list - call add(list, { 'word' : item, 'kind' : a:kind }) - endfor - - return list -endfunction"}}} -function! s:analyze_function_line(line, keyword_dict, prototype) "{{{ - " Get script function. - let line = substitute(matchstr(a:line, '\ ; the mapping will be effective in the current buffer only - ; the argument is an expression evaluated to obtain the {rhs} that is used - ; define a mapping which uses the "mapleader" variable - ; just like , except that it uses "maplocalleader" instead of "mapleader" - ; used for an internal mapping, which is not to be matched with any key sequence - -< - At the line 1 and 3, neocomplcache#get_context_filetype() is - "html" and at the line 2 it's "javascript", whilst at any - lines &filetype is "html". - - *neocomplcache#disable_default_dictionary()* -neocomplcache#disable_default_dictionary({variable-name}) - Disable default {variable-name} dictionary initialization. - Note: It must be called in .vimrc. -> - call neocomplcache#disable_default_dictionary( - \ 'g:neocomplcache_same_filetype_lists') -< ------------------------------------------------------------------------------- -KEY MAPPINGS *neocomplcache-key-mappings* - - *neocomplcache#start_manual_complete()* -neocomplcache#start_manual_complete([{sources}]) - Use this function on inoremap . The keymapping call the - completion of neocomplcache. When you rearrange the completion - of the Vim standard, you use it. - If you give {sources} argument, neocomplcache call {sources}. - {sources} is name of source or list of sources name. -> - inoremap neocomplcache#start_manual_complete() -< - *neocomplcache#manual_filename_complete()* - *neocomplcache#manual_omni_complete()* - Note: These functions are obsolete. - - *neocomplcache#close_popup()* -neocomplcache#close_popup() - Inset candidate and close popup menu for neocomplcache. -> - inoremap neocomplcache#close_popup() -< - *neocomplcache#cancel_popup()* -neocomplcache#cancel_popup() - cancel completion menu for neocomplcache. -> - inoremap neocomplcache#cancel_popup() -< - *neocomplcache#smart_close_popup()* -neocomplcache#smart_close_popup() - Inset candidate and close popup menu for neocomplcache. - Unlike|neocomplcache#close_popup()|, this function changes - behavior by|g:neocomplcache_enable_auto_select|smart. - Note: This mapping is conflicted with |SuperTab| or |endwise| - plugins. - - *neocomplcache#undo_completion()* -neocomplcache#undo_completion() - Use this function on inoremap . Undo inputted - candidate. Because there is not mechanism to cancel - candidate in Vim, it will be convenient when it inflects. -> - inoremap neocomplcache#undo_completion() -< - *neocomplcache#complete_common_string()* -neocomplcache#complete_common_string() - Use this function on inoremap . Complete common - string in candidates. It will be convenient when candidates - have long common string. -> - inoremap neocomplcache#complete_common_string() -< - *(neocomplcache_start_unite_complete)* -(neocomplcache_start_unite_complete) - Start completion with |unite|. - Note: Required unite.vim Latest ver.3.0 or above. - Note: In unite interface, uses partial match instead of head - match. - - *(neocomplcache_start_quick_match)* -(neocomplcache_start_unite_quick_match) - Start completion with |unite| and start quick match mode. - Note: Required unite.vim Latest ver.3.0 or above. - -============================================================================== -EXAMPLES *neocomplcache-examples* -> - "Note: This option must set it in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)! - " 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 - " Set minimum syntax keyword length. - let g:neocomplcache_min_syntax_length = 3 - let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*' - - " Enable heavy features. - " Use camel case completion. - "let g:neocomplcache_enable_camel_case_completion = 1 - " Use underbar completion. - "let g:neocomplcache_enable_underbar_completion = 1 - - " 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. - inoremap neocomplcache#undo_completion() - inoremap neocomplcache#complete_common_string() - - " Recommended key-mappings. - " : close popup and save indent. - inoremap =my_cr_function() - function! s:my_cr_function() - return neocomplcache#smart_close_popup() . "\" - " For no inserting key. - "return pumvisible() ? neocomplcache#close_popup() : "\" - endfunction - " : completion. - inoremap pumvisible() ? "\" : "\" - " , : close popup and delete backword char. - inoremap neocomplcache#smart_close_popup()."\" - inoremap neocomplcache#smart_close_popup()."\" - inoremap neocomplcache#close_popup() - inoremap neocomplcache#cancel_popup() - " Close popup by . - "inoremap pumvisible() ? neocomplcache#close_popup() : "\" - - " For cursor moving in insert mode(Not recommended) - "inoremap neocomplcache#close_popup() . "\" - "inoremap neocomplcache#close_popup() . "\" - "inoremap neocomplcache#close_popup() . "\" - "inoremap neocomplcache#close_popup() . "\" - " Or set this. - "let g:neocomplcache_enable_cursor_hold_i = 1 - " Or set this. - "let g:neocomplcache_enable_insert_char_pre = 1 - - " 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 pumvisible() ? "\" : "\\" - - " 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 - if !exists('g:neocomplcache_force_omni_patterns') - let g:neocomplcache_force_omni_patterns = {} - endif - let g:neocomplcache_omni_patterns.php = - \ '[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?' - let g:neocomplcache_omni_patterns.c = - \ '[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?' - let g:neocomplcache_omni_patterns.cpp = - \ '[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?' - - " For perlomni.vim setting. - " https://github.com/c9s/perlomni.vim - let g:neocomplcache_omni_patterns.perl = - \ '[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?' -< -============================================================================== -SOURCES *neocomplcache-sources* - -Neocomplcache reads automatically sources saved in an -autoload/neocomplcache/sources directory. - -buffer_complete.vim *buffer_complete* - This source collects keywords from buffer. - -member_complete.vim *member_complete* - This source collects use of member variables from buffer. - -tags_complete.vim *tags_complete* - This source analyzes a tag file from tagfiles() for completion. - When a huge tag file (above - |g:neocomplcache_tags_caching_limit_file_size|) is set, - neocomplcache does not make cache if you do not execute - |:NeoComplCacheCachingTags|command. Because tags_complete is - too slow if tags_complete read a big tags file. You should use - more convenient include completion now. - -syntax_complete.vim *syntax_complete* - This source analyzes a syntax file like - autoload/syntaxcomplete.vim offered by default, and to - add to candidate completion. The plugin can recognize - candidates a lot more than autoload/syntaxcomplete.vim. - -include_complete.vim *include_complete* - This source will add the file which an opening buffer - refers to to candidate. It is convenient, because you do - not need to prepare a tags file and a dictionary file. - But it is necessary for 'path' and 'include', - 'includeexpr' to be set adequately. - - Note: If you have vimproc installed, neocomplcache will cache - automatically. Otherwise it won't; please execute - |:NeoComplCacheCachingInclude| manually. - -vim_complete.vim *vim_complete* - This source analyzes context and start Omni completion of - Vim script. This plugin does not work other than editing - time of Vim script. I created it because neocomplcache - cannot call |i_CTRL-X_CTRL-V|. Local variable and a - script variable, a function and the analysis of the - command are implemented now. - -dictionary_complete.vim *dictionary_complete* - This source adds candidates from 'dictionary' or - |g:neocomplcache_dictionary_filetype_lists|. - -filename_complete.vim *filename_complete* - This source collects filename candidates. - -filename_include.vim *filename_include* - This source collects filename candidates. It is useful - when you input header file name. It recognizes include - pattern and include path like include_complete. - -omni_complete.vim *omni_complete* - This source calls 'omnifunc' automatically when cursor - text is matched with |g:neocomplcache_omni_patterns|. If - |g:neocomplcache_omni_function_list|is defined, - neocomplcache will give priority it. - Note: This source is not supported wildcard. - - -suffix of complete candidates in popup menu declaration. -(This will be good for user to know where candidate from and what it is.) - - filename_complete -> [F] {filename} - filename_include -> [FI] {filename} - dictionary_complete -> [D] {words} - member_complete -> [M] member - buffer_complete -> [B] {buffername} - syntax_complete -> [S] {syntax-keyword} - include_complete -> [I] - neosnippet -> [neosnip] - vim_complete -> [vim] type - omni_complete -> [O] - tags_complete -> [T] - other plugin sources -> [plugin-name-prefix] - other completefunc sources -> [plugin-name-prefix] - other ftplugin sources -> [plugin-name-prefix] - ------------------------------------------------------------------------------- -USER SOURCES *neocomplcache-user-sources* - -This section, introduce non default neocomplcache sources. - -neosnippet *neocomplcache-sources-neosnippet* - This source is for snippets completion. - Note: This source is not in default sources after - neocomplcache ver.7.0. - https://github.com/Shougo/neosnippet - -neco-ghc *neocomplcache-sources-neco-ghc* - https://github.com/ujihisa/neco-ghc - eagletmt originally implemented and now ujihisa is maintaining - this source. It completes a source file written in Haskell. - It requires ghc-mod . - -============================================================================== -FILTERS *neocomplcache-filters* - -To custom candidates, neocomplcache uses the filters. There are three kinds of -filters are available. "matcher" is to use filter candidates. "sorter" is to -use sort candidates. "converter" is to use candidates conversion. - -Note: "matcher" is not implemented. It will implemented in ver.8.1. - -Default sources are below. But you can create original filters(cf: -|neocomplcache-create-filter|) and set them by -|neocomplcache#custom_source()|. -> - call unite#custom_source('buffer_complete', 'converters', []) - - " Change default sorter. - call unite#custom_source('_', 'sorters', - \ ['sorter_length']) -< - *neocomplcache-filter-sorter_default* -Default sorters: ['sorter_rank']. - - *neocomplcache-filter-converter_default* -Default converters: ['converter_remove_next_keyword', - \ 'converter_delimiter', 'converter_case', 'converter_abbr']. - - *neocomplcache-filter-sorter_nothing* -sorter_nothing Nothing sorter. - - *neocomplcache-filter-sorter_rank* -sorter_rank Matched rank order sorter. The higher the matched word is - already selected or in current buffer - - *neocomplcache-filter-sorter_length* -sorter_length Candidates length order sorter. - - *neocomplcache-filter-converter_nothing* -converter_nothing - This converter is dummy. - - *neocomplcache-filter-converter_abbr* -converter_abbr - The converter which abbreviates a candidate's abbr. - - *neocomplcache-filter-converter_case* -converter_case - The converter which converts a candidate's word in text mode. - (cf: |g:neocomplcache_text_mode_filetypes|) - - *neocomplcache-filter-converter_delimiter* -converter_delimiter - The converter which abbreviates a candidate's delimiter. - (cf: |g:neocomplcache_delimiter_patterns|) - - *neocomplcache-filter-converter_remove_next_keyword* -converter_remove_next_keyword - The converter which removes matched next keyword part in a - candidate's word. - (cf: |g:neocomplcache_next_keyword_patterns|) - -============================================================================== -CREATE SOURCE *neocomplcache-create-source* - -In this clause, I comment on a method to make source of neocomplcache. The -ability of neocomplcache will spread by creating source by yourself. - -The files in autoload/neocomplcache/sources are automatically loaded and it -calls neocomplcache#sources#{source_name}#define() whose return value is the -source. Each return value can be a list so you can return an empty list to -avoid adding undesirable sources. To add your own sources dynamically, you -can use |neocomplcache#define_source()|. - ------------------------------------------------------------------------------- -SOURCE ATTRIBUTES *neocomplcache-source-attributes* - - *neocomplcache-source-attribute-name* -name String (Required) - The name of a source. It must consist of the - following characters: - - a-z - - 0-9 - - _ - - / - - - (Not head) - - *neocomplcache-source-attribute-kind* -kind String (Optional) - Source kind. - Following values are available. - "manual" : This source decides complete position - manually. - Note: "complfunc" or "ftplugin" are old - values. - "keyword" : This source decides complete position by - |g:neocomplcache_keyword_patterns|. - Note: "plugin" is old value. - - *neocomplcache-source-attribute-filetypes* -filetypes Dictionary (Optional) - Available filetype dictionary. - - For example: -> - let source = { - \ 'name' : 'test', - \ 'kind' : 'manual', - \ 'filetypes' : { 'vim' : 1, 'html' : 1 }, - \} -< - The source is available in vim and html filetypes. - - If you omit it, this source available in all - filetypes. - - - *neocomplcache-source-attribute-rank* -rank Number (Optional) - Source priority. - Note: You can set source priority by - |g:neocomplcache_source_rank|, but it is obsolete way. - - If you omit it, it is set below value. - If kind attribute is "keyword" : 5 - If filetype attribute is empty : 10 - Else : 100 - - *neocomplcache-source-attribute-min_pattern_length* -min_pattern_length - Number (Optional) - Required pattern length for completion. - - If you omit it, it is set below value. - If kind attribute is "keyword" : - |g:neocomplcache_auto_completion_start_length| - Else : 0 - - *neocomplcache-source-attribute-max_candidates* -max_candidates - Number (Optional) - The maximum number of candidates. - - This attribute is optional; if it is not given, - 0 is used as the default value. This means - maximum number is infinity. - - *neocomplcache-source-attribute-hooks* -hooks Dictionary (Optional) - You may put hook functions in this dictionary in which - the key is the position to hook and the value is the - reference to the function to be called. The following - hook functions are defined: - - *neocomplcache-source-attribute-hooks-on_init* - on_init - Called when initializing the source. - This function takes {context} as its parameters. - *neocomplcache-source-attribute-initialize* - Note initialize() attribute is obsolete interface for - initialization. - - *neocomplcache-source-attribute-hooks-on_final* - on_final - Called after executing |:NeoComplCacheDisable|. - This function takes {context} as its parameters. - *neocomplcache-source-attribute-finalize* - Note finalize() attribute is obsolete interface for - finalization. - - *neocomplcache-source-attribute-hooks-on_post_filter* - on_post_filter - Called after the filters to narrow down the - candidates. This is used to set attributes. This - filters is to avoid adversely affecting the - performance. - This function takes {context} as its parameters. - - *neocomplcache-source-attribute-get_complete_position* -get_complete_position Function (Optional) - This function takes {context} as its - parameter and returns complete position in current - line. - Here, {context} is the context information when the - source is called(|neocomplcache-notation-{context}|). - If you omit it, neocomplcache will use the position - using |g:neocomplcache_keyword_patterns|. - Note get_keyword_pos() is obsolete interface for - get complete position. - - *neocomplcache-source-attribute-gather_candidates* -gather_candidates Function (Required) - This function is called in gathering candidates. If - you enabled fuzzy completion by - |g:neocomplcache_enable_fuzzy_completion| , this - function is called whenever the input string is - changed. This function takes {context} as its - parameter and returns a list of {candidate}. - Here, {context} is the context information when the - source is called(|neocomplcache-notation-{context}|). - Note: get_complete_words() and get_keyword_list() are - obsolete interface for gather candidates. - Note: |neocomplcache-filters| feature is disabled for - compatibility in neocomplcache ver.8.0. You should use - new interface in neocomplcache ver.8.1. - -{context} *neocomplcache-notation-{context}* - A dictionary to give context information. - The followings are the primary information. - The global context information can be acquired - by |neocomplcache#get_context()|. - - input (String) - The input string of current line. - - complete_pos (Number) - The complete position of current source. - - complete_str (String) - The complete string of current source. - - source__{name} (Unknown) (Optional) - Additional source information. - Note: Recommend sources save - variables instead of s: variables. - ------------------------------------------------------------------------------- -CANDIDATE ATTRIBUTES *neocomplcache-candidate-attributes* - - *neocomplcache-candidate-attribute-name* -word String (Required) - The completion word of a candidate. It is used for - matching inputs. - - *neocomplcache-candidate-attribute-abbr* -abbr String (Optional) - The abbreviation of a candidate. It is displayed in - popup window. It is omitted by - |g:neocomplcache_max_keyword_width|. - - *neocomplcache-candidate-attribute-kind* -kind String (Optional) - The kind of a candidate. It is displayed in popup - window. - - *neocomplcache-candidate-attribute-menu* -menu String (Optional) - The menu information of a candidate. It is displayed - in popup window. - - *neocomplcache-candidate-attribute-info* -info String (Optional) - The preview information of a candidate. If - 'completeopt' contains "preview", it will be displayed - in |preview-window|. - - *neocomplcache-candidate-attribute-rank* -rank Number (Optional) - The completion priority. - - -CONTEXT *neocomplcache-context* - -============================================================================== -CREATE FILTER *neocomplcache-create-filter* - -The files in autoload/neocomplcache/filters are automatically loaded and it -calls neocomplcache#filters#{filter_name}#define() whose return value is the -filter. Each return value can be a list so you can return an empty list to -avoid adding undesirable filters. To add your own filters dynamically, you -can use |neocomplcache#define_filter()|. - ------------------------------------------------------------------------------- -FILTER ATTRIBUTES *neocomplcache-filter-attributes* - - - *neocomplcache-filter-attribute-name* -name String (Required) - The filter name. - - *neocomplcache-filter-attribute-filter* -filter Function (Required) - The filter function. This function takes {context} as - its parameter and returns a list of {candidate}. - The specification of the parameters and the returned - value is same as - |neocomplcache-source-attribute-gather_candidates|. - - *neocomplcache-filter-attribute-description* -description String (Optional) - The filter description string. - -============================================================================== -UNITE SOURCES *neocomplcache-unite-sources* - - *neocomplcache-unite-source-neocomplcache* -neocomplcache - Nominates neocomplcache completion candidates. The kind is - "completion". This source is used in - |(neocomplcache_start_unite_complete)|. -> - imap (neocomplcache_start_unite_complete) - imap (neocomplcache_start_unite_quick_match) -< -============================================================================== -FAQ *neocomplcache-faq* - -Q: My customization for neocomplcache is invalid. Why? - -A: User customization for neocomplcache must be set before initialization of -neocomplcache. For example: |neocomplcache#custom_source()| - -Q: Is there a way to control the colors used for popup menu using highlight -groups?: - -A: Like this: -> - highlight Pmenu ctermbg=8 guibg=#606060 - highlight PmenuSel ctermbg=1 guifg=#dddd00 guibg=#1f82cd - highlight PmenuSbar ctermbg=0 guibg=#d6d6d6 -< - -Q: Python (or Ruby) interface crashes Vim when I use neocomplcache or not -responding when input ".": - -A: This is not neocomplcache's issue. Please report to the maintainers of the -omnicomplete (rubycomplete or pythoncomplete) and its Vim interface. You -should disable omni_complete in python or ruby. -> - if !exists('g:neocomplcache_omni_patterns') - let g:neocomplcache_omni_patterns = {} - endif - let g:neocomplcache_omni_patterns.python = '' - let g:neocomplcache_omni_patterns.ruby = '' -< - -Q: I like moving cursor by cursor-keys. But neocomplcache popups menus... - -A: Please set this in your .vimrc. Note that this feature requires Vim 7.3.418 -or later. -> - let g:neocomplcache_enable_insert_char_pre = 1 -< - -Q: Where is snippets set for neocomplcache? - -A: https://github.com/Shougo/neosnippet - - -Q: How I can disable python omni complete of neocomplcache?: - -A: -> - if !exists('g:neocomplcache_omni_patterns') - let g:neocomplcache_omni_patterns = {} - endif - let g:neocomplcache_omni_patterns.python = '' -< - -Q: Can I enable quick match? : - -A: Quick match feature had been removed in latest neocomplcache -because quick match turned into hard to implement. -But you can use |unite.vim| instead to use quick match. -> - imap - pumvisible() ? - \ "\(neocomplcache_start_unite_quick_match)" : '-' -< - -Q: How can I change the order of candidates? : - -A: Todo. - -Q: An input problem occurred in using uim-skk or other IMEs: - -A: It may be fixed with setting |g:neocomplcache_enable_prefetch| as 1. - - -Q: include_complete does not work. - -A: include_complete depends on |vimproc|. I recommend you to install it. Also -you can check 'path' option or change |g:neocomplcache_include_paths|. - -http://github.com/Shougo/vimproc - - -Q: An error occurred in "sudo vim": - -A: neocomplcache does not support "sudo vim". Because neocomplcache (and other -plugins) creates temporary files in super user permission by sudo command. You -must use sudo.vim or set "Defaults always_set_home" in "/etc/sudoers", or must -use "sudoedit" command. - -Ubuntu has a command "sudoedit" which can work well with neocomplcache. -I'm not sure if other distros has this command... - -http://www.vim.org/scripts/script.php?script_id=729 - - -Q: Error occurred in ruby omni complete using |g:neocomplcache_omni_patterns|. -https://github.com/vim-ruby/vim-ruby/issues/95 - -A: Please set |g:neocomplcache_force_omni_patterns| instead of -|g:neocomplcache_omni_patterns|. - -Q: Does not work with clang_complete. - -A: Please try below settings. -> - if !exists('g:neocomplcache_force_omni_patterns') - let g:neocomplcache_force_omni_patterns = {} - endif - let g:neocomplcache_force_overwrite_completefunc = 1 - let g:neocomplcache_force_omni_patterns.c = - \ '[^.[:digit:] *\t]\%(\.\|->\)' - let g:neocomplcache_force_omni_patterns.cpp = - \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' - let g:neocomplcache_force_omni_patterns.objc = - \ '[^.[:digit:] *\t]\%(\.\|->\)' - let g:neocomplcache_force_omni_patterns.objcpp = - \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' - let g:clang_complete_auto = 0 - let g:clang_auto_select = 0 - "let g:clang_use_library = 1 -< - -Q: I want to support omni patterns for external plugins. - -A: You can add find some already found omni patterns and functions at here. - -Note: Some patterns are omitted here, (someone should check out those plugin's -source code's complete function, and find out the omni pattern). -> - " JavaScript (plugin: jscomplete-vim) - let g:neocomplcache_omni_functions.javascript = 'jscomplete#CompleteJS' - " Go (plugin: gocode) - let g:neocomplcache_omni_functions.go = 'gocomplete#Complete' - " Clojure (plugin: vim-clojure) - let g:neocomplcache_omni_functions.clojure = 'vimclojure#OmniCompletion' - " SQL - let g:neocomplcache_omni_functions.sql = 'sqlcomplete#Complete' - " R (plugin: vim-R-plugin) - let g:neocomplcache_omni_patterns.r = '[[:alnum:].\\]\+' - let g:neocomplcache_omni_functions.r = 'rcomplete#CompleteR' - " XQuery (plugin: XQuery-indentomnicomplete) - let g:neocomplcache_omni_patterns.xquery = '\k\|:\|\-\|&' - let g:neocomplcache_omni_functions.xquery = 'xquerycomplete#CompleteXQuery' -< - -Q: Does not indent when I input "else" in ruby filetype. - -A: - -You must install "vim-ruby" from github to indent in neocomplcache first. -https://github.com/vim-ruby/vim-ruby - -Neocomplcache pops up a completion window automatically, but if the popup -window is already visible, Vim cannot indent text. So you must choose "close -popup window manually by or mappings" or "close popup window by - user mappings". - -Q: mapping conflicts with |SuperTab| or |endwise| plugins. - -A: Please try below settings. -> - " : close popup and save indent. - inoremap =my_cr_function() - function! s:my_cr_function() - return neocomplcache#smart_close_popup() . "\" - " For no inserting key. - "return pumvisible() ? neocomplcache#close_popup() : "\" - endfunction -> -Q: No completion offered from "vim" buffers in "non-vim" buffers. - -A: It is feature. neocomplcache completes from same filetype buffers in -default. But you can completes from other filetype buffers using -|g:neocomplcache_same_filetype_lists|. - -Q: I want to complete from all buffers. - -A: |g:neocomplcache_same_filetype_lists| -> - let g:neocomplcache_same_filetype_lists = {} - let g:neocomplcache_same_filetype_lists._ = '_' -< - -Q: Suggestions are case insensitive in "gitcommit" buffers, but not -"javascript". - -A: This is g:neocomplcache_text_mode_filetypes feature. -You can disable it by following code. -> - if !exists('g:neocomplcache_text_mode_filetypes') - let g:neocomplcache_tags_filter_patterns = {} - endif - let g:neocomplcache_text_mode_filetypes.gitcommit = 0 -< -Q: Conflicts completefunc with other plugins in neocomplcache. - -A: You can disable the error by |g:neocomplcache_force_overwrite_completefunc| -variable to 1. - -Q: I want to use Ruby omni_complete. - -A: Please set |g:neocomplcache_force_omni_patterns|. But this completion is -heavy, so disabled by default. -Note: But you should use |neocomplcache-rsense| instead of rubycomplete. -https://github.com/Shougo/neocomplcache-rsense -> - autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete - if !exists('g:neocomplcache_force_omni_patterns') - let g:neocomplcache_force_omni_patterns = {} - endif - let g:neocomplcache_force_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::' -< -Q: I want to use jedi omni_complete. -https://github.com/davidhalter/jedi-vim - -A: Please set |g:neocomplcache_force_omni_patterns| as below. -> - autocmd FileType python setlocal omnifunc=jedi#complete - let g:jedi#auto_vim_configuration = 0 - let g:neocomplcache_force_omni_patterns.python = '[^. \t]\.\w*' -< -Q: Candidates are not found in heavy completion(neco-look, etc). - -A: It may be caused by skip completion. - - -Q: I want to disable skip completion. - -A: -> - let g:neocomplcache_skip_auto_completion_time = '' -< -Q: I want to initialize neocomplcache in .vimrc. - -A: Please call neocomplcache#initialize() in .vimrc. But this function slows -your Vim initialization. -> - call neocomplcache#initialize() -< -Q: neocomplcache conflicts when multibyte input in GVim. - -A: Because Vim multibyte IME integration is incomplete. -If you set |g:neocomplcache_lock_iminsert| is non-zero, it may be fixed. - -Q: Freeze for a while and close opened folding when I begin to insert. -https://github.com/Shougo/neocomplcache/issues/368 - -A: I think you use 'foldmethod' is "expr" or "syntax". It is too heavy to use -neocomplcache(or other auto completion). You should change 'foldmethod' -option. -Note: In current version, neocomplcache does not restore 'foldmethod'. Because -it is too heavy. - -Q: I want to use Pydiction with neocomplcache. - -A: You should set |g:neocomplcache_dictionary_filetype_lists|. -neocomplcache can load Pydiction dictionary file. - -Q: Why does neocomplcache use if_lua besides if_python? Many people may not be -able to use it because they do not have the root privilege to recompile vim. - -A: -Because of the following reasons. - 1. Python interface is not available on every Vim environment. For example, - Android, iOS, non configured Vim, or etc. - 2. Incompatibility between Python2 and Python3. I must rewrite for it. - 3. Loading Python interface is slow (10~20ms), but loading Lua interface is - absolutely fast (270ns). - 4. Python2 and Python3 are not loaded at the same time on Unix environment. - 5. Python itself is too large. - 6. Python interface is slower than Lua interface (almost twice.) - 7. Lua interface is stable (no crashes on latest Vim.) - 8. Using C module (like vimproc, YouCompleteMe) is hard to compile on Windows - environment. - 9. Using both Python and C, like YouCompleteMe, is too unstable. Your Vim may - crashes or causes mysterious errors. - 10. To build if_lua is easy. - 11. I think if_lua is the second level language in Vim (The first is Vim - script.) - -Q: I want to disable preview window. - -A: -> - set completeopt-=preview -< - -Q: I want to use "vim-lua-ftplugin". -https://github.com/xolox/vim-lua-ftplugin - -A: Please set |g:neocomplcache_omni_patterns| as below. -Note: You can not use "vim-lua-ftplugin" on 7.3.885 or below, -because if_lua has double-free problem. -> - let g:lua_check_syntax = 0 - let g:lua_complete_omni = 1 - let g:lua_complete_dynamic = 0 - - let g:neocomplcache_omni_functions.lua = - \ 'xolox#lua#omnifunc' - let g:neocomplcache_omni_patterns.lua = - \ '\w\+[.:]\|require\s*(\?["'']\w*' - " let g:neocomplcache_force_omni_patterns.lua = - " \ '\w\+[.:]\|require\s*(\?["'']\w*' -< - -Q: I want to use vim-nodejs-complete in neocomplcache. -A: -Note: This settings works but may heavy. -> - let g:neocomplcache_omni_functions.javascript = 'nodejscomplete#CompleteJS' - " Use jscomplete.vim - let g:nodejs_complete_config = { - \ 'js_compl_fn': 'jscomplete#CompleteJS', - \ 'max_node_compl_len': 15 - \} - let g:neocomplcache_omni_patterns.javascript = '\h\w*\|[^. \t]\.\w*' -< - -Q: neocomplcache closes DiffGitCached window from vim-fugitive -https://github.com/Shougo/neocomplcache.vim/issues/424 -A: -> - let g:neocomplcache_enable_auto_close_preview = 0 -< - -============================================================================== -TODO *neocomplcache-todo* - -============================================================================== -vim:tw=78:ts=8:ft=help:norl:noet:fen:noet: diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache.vim deleted file mode 100644 index 6181e84..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache.vim +++ /dev/null @@ -1,204 +0,0 @@ -"============================================================================= -" FILE: neocomplcache.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 11 Jul 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -" GetLatestVimScripts: 2620 1 :AutoInstall: neocomplcache -"============================================================================= - -if exists('g:loaded_neocomplcache') - finish -endif -let g:loaded_neocomplcache = 1 - -let s:save_cpo = &cpo -set cpo&vim - -if v:version < 702 - echohl Error - echomsg 'neocomplcache does not work this version of Vim (' . v:version . ').' - echohl None - finish -elseif $SUDO_USER != '' && $USER !=# $SUDO_USER - \ && $HOME !=# expand('~'.$USER) - \ && $HOME ==# expand('~'.$SUDO_USER) - echohl Error - echomsg 'neocomplcache disabled: "sudo vim" is detected and $HOME is set to ' - \.'your user''s home. ' - \.'You may want to use the sudo.vim plugin, the "-H" option ' - \.'with "sudo" or set always_set_home in /etc/sudoers instead.' - echohl None - finish -endif - -command! -nargs=0 -bar NeoComplCacheEnable - \ call neocomplcache#init#enable() -command! -nargs=0 -bar NeoComplCacheDisable - \ call neocomplcache#init#disable() -command! -nargs=0 -bar NeoComplCacheLock - \ call neocomplcache#commands#_lock() -command! -nargs=0 -bar NeoComplCacheUnlock - \ call neocomplcache#commands#_unlock() -command! -nargs=0 -bar NeoComplCacheToggle - \ call neocomplcache#commands#_toggle_lock() -command! -nargs=1 -bar NeoComplCacheLockSource - \ call neocomplcache#commands#_lock_source() -command! -nargs=1 -bar NeoComplCacheUnlockSource - \ call neocomplcache#commands#_unlock_source() -if v:version >= 703 - command! -nargs=1 -bar -complete=filetype NeoComplCacheSetFileType - \ call neocomplcache#commands#_set_file_type() -else - command! -nargs=1 -bar NeoComplCacheSetFileType - \ call neocomplcache#commands#_set_file_type() -endif -command! -nargs=0 -bar NeoComplCacheClean - \ call neocomplcache#commands#_clean() - -" Warning if using obsolute mappings. "{{{ -silent! inoremap (neocomplcache_snippets_expand) - \ :echoerr print_snippets_complete_error() -silent! snoremap (neocomplcache_snippets_expand) - \ ::echoerr print_snippets_complete_error() -silent! inoremap (neocomplcache_snippets_jump) - \ :echoerr print_snippets_complete_error() -silent! snoremap (neocomplcache_snippets_jump) - \ ::echoerr print_snippets_complete_error() -silent! inoremap (neocomplcache_snippets_force_expand) - \ :echoerr print_snippets_complete_error() -silent! snoremap (neocomplcache_snippets_force_expand) - \ ::echoerr print_snippets_complete_error() -silent! inoremap (neocomplcache_snippets_force_jump) - \ :echoerr print_snippets_complete_error() -silent! snoremap (neocomplcache_snippets_force_jump) - \ ::echoerr print_snippets_complete_error() -function! s:print_snippets_complete_error() - return 'Warning: neocomplcache snippets source was splitted!' - \ .' You should install neosnippet from' - \ .' "https://github.com/Shougo/neosnippet.vim"' -endfunction"}}} - -" Global options definition. "{{{ -let g:neocomplcache_max_list = - \ get(g:, 'neocomplcache_max_list', 100) -let g:neocomplcache_max_keyword_width = - \ get(g:, 'neocomplcache_max_keyword_width', 80) -let g:neocomplcache_max_menu_width = - \ get(g:, 'neocomplcache_max_menu_width', 15) -let g:neocomplcache_auto_completion_start_length = - \ get(g:, 'neocomplcache_auto_completion_start_length', 2) -let g:neocomplcache_manual_completion_start_length = - \ get(g:, 'neocomplcache_manual_completion_start_length', 0) -let g:neocomplcache_min_keyword_length = - \ get(g:, 'neocomplcache_min_keyword_length', 4) -let g:neocomplcache_enable_ignore_case = - \ get(g:, 'neocomplcache_enable_ignore_case', &ignorecase) -let g:neocomplcache_enable_smart_case = - \ get(g:, 'neocomplcache_enable_smart_case', &infercase) -let g:neocomplcache_disable_auto_complete = - \ get(g:, 'neocomplcache_disable_auto_complete', 0) -let g:neocomplcache_enable_wildcard = - \ get(g:, 'neocomplcache_enable_wildcard', 1) -let g:neocomplcache_enable_camel_case_completion = - \ get(g:, 'neocomplcache_enable_camel_case_completion', 0) -let g:neocomplcache_enable_underbar_completion = - \ get(g:, 'neocomplcache_enable_underbar_completion', 0) -let g:neocomplcache_enable_fuzzy_completion = - \ get(g:, 'neocomplcache_enable_fuzzy_completion', 0) -let g:neocomplcache_fuzzy_completion_start_length = - \ get(g:, 'neocomplcache_fuzzy_completion_start_length', 3) -let g:neocomplcache_enable_caching_message = - \ get(g:, 'neocomplcache_enable_caching_message', 1) -let g:neocomplcache_enable_insert_char_pre = - \ get(g:, 'neocomplcache_enable_insert_char_pre', 0) -let g:neocomplcache_enable_cursor_hold_i = - \ get(g:, 'neocomplcache_enable_cursor_hold_i', 0) -let g:neocomplcache_cursor_hold_i_time = - \ get(g:, 'neocomplcache_cursor_hold_i_time', 300) -let g:neocomplcache_enable_auto_select = - \ get(g:, 'neocomplcache_enable_auto_select', 0) -let g:neocomplcache_enable_auto_delimiter = - \ get(g:, 'neocomplcache_enable_auto_delimiter', 0) -let g:neocomplcache_caching_limit_file_size = - \ get(g:, 'neocomplcache_caching_limit_file_size', 500000) -let g:neocomplcache_disable_caching_file_path_pattern = - \ get(g:, 'neocomplcache_disable_caching_file_path_pattern', '') -let g:neocomplcache_lock_buffer_name_pattern = - \ get(g:, 'neocomplcache_lock_buffer_name_pattern', '') -let g:neocomplcache_ctags_program = - \ get(g:, 'neocomplcache_ctags_program', 'ctags') -let g:neocomplcache_force_overwrite_completefunc = - \ get(g:, 'neocomplcache_force_overwrite_completefunc', 0) -let g:neocomplcache_enable_prefetch = - \ get(g:, 'neocomplcache_enable_prefetch', - \ !(v:version > 703 || v:version == 703 && has('patch519')) - \ || (has('gui_running') && has('xim')) - \ ) -let g:neocomplcache_lock_iminsert = - \ get(g:, 'neocomplcache_lock_iminsert', 0) -let g:neocomplcache_release_cache_time = - \ get(g:, 'neocomplcache_release_cache_time', 900) -let g:neocomplcache_wildcard_characters = - \ get(g:, 'neocomplcache_wildcard_characters', { - \ '_' : '*' }) -let g:neocomplcache_skip_auto_completion_time = - \ get(g:, 'neocomplcache_skip_auto_completion_time', '0.3') -let g:neocomplcache_enable_auto_close_preview = - \ get(g:, 'neocomplcache_enable_auto_close_preview', 1) - -let g:neocomplcache_sources_list = - \ get(g:, 'neocomplcache_sources_list', {}) -let g:neocomplcache_disabled_sources_list = - \ get(g:, 'neocomplcache_disabled_sources_list', {}) -if exists('g:neocomplcache_source_disable') - let g:neocomplcache_disabled_sources_list._ = - \ keys(filter(copy(g:neocomplcache_source_disable), 'v:val')) -endif - -if exists('g:neocomplcache_plugin_completion_length') - let g:neocomplcache_source_completion_length = - \ g:neocomplcache_plugin_completion_length -endif -let g:neocomplcache_source_completion_length = - \ get(g:, 'neocomplcache_source_completion_length', {}) -if exists('g:neocomplcache_plugin_rank') - let g:neocomplcache_source_rank = g:neocomplcache_plugin_rank -endif -let g:neocomplcache_source_rank = - \ get(g:, 'neocomplcache_source_rank', {}) - -let g:neocomplcache_temporary_dir = - \ get(g:, 'neocomplcache_temporary_dir', expand('~/.neocomplcache')) -let g:neocomplcache_enable_debug = - \ get(g:, 'neocomplcache_enable_debug', 0) -if get(g:, 'neocomplcache_enable_at_startup', 0) - augroup neocomplcache - " Enable startup. - autocmd CursorHold,CursorMovedI - \ * call neocomplcache#init#lazy() - augroup END -endif"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/buffer_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/buffer_complete.vim deleted file mode 100644 index e6df1aa..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/buffer_complete.vim +++ /dev/null @@ -1,37 +0,0 @@ -"============================================================================= -" FILE: buffer_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 05 Oct 2012. -"============================================================================= - -if exists('g:loaded_neocomplcache_buffer_complete') - finish -endif - -let s:save_cpo = &cpo -set cpo&vim - -" Add commands. "{{{ -command! -nargs=? -complete=file -bar - \ NeoComplCacheCachingBuffer - \ call neocomplcache#sources#buffer_complete#caching_buffer() -command! -nargs=? -complete=buffer -bar - \ NeoComplCachePrintSource - \ call neocomplcache#sources#buffer_complete#print_source() -command! -nargs=? -complete=buffer -bar - \ NeoComplCacheOutputKeyword - \ call neocomplcache#sources#buffer_complete#output_keyword() -command! -nargs=? -complete=buffer -bar - \ NeoComplCacheDisableCaching - \ call neocomplcache#sources#buffer_complete#disable_caching() -command! -nargs=? -complete=buffer -bar - \ NeoComplCacheEnableCaching - \ call neocomplcache#sources#buffer_complete#enable_caching() -"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -let g:loaded_neocomplcache_buffer_complete = 1 - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/dictionary_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/dictionary_complete.vim deleted file mode 100644 index 6de4b28..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/dictionary_complete.vim +++ /dev/null @@ -1,25 +0,0 @@ -"============================================================================= -" FILE: dictionary_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 05 Oct 2012. -"============================================================================= - -if exists('g:loaded_neocomplcache_dictionary_complete') - finish -endif - -let s:save_cpo = &cpo -set cpo&vim - -" Add commands. "{{{ -command! -nargs=? -complete=customlist,neocomplcache#filetype_complete - \ NeoComplCacheCachingDictionary - \ call neocomplcache#sources#dictionary_complete#recaching() -"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -let g:loaded_neocomplcache_dictionary_complete = 1 - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/include_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/include_complete.vim deleted file mode 100644 index 6c66818..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/include_complete.vim +++ /dev/null @@ -1,24 +0,0 @@ -"============================================================================= -" FILE: include_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 05 Oct 2012. -"============================================================================= - -if exists('g:loaded_neocomplcache_include_complete') - finish -endif - -let s:save_cpo = &cpo -set cpo&vim - -" Add commands. "{{{ -command! -nargs=? -complete=buffer NeoComplCacheCachingInclude - \ call neocomplcache#sources#include_complete#caching_include() -"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -let g:loaded_neocomplcache_include_complete = 1 - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/syntax_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/syntax_complete.vim deleted file mode 100644 index d4e64a9..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/syntax_complete.vim +++ /dev/null @@ -1,25 +0,0 @@ -"============================================================================= -" FILE: syntax_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 05 Oct 2012. -"============================================================================= - -if exists('g:loaded_neocomplcache_syntax_complete') - finish -endif - -let s:save_cpo = &cpo -set cpo&vim - -" Add commands. "{{{ -command! -nargs=? -complete=customlist,neocomplcache#filetype_complete - \ NeoComplCacheCachingSyntax - \ call neocomplcache#sources#syntax_complete#recaching() -"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -let g:loaded_neocomplcache_syntax_complete = 1 - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/tags_complete.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/tags_complete.vim deleted file mode 100644 index e4946d8..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/plugin/neocomplcache/tags_complete.vim +++ /dev/null @@ -1,25 +0,0 @@ -"============================================================================= -" FILE: tags_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 05 Oct 2012. -"============================================================================= - -if exists('g:loaded_neocomplcache_tags_complete') - finish -endif - -let s:save_cpo = &cpo -set cpo&vim - -" Add commands. "{{{ -command! -nargs=0 -bar - \ NeoComplCacheCachingTags - \ call neocomplcache#sources#tags_complete#caching_tags(1) -"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -let g:loaded_neocomplcache_tags_complete = 1 - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neocomplcache.vim/vest/test-neocomplcache.vim b/etc/soft/vim/vim/+plugins/neocomplcache.vim/vest/test-neocomplcache.vim deleted file mode 100644 index 701555c..0000000 --- a/etc/soft/vim/vim/+plugins/neocomplcache.vim/vest/test-neocomplcache.vim +++ /dev/null @@ -1,24 +0,0 @@ -scriptencoding utf-8 - -" Saving 'cpoptions' {{{ -let s:save_cpo = &cpo -set cpo&vim -" }}} - -Context types - It tests compare functions. - ShouldEqual sort([{ 'word' : 'z0' }, { 'word' : 'z10' }, - \ { 'word' : 'z2'}, { 'word' : 'z3'} ], - \ 'neocomplcache#compare_human'), - \ [{ 'word' : 'z0' }, { 'word' : 'z2' }, - \ { 'word' : 'z3' }, { 'word' : 'z10' }] - End -End - -Fin - -" Restore 'cpoptions' {{{ -let &cpo = s:save_cpo -" }}} - -" vim:foldmethod=marker:fen: diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/README.md b/etc/soft/vim/vim/+plugins/neosnippet.vim/README.md deleted file mode 100644 index 820f0b0..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/README.md +++ /dev/null @@ -1,124 +0,0 @@ -Neosnippet -========== - -The Neosnippet plug-In adds snippet support to Vim. Snippets are -small templates for commonly used code that you can fill in on the -fly. To use snippets can increase your productivity in Vim a lot. -The functionality of this plug-in is quite similar to plug-ins like -snipMate.vim or snippetsEmu.vim. But since you can choose snippets with the -[neocomplcache](https://github.com/Shougo/neocomplcache.vim) / -[neocomplete](https://github.com/Shougo/neocomplete.vim) interface, you might -have less trouble using them, because you do not have to remember each snippet -name. - -Note: neocomplcache/neocomplete is NOT required! But recommended. - -Extra snippets files are available in: -[vim-snippets](https://github.com/honza/vim-snippets) - -Installation ------------- - -To install neosnippet and other Vim plug-ins it is recommended to use one of the -popular package managers for Vim, rather than installing by drag and drop all -required files into your `.vim` folder. - -### Manual (not recommended) - -1. Install the - [neocomplcache](https://github.com/Shougo/neocomplcache.vim)/ - [neocomplete](https://github.com/Shougo/neocomplete.vim) plugin first. -2. Put files in your Vim directory (usually `~/.vim/` or - `%PROGRAMFILES%/Vim/vimfiles` on Windows). - -### Vundle - -1. Setup the [vundle](https://github.com/gmarik/vundle) package manager -2. Set the bundles for [Neocomplcache](https://github.com/Shougo/neocomplcache) - or [neocomplete](https://github.com/Shougo/neocomplete.vim) - And [Neosnippet](https://github.com/Shougo/neosnippet) - - ```vim - Bundle 'Shougo/neocomplcache' - or - Bundle 'Shougo/neocomplete' - - Bundle 'Shougo/neosnippet' - ``` - -3. Open up Vim and start installation with `:BundleInstall` - -### Neobundle - -1. Setup the [neobundle](https://github.com/Shougo/neobundle.vim) package manager -2. Set the bundles for [Neocomplcache](https://github.com/Shougo/neocomplcache) - or [neocomplete](https://github.com/Shougo/neocomplete.vim) - And [Neosnippet](https://github.com/Shougo/neosnippet) - - ```vim - NeoBundle 'Shougo/neocomplcache' - or - NeoBundle 'Shougo/neocomplete' - - NeoBundle 'Shougo/neosnippet' - ``` - -3. Open up Vim and start installation with `:NeoBundleInstall` - -### VAM (vim-addon-manager) - -1. Setup the [vim-addon-manager](https://github.com/MarcWeber/vim-addon-manager) - package manager. -2. Add `neosnippet` to the list of addons in your vimrc: - - ```vim - call vam#ActivateAddons(['neosnippet']) - ``` - - . Installation will start automatically when you open vim next time. - -Configuration -------------- - -This is an example `~/.vimrc` configuration for Neosnippet. It is assumes you -already have Neocomplcache configured. With the settings of the example, you -can use the following keys: - -* `C-k` to select-and-expand a snippet from the Neocomplcache popup (Use `C-n` - and `C-p` to select it). `C-k` can also be used to jump to the next field in - the snippet. -* `Tab` to select the next field to fill in the snippet. - -```vim -" Plugin key-mappings. -imap (neosnippet_expand_or_jump) -smap (neosnippet_expand_or_jump) -xmap (neosnippet_expand_target) - -" SuperTab like snippets behavior. -imap neosnippet#expandable_or_jumpable() ? -\ "\(neosnippet_expand_or_jump)" -\: pumvisible() ? "\" : "\" -smap neosnippet#expandable_or_jumpable() ? -\ "\(neosnippet_expand_or_jump)" -\: "\" - -" For snippet_complete marker. -if has('conceal') - set conceallevel=2 concealcursor=i -endif -``` - -If you want to use a different collection of snippets than the -built-in ones, then you can set a path to the snippets with -the `g:neosnippet#snippets_directory` variable (e.g [Honza's -Snippets](https://github.com/honza/vim-snippets)) - -```vim -" Enable snipMate compatibility feature. -let g:neosnippet#enable_snipmate_compatibility = 1 - -" Tell Neosnippet about the other snippets -let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets' -``` - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplcache/sources/snippets_complete.vim b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplcache/sources/snippets_complete.vim deleted file mode 100644 index f19f5cf..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplcache/sources/snippets_complete.vim +++ /dev/null @@ -1,105 +0,0 @@ -"============================================================================= -" FILE: snippets_complete.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 04 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:source = { - \ 'name' : 'snippets_complete', - \ 'kind' : 'complfunc', - \ 'min_pattern_length' : - \ g:neocomplcache_auto_completion_start_length, - \} - -function! s:source.initialize() "{{{ - " Initialize. - call neocomplcache#set_dictionary_helper( - \ g:neocomplcache_source_rank, 'snippets_complete', 8) - call neocomplcache#set_completion_length('snippets_complete', - \ g:neocomplcache_auto_completion_start_length) - call neosnippet#util#set_default( - \ 'g:neosnippet#enable_preview', 0) -endfunction"}}} - -function! s:source.get_keyword_pos(cur_text) "{{{ - let cur_word = matchstr(a:cur_text, '\w\+$') - let word_candidates = neocomplcache#keyword_filter( - \ filter(values(neosnippet#get_snippets()), - \ 'v:val.options.word'), cur_word) - if !empty(word_candidates) - return match(a:cur_text, '\w\+$') - endif - - return match(a:cur_text, '\S\+$') -endfunction"}}} - -function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{ - let list = s:keyword_filter(neosnippet#get_snippets(), a:cur_keyword_str) - - for snippet in list - let snippet.dup = 1 - - let snippet.menu = neosnippet#util#strwidthpart( - \ snippet.menu_template, winwidth(0)/3) - if g:neosnippet#enable_preview - let snippet.info = snippet.snip - endif - endfor - - return list -endfunction"}}} - -function! s:keyword_filter(snippets, cur_keyword_str) "{{{ - " Uniq by real_name. - let dict = {} - - " Use default filter. - let list = neocomplcache#keyword_filter( - \ values(a:snippets), a:cur_keyword_str) - - " Add cur_keyword_str snippet. - if has_key(a:snippets, a:cur_keyword_str) - call add(list, a:snippets[a:cur_keyword_str]) - endif - - for snippet in neocomplcache#dup_filter(list) - if !has_key(dict, snippet.real_name) || - \ len(dict[snippet.real_name].word) > len(snippet.word) - let dict[snippet.real_name] = snippet - endif - endfor - - return values(dict) -endfunction"}}} - -function! neocomplcache#sources#snippets_complete#define() "{{{ - return s:source -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplete/sources/neosnippet.vim b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplete/sources/neosnippet.vim deleted file mode 100644 index bd302cb..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neocomplete/sources/neosnippet.vim +++ /dev/null @@ -1,67 +0,0 @@ -"============================================================================= -" FILE: neosnippet.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 05 Jun 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:source = { - \ 'name' : 'neosnippet', - \ 'kind' : 'keyword', - \ 'rank' : 8, - \ 'hooks' : {}, - \} - -function! s:source.hooks.on_init(context) "{{{ - " Initialize. - call neosnippet#util#set_default( - \ 'g:neosnippet#enable_preview', 0) -endfunction"}}} - -function! s:source.gather_candidates(context) "{{{ - return values(neosnippet#get_snippets()) -endfunction"}}} - -function! s:source.hooks.on_post_filter(context) "{{{ - for snippet in a:context.candidates - let snippet.dup = 1 - let snippet.menu = neosnippet#util#strwidthpart( - \ snippet.menu_template, winwidth(0)/3) - if g:neosnippet#enable_preview - let snippet.info = snippet.snip - endif - endfor - - return a:context.candidates -endfunction"}}} - -function! neocomplete#sources#neosnippet#define() "{{{ - return s:source -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet.vim b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet.vim deleted file mode 100644 index 81219c1..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet.vim +++ /dev/null @@ -1,1412 +0,0 @@ -"============================================================================= -" FILE: neosnippet.vim -" AUTHOR: Shougo Matsushita -" Last Modified: 12 Jul 2013. -" License: MIT license {{{ -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be included -" in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -" }}} -"============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -" Global options definition. "{{{ -call neosnippet#util#set_default( - \ 'g:neosnippet#disable_runtime_snippets', {}) -call neosnippet#util#set_default( - \ 'g:neosnippet#snippets_directory', '') -call neosnippet#util#set_default( - \ 'g:neosnippet#disable_select_mode_mappings', 1) -call neosnippet#util#set_default( - \ 'g:neosnippet#enable_snipmate_compatibility', 0) -"}}} - -" Variables "{{{ -let s:neosnippet_options = [ - \ '-runtime', - \ '-vertical', '-horizontal', '-direction=', '-split', - \] -"}}} - -function! neosnippet#initialize() "{{{ - call s:initialize_script_variables() - call s:initialize_others() - call s:initialize_cache() -endfunction"}}} - -function! s:check_initialize() "{{{ - if !exists('s:is_initialized') - let s:is_initialized = 1 - - call neosnippet#initialize() - endif -endfunction"}}} - -" For echodoc. "{{{ -let s:doc_dict = { - \ 'name' : 'neosnippet', - \ 'rank' : 100, - \ 'filetypes' : {}, - \ } -function! s:doc_dict.search(cur_text) "{{{ - if mode() !=# 'i' - return [] - endif - - let snippets = neosnippet#get_snippets() - - let cur_word = s:get_cursor_snippet(snippets, a:cur_text) - if cur_word == '' - return [] - endif - - let snip = snippets[cur_word] - let ret = [] - call add(ret, { 'text' : snip.word, 'highlight' : 'String' }) - call add(ret, { 'text' : ' ' }) - call add(ret, { 'text' : snip.menu_abbr, 'highlight' : 'Special' }) - - return ret -endfunction"}}} -"}}} - -function! neosnippet#expandable_or_jumpable() "{{{ - return neosnippet#expandable() || neosnippet#jumpable() -endfunction"}}} -function! neosnippet#expandable() "{{{ - " Check snippet trigger. - return s:get_cursor_snippet( - \ neosnippet#get_snippets(), neosnippet#util#get_cur_text()) != '' -endfunction"}}} -function! neosnippet#jumpable() "{{{ - " Found snippet placeholder. - return search(s:get_placeholder_marker_pattern(). '\|' - \ .s:get_sync_placeholder_marker_pattern(), 'nw') > 0 -endfunction"}}} - -function! neosnippet#caching() "{{{ - call neosnippet#make_cache(&filetype) -endfunction"}}} - -function! neosnippet#recaching() "{{{ - let s:snippets = {} -endfunction"}}} - -function! s:set_snippet_dict(snippet_dict, snippets, dup_check, snippets_file) "{{{ - if empty(a:snippet_dict) - return - endif - - let action_pattern = '^snippet\s\+' . a:snippet_dict.name . '$' - let snippet = s:initialize_snippet( - \ a:snippet_dict, a:snippets_file, - \ a:snippet_dict.linenr, action_pattern, - \ a:snippet_dict.name) - let a:snippets[a:snippet_dict.name] = snippet - let a:dup_check[a:snippet_dict.name] = snippet - - for alias in get(a:snippet_dict, 'alias', []) - let alias_snippet = copy(snippet) - let alias_snippet.word = alias - - let a:snippets[alias] = alias_snippet - let a:dup_check[alias] = alias_snippet - endfor -endfunction"}}} -function! s:initialize_snippet(dict, path, line, pattern, name) "{{{ - let a:dict.word = substitute(a:dict.word, '\n\+$', '', '') - if a:dict.word !~ - \ s:get_placeholder_marker_substitute_pattern() - " Add placeholder. - let a:dict.word .= '${0}' - endif - - let menu_prefix = '[nsnip] ' - - if !has_key(a:dict, 'abbr') || a:dict.abbr == '' - " Set default abbr. - let abbr = substitute(a:dict.word, - \ s:get_placeholder_marker_pattern(). '\|'. - \ s:get_mirror_placeholder_marker_pattern(). - \ '\|\s\+\|\n\|TARGET', ' ', 'g') - let a:dict.abbr = a:dict.name - else - let abbr = a:dict.abbr - endif - - let snippet = { - \ 'word' : a:dict.name, 'snip' : a:dict.word, - \ 'description' : a:dict.word, - \ 'menu_template' : menu_prefix . abbr, - \ 'menu_abbr' : abbr, - \ 'options' : a:dict.options, - \ 'action__path' : a:path, 'action__line' : a:line, - \ 'action__pattern' : a:pattern, 'real_name' : a:name, - \} - - if has_key(a:dict, 'regexp') - let snippet.regexp = a:dict.regexp - endif - - return snippet -endfunction"}}} -function! s:initialize_snippet_options() "{{{ - return { 'head' : 0, 'word' : 0, 'indent' : 0 } -endfunction"}}} - -function! neosnippet#edit_snippets(args) "{{{ - call s:check_initialize() - - let [args, options] = neosnippet#util#parse_options( - \ a:args, s:neosnippet_options) - - let filetype = get(args, 0, '') - if filetype == '' - let filetype = neosnippet#get_filetype() - endif - - let options = s:initialize_options(options) - let snippet_dir = (options.runtime ? - \ get(neosnippet#get_runtime_snippets_directory(), 0, '') : - \ get(neosnippet#get_user_snippets_directory(), -1, '')) - - if snippet_dir == '' - call neosnippet#util#print_error('Snippet directory is not found.') - return - endif - - " Edit snippet file. - let filename = snippet_dir .'/'.filetype - - if isdirectory(filename) - " Edit in snippet directory. - let filename .= '/'.filetype - endif - - if filename !~ '\.snip*$' - let filename .= '.snip' - endif - - if options.split - " Split window. - execute options.direction - \ (options.vertical ? 'vsplit' : 'split') - endif - - try - edit `=filename` - catch /^Vim\%((\a\+)\)\=:E749/ - endtry -endfunction"}}} - -function! s:initialize_options(options) "{{{ - let default_options = { - \ 'runtime' : 0, - \ 'vertical' : 0, - \ 'direction' : 'below', - \ 'split' : 0, - \ } - - let options = extend(default_options, a:options) - - " Complex initializer. - if has_key(options, 'horizontal') - " Disable vertically. - let options.vertical = 0 - endif - - return options -endfunction"}}} - -function! neosnippet#make_cache(filetype) "{{{ - call s:check_initialize() - - let filetype = a:filetype == '' ? - \ &filetype : a:filetype - if filetype ==# '' - let filetype = 'nothing' - endif - - if has_key(s:snippets, filetype) - return - endif - - let snippets_dir = neosnippet#get_snippets_directory() - let snippet = {} - let snippets_files = - \ split(globpath(join(snippets_dir, ','), - \ filetype . '.snip*'), '\n') - \ + split(globpath(join(snippets_dir, ','), - \ filetype . '_*.snip*'), '\n') - \ + split(globpath(join(snippets_dir, ','), - \ filetype . '/**/*.snip*'), '\n') - for snippets_file in reverse(snippets_files) - call s:parse_snippets_file(snippet, snippets_file) - endfor - - let s:snippets[filetype] = snippet -endfunction"}}} - -function! neosnippet#source_file(filename) "{{{ - call s:check_initialize() - - let neosnippet = neosnippet#get_current_neosnippet() - call s:parse_snippets_file(neosnippet.snippets, a:filename) -endfunction"}}} - -function! s:parse_snippets_file(snippets, snippets_file) "{{{ - let dup_check = {} - let snippet_dict = {} - - let linenr = 1 - - if !filereadable(a:snippets_file) - call neosnippet#util#print_error( - \ printf('snippet file "%s" is not found.', a:snippets_file)) - return a:snippets - endif - - for line in readfile(a:snippets_file) - if line =~ '^\h\w*.*\s$' - " Delete spaces. - let line = substitute(line, '\s\+$', '', '') - endif - - if line =~ '^#' - " Ignore. - elseif line =~ '^include' - " Include snippets. - let filename = matchstr(line, '^include\s\+\zs.*$') - - for snippets_file in split(globpath(join( - \ neosnippet#get_snippets_directory(), ','), - \ filename), '\n') - call s:parse_snippets_file(a:snippets, snippets_file) - endfor - elseif line =~ '^delete\s' - let name = matchstr(line, '^delete\s\+\zs.*$') - if name != '' && has_key(a:snippets, name) - call filter(a:snippets, 'v:val.real_name !=# name') - endif - elseif line =~ '^snippet\s' - if !empty(snippet_dict) - " Set previous snippet. - call s:set_snippet_dict(snippet_dict, - \ a:snippets, dup_check, a:snippets_file) - endif - - let snippet_dict = s:parse_snippet_name( - \ a:snippets_file, line, linenr, dup_check) - elseif !empty(snippet_dict) - if line =~ '^\s' || line == '' - if snippet_dict.word == '' - " Substitute head tab character. - let line = substitute(line, '^\t', '', '') - endif - - let snippet_dict.word .= - \ substitute(line, '^ *', '', '') . "\n" - else - call s:add_snippet_attribute( - \ a:snippets_file, line, linenr, snippet_dict) - endif - endif - - let linenr += 1 - endfor - - if !empty(snippet_dict) - " Set previous snippet. - call s:set_snippet_dict(snippet_dict, - \ a:snippets, dup_check, a:snippets_file) - endif - - return a:snippets -endfunction"}}} - -function! s:parse_snippet_name(snippets_file, line, linenr, dup_check) "{{{ - " Initialize snippet dict. - let snippet_dict = { 'word' : '', 'linenr' : a:linenr, - \ 'options' : s:initialize_snippet_options() } - - " Try using the name without the description (abbr). - let snippet_dict.name = matchstr(a:line, '^snippet\s\+\zs\S\+') - - " Fall back to using the name and description (abbr) combined. - " SnipMate snippets may have duplicate names, but different - " descriptions (abbrs). - let description = matchstr(a:line, '^snippet\s\+\S\+\s\+\zs.*$') - if description != '' && description !=# snippet_dict.name - " Convert description. - let snippet_dict.name .= '_' . - \ substitute(substitute( - \ description, '\W\+', '_', 'g'), '_\+$', '', '') - endif - - " Collect the description (abbr) of the snippet, if set on snippet line. - " This is for compatibility with SnipMate-style snippets. - let snippet_dict.abbr = matchstr(a:line, - \ '^snippet\s\+\S\+\s\+\zs.*$') - - " Check for duplicated names. - if has_key(a:dup_check, snippet_dict.name) - let dup = a:dup_check[snippet_dict.name] - call neosnippet#util#print_error(printf( - \ 'Warning: %s:%d is overriding `%s` from %s:%d', - \ a:snippets_file, a:linenr, snippet_dict.name, - \ dup.action__path, dup.action__line)) - call neosnippet#util#print_error(printf( - \ 'Please rename the snippet name or use `delete %s`.', - \ snippet_dict.name)) - endif - - return snippet_dict -endfunction"}}} -function! s:add_snippet_attribute(snippets_file, line, linenr, snippet_dict) "{{{ - " Allow overriding/setting of the description (abbr) of the snippet. - " This will override what was set via the snippet line. - if a:line =~ '^abbr\s' - let a:snippet_dict.abbr = matchstr(a:line, '^abbr\s\+\zs.*$') - elseif a:line =~ '^alias\s' - let a:snippet_dict.alias = split(matchstr(a:line, - \ '^alias\s\+\zs.*$'), '[,[:space:]]\+') - elseif a:line =~ '^prev_word\s' - let prev_word = matchstr(a:line, - \ '^prev_word\s\+[''"]\zs.*\ze[''"]$') - if prev_word == '^' - " For backward compatibility. - let a:snippet_dict.options.head = 1 - else - call neosnippet#util#print_error( - \ 'prev_word must be "^" character.') - endif - elseif a:line =~ '^regexp\s' - let a:snippet_dict.regexp = matchstr(a:line, - \ '^regexp\s\+[''"]\zs.*\ze[''"]$') - elseif a:line =~ '^options\s\+' - for option in split(matchstr(a:line, - \ '^options\s\+\zs.*$'), '[,[:space:]]\+') - if !has_key(a:snippet_dict.options, option) - call neosnippet#util#print_error( - \ printf('[neosnippet] %s:%d', a:snippets_file, a:linenr)) - call neosnippet#util#print_error( - \ printf('[neosnippet] Invalid option name : "%s"', option)) - else - let a:snippet_dict.options[option] = 1 - endif - endfor - else - call neosnippet#util#print_error( - \ printf('[neosnippet] %s:%d', a:snippets_file, a:linenr)) - call neosnippet#util#print_error( - \ printf('[neosnippet] Invalid syntax : "%s"', a:line)) - endif -endfunction"}}} - -function! s:is_beginning_of_line(cur_text) "{{{ - let keyword_pattern = '\S\+' - let cur_keyword_str = matchstr(a:cur_text, keyword_pattern.'$') - let line_part = a:cur_text[: -1-len(cur_keyword_str)] - let prev_word_end = matchend(line_part, keyword_pattern) - - return prev_word_end <= 0 -endfunction"}}} -function! s:get_cursor_snippet(snippets, cur_text) "{{{ - let cur_word = matchstr(a:cur_text, '\S\+$') - if cur_word != '' && has_key(a:snippets, cur_word) - return cur_word - endif - - while cur_word != '' - if has_key(a:snippets, cur_word) && - \ a:snippets[cur_word].options.word - return cur_word - endif - - let cur_word = substitute(cur_word, '^\%(\w\+\|\W\)', '', '') - endwhile - - return cur_word -endfunction"}}} - -function! s:snippets_expand(cur_text, col) "{{{ - let cur_word = s:get_cursor_snippet( - \ neosnippet#get_snippets(), - \ a:cur_text) - - call neosnippet#expand( - \ a:cur_text, a:col, cur_word) -endfunction"}}} -function! neosnippet#jump(cur_text, col) "{{{ - call s:skip_next_auto_completion() - - " Get patterns and count. - if empty(s:snippets_expand_stack) - return s:search_outof_range(a:col) - endif - - let expand_info = s:snippets_expand_stack[-1] - " Search patterns. - let [begin, end] = s:get_snippet_range( - \ expand_info.begin_line, - \ expand_info.begin_patterns, - \ expand_info.end_line, - \ expand_info.end_patterns) - if s:search_snippet_range(begin, end, expand_info.holder_cnt) - " Next count. - let expand_info.holder_cnt += 1 - return 1 - endif - - " Search placeholder 0. - if s:search_snippet_range(begin, end, 0) - return 1 - endif - - " Not found. - let s:snippets_expand_stack = s:snippets_expand_stack[: -2] - - return s:search_outof_range(a:col) -endfunction"}}} -function! s:snippets_expand_or_jump(cur_text, col) "{{{ - let cur_word = s:get_cursor_snippet( - \ neosnippet#get_snippets(), a:cur_text) - - if cur_word != '' - " Found snippet trigger. - call neosnippet#expand( - \ a:cur_text, a:col, cur_word) - else - call neosnippet#jump(a:cur_text, a:col) - endif -endfunction"}}} -function! s:snippets_jump_or_expand(cur_text, col) "{{{ - let cur_word = s:get_cursor_snippet( - \ neosnippet#get_snippets(), a:cur_text) - if search(s:get_placeholder_marker_pattern(). '\|' - \ .s:get_sync_placeholder_marker_pattern(), 'nw') > 0 - " Found snippet placeholder. - call neosnippet#jump(a:cur_text, a:col) - else - call neosnippet#expand( - \ a:cur_text, a:col, cur_word) - endif -endfunction"}}} - -function! neosnippet#expand(cur_text, col, trigger_name) "{{{ - call s:skip_next_auto_completion() - - let snippets = neosnippet#get_snippets() - - if a:trigger_name == '' || !has_key(snippets, a:trigger_name) - let pos = getpos('.') - let pos[2] = len(a:cur_text)+1 - call setpos('.', pos) - - if pos[2] < col('$') - startinsert - else - startinsert! - endif - - return - endif - - let snippet = snippets[a:trigger_name] - let cur_text = a:cur_text[: -1-len(a:trigger_name)] - - let snip_word = snippet.snip - if snip_word =~ '\\\@', 'g') - let snip_word = substitute(snip_word, - \ '\\\@', 'g') - let snip_word = substitute(snip_word, - \ '\\'.s:get_mirror_placeholder_marker_substitute_pattern().'\|'. - \ '\\'.s:get_placeholder_marker_substitute_pattern(), - \ '\=submatch(0)[1:]', 'g') - - " Insert snippets. - let next_line = getline('.')[a:col-1 :] - let snippet_lines = split(snip_word, '\n', 1) - if empty(snippet_lines) - return - endif - - let begin_line = line('.') - let end_line = line('.') + len(snippet_lines) - 1 - - let snippet_lines[0] = cur_text . snippet_lines[0] - let next_col = len(snippet_lines[-1]) + 1 - let snippet_lines[-1] = snippet_lines[-1] . next_line - - if has('folding') - " Note: Change foldmethod to "manual". Because, if you use foldmethod is - " expr, whole snippet is visually selected. - let foldmethod_save = &l:foldmethod - let &l:foldmethod = 'manual' - endif - - try - call setline('.', snippet_lines[0]) - if len(snippet_lines) > 1 - call append('.', snippet_lines[1:]) - endif - - if begin_line != end_line || snippet.options.indent - call s:indent_snippet(begin_line, end_line) - endif - - let begin_patterns = (begin_line > 1) ? - \ [getline(begin_line - 1)] : [] - let end_patterns = (end_line < line('$')) ? - \ [getline(end_line + 1)] : [] - call add(s:snippets_expand_stack, { - \ 'begin_line' : begin_line, - \ 'begin_patterns' : begin_patterns, - \ 'end_line' : end_line, - \ 'end_patterns' : end_patterns, - \ 'holder_cnt' : 1, - \ }) - - if snip_word =~ s:get_placeholder_marker_pattern() - call neosnippet#jump(a:cur_text, a:col) - endif - finally - if has('folding') - if foldmethod_save !=# &l:foldmethod - let &l:foldmethod = foldmethod_save - endif - - silent! execute begin_line . ',' . end_line . 'foldopen!' - endif - endtry - - let &l:iminsert = 0 - let &l:imsearch = 0 -endfunction"}}} -function! neosnippet#expand_target() "{{{ - let trigger = input('Please input snippet trigger: ', - \ '', 'customlist,neosnippet#complete_target_snippets') - let neosnippet = neosnippet#get_current_neosnippet() - if !has_key(neosnippet#get_snippets(), trigger) || - \ neosnippet#get_snippets()[trigger].snip !~# - \ neosnippet#get_placeholder_target_marker_pattern() - if trigger != '' - echo 'The trigger is invalid.' - endif - - let neosnippet.target = '' - return - endif - - call neosnippet#expand_target_trigger(trigger) -endfunction"}}} -function! neosnippet#expand_target_trigger(trigger) "{{{ - let neosnippet = neosnippet#get_current_neosnippet() - let neosnippet.target = substitute( - \ neosnippet#get_selected_text(visualmode(), 1), '\n$', '', '') - - let line = getpos("'<")[1] - let col = getpos("'<")[2] - - call neosnippet#delete_selected_text(visualmode()) - - call cursor(line, col) - - call neosnippet#expand(neosnippet#util#get_cur_text(), col, a:trigger) -endfunction"}}} -function! s:indent_snippet(begin, end) "{{{ - if a:begin > a:end - return - endif - - let pos = getpos('.') - - let neosnippet = neosnippet#get_current_neosnippet() - - let equalprg = &l:equalprg - try - setlocal equalprg= - - " Indent begin line? - let begin = (neosnippet.target == '') ? a:begin : a:begin + 1 - - let base_indent = matchstr(getline(a:begin), '^\s\+') - for line_nr in range(begin, a:end) - call cursor(line_nr, 0) - - if getline('.') =~ '^\t\+' - " Delete head tab character. - let current_line = substitute(getline('.'), '^\t', '', '') - - if &l:expandtab && current_line =~ '^\t\+' - " Expand tab. - cal setline('.', substitute(current_line, - \ '^\t\+', base_indent . repeat(' ', &shiftwidth * - \ len(matchstr(current_line, '^\t\+'))), '')) - elseif line_nr != a:begin - call setline('.', base_indent . current_line) - endif - else - silent normal! == - endif - endfor - finally - let &l:equalprg = equalprg - call setpos('.', pos) - endtry -endfunction"}}} - -function! neosnippet#register_oneshot_snippet() "{{{ - let trigger = input('Please input snippet trigger: ', 'oneshot') - if trigger == '' - return - endif - - let selected_text = substitute( - \ neosnippet#get_selected_text(visualmode(), 1), '\n$', '', '') - call neosnippet#delete_selected_text(visualmode(), 1) - - let base_indent = matchstr(selected_text, '^\s*') - - " Delete base_indent. - let selected_text = substitute(selected_text, - \'^' . base_indent, '', 'g') - - let neosnippet = neosnippet#get_current_neosnippet() - let options = s:initialize_snippet_options() - let options.word = 1 - - let neosnippet.snippets[trigger] = s:initialize_snippet( - \ { 'name' : trigger, 'word' : selected_text, 'options' : options }, - \ '', 0, '', trigger) - - echo 'Registered trigger : ' . trigger -endfunction"}}} - -function! s:get_snippet_range(begin_line, begin_patterns, end_line, end_patterns) "{{{ - let pos = getpos('.') - - call cursor(a:begin_line, 0) - if empty(a:begin_patterns) - let begin = line('.') - 50 - else - let [begin, _] = searchpos('^' . neosnippet#util#escape_pattern( - \ a:begin_patterns[0]) . '$', 'bnW') - if begin <= 0 - let begin = line('.') - 50 - endif - endif - if begin <= 0 - let begin = 1 - endif - - call cursor(a:end_line, 0) - if empty(a:end_patterns) - let end = line('.') + 50 - else - let [end, _] = searchpos('^' . neosnippet#util#escape_pattern( - \ a:end_patterns[0]) . '$', 'nW') - if end <= 0 - let end = line('.') + 50 - endif - endif - if end > line('$') - let end = line('$') - endif - - call setpos('.', pos) - return [begin, end] -endfunction"}}} -function! s:search_snippet_range(start, end, cnt, ...) "{{{ - let is_select = get(a:000, 0, 1) - call s:substitute_placeholder_marker(a:start, a:end, a:cnt) - - " Search marker pattern. - let pattern = substitute(s:get_placeholder_marker_pattern(), - \ '\\d\\+', a:cnt, '') - - for line in filter(range(a:start, a:end), - \ 'getline(v:val) =~ pattern') - call s:expand_placeholder(a:start, a:end, a:cnt, line, is_select) - return 1 - endfor - - return 0 -endfunction"}}} -function! s:search_outof_range(col) "{{{ - call s:substitute_placeholder_marker(1, 0, 0) - - let pattern = s:get_placeholder_marker_pattern() - if search(pattern, 'w') > 0 - call s:expand_placeholder(line('.'), 0, '\\d\\+', line('.')) - return 1 - endif - - let pos = getpos('.') - if a:col == 1 - let pos[2] = 1 - call setpos('.', pos) - startinsert - elseif a:col >= col('$') - startinsert! - else - let pos[2] = a:col+1 - call setpos('.', pos) - startinsert - endif - - " Not found. - return 0 -endfunction"}}} -function! s:expand_placeholder(start, end, holder_cnt, line, ...) "{{{ - let is_select = get(a:000, 0, 1) - - let pattern = substitute(s:get_placeholder_marker_pattern(), - \ '\\d\\+', a:holder_cnt, '') - let current_line = getline(a:line) - let match = match(current_line, pattern) - let neosnippet = neosnippet#get_current_neosnippet() - - let default_pattern = substitute( - \ s:get_placeholder_marker_default_pattern(), - \ '\\d\\+', a:holder_cnt, '') - let default = substitute( - \ matchstr(current_line, default_pattern), - \ '\\\ze[^\\]', '', 'g') - - if default =~ '^TARGET\>' && neosnippet.target != '' - let default = '' - let is_target = 1 - else - let is_target = 0 - endif - - let default = substitute(default, '^TARGET:\?', '', '') - - let neosnippet.selected_text = default - - " Substitute marker. - let default = substitute(default, - \ s:get_placeholder_marker_substitute_pattern(), - \ '<`\1`>', 'g') - let default = substitute(default, - \ s:get_mirror_placeholder_marker_substitute_pattern(), - \ '<|\1|>', 'g') - - let default_len = len(default) - - let pos = getpos('.') - let pos[1] = a:line - let pos[2] = match+1 - - let cnt = s:search_sync_placeholder(a:start, a:end, a:holder_cnt) - if cnt >= 0 - let pattern = substitute(s:get_placeholder_marker_pattern(), - \ '\\d\\+', cnt, '') - call setline(a:line, substitute(current_line, pattern, - \ '<{'.cnt.':'.escape(default, '\').'}>', '')) - let pos[2] += len('<{'.cnt.':') - else - " Substitute holder. - call setline(a:line, - \ substitute(current_line, pattern, escape(default, '\'), '')) - endif - - call setpos('.', pos) - - if is_target - " Expand target - return s:expand_target_placeholder(a:line, match+1) - endif - - if default_len > 0 && is_select - " Select default value. - let len = default_len-1 - if &l:selection == 'exclusive' - let len += 1 - endif - - stopinsert - execute 'normal! v'. repeat('l', len) . "\" - elseif pos[2] < col('$') - startinsert - else - startinsert! - endif -endfunction"}}} -function! s:expand_target_placeholder(line, col) "{{{ - " Expand target - let neosnippet = neosnippet#get_current_neosnippet() - let next_line = getline(a:line)[a:col-1 :] - let target_lines = split(neosnippet.target, '\n', 1) - - let cur_text = getline(a:line)[: a:col-2] - let target_lines[0] = cur_text . target_lines[0] - let next_col = len(target_lines[-1]) + 1 - let target_lines[-1] = target_lines[-1] . next_line - - let begin_line = a:line - let end_line = a:line + len(target_lines) - 1 - - let col = col('.') - try - let base_indent = matchstr(cur_text, '^\s\+') - call setline(a:line, target_lines[0]) - if len(target_lines) > 1 - call append(a:line, map(target_lines[1:], - \ 'base_indent . v:val')) - endif - - call cursor(end_line, 0) - - if next_line != '' - startinsert - let col = col('.') - else - startinsert! - let col = col('$') - endif - finally - if has('folding') - silent! execute begin_line . ',' . end_line . 'foldopen!' - endif - endtry - - let neosnippet.target = '' - - call neosnippet#jump(neosnippet#util#get_cur_text(), col) -endfunction"}}} -function! s:search_sync_placeholder(start, end, number) "{{{ - if a:end == 0 - " Search in current buffer. - let cnt = matchstr(getline('.'), - \ substitute(s:get_placeholder_marker_pattern(), - \ '\\d\\+', '\\zs\\d\\+\\ze', '')) - return search(substitute( - \ s:get_mirror_placeholder_marker_pattern(), - \ '\\d\\+', cnt, ''), 'nw') > 0 ? cnt : -1 - endif - - let pattern = substitute( - \ s:get_mirror_placeholder_marker_pattern(), - \ '\\d\\+', a:number, '') - for line in filter(range(a:start, a:end), - \ 'getline(v:val) =~ pattern') - return a:number - endfor - - return -1 -endfunction"}}} -function! s:substitute_placeholder_marker(start, end, snippet_holder_cnt) "{{{ - if a:snippet_holder_cnt > 0 - let cnt = a:snippet_holder_cnt-1 - let sync_marker = substitute(s:get_sync_placeholder_marker_pattern(), - \ '\\d\\+', cnt, '') - let mirror_marker = substitute( - \ s:get_mirror_placeholder_marker_pattern(), - \ '\\d\\+', cnt, '') - let line = a:start - - for line in range(a:start, a:end) - if getline(line) =~ sync_marker - let sub = escape(matchstr(getline(line), - \ substitute(s:get_sync_placeholder_marker_default_pattern(), - \ '\\d\\+', cnt, '')), '/\') - silent execute printf('%d,%ds/\m' . mirror_marker . '/%s/' - \ . (&gdefault ? '' : 'g'), a:start, a:end, sub) - call setline(line, substitute(getline(line), sync_marker, sub, '')) - endif - endfor - elseif search(s:get_sync_placeholder_marker_pattern(), 'wb') > 0 - let sub = escape(matchstr(getline('.'), - \ s:get_sync_placeholder_marker_default_pattern()), '/\') - let cnt = matchstr(getline('.'), - \ substitute(s:get_sync_placeholder_marker_pattern(), - \ '\\d\\+', '\\zs\\d\\+\\ze', '')) - let mirror_marker = substitute( - \ s:get_mirror_placeholder_marker_pattern(), - \ '\\d\\+', cnt, '') - silent execute printf('%%s/\m' . mirror_marker . '/%s/' - \ . (&gdefault ? 'g' : ''), sub) - let sync_marker = substitute(s:get_sync_placeholder_marker_pattern(), - \ '\\d\\+', cnt, '') - call setline('.', substitute(getline('.'), sync_marker, sub, '')) - endif -endfunction"}}} -function! s:eval_snippet(snippet_text) "{{{ - let snip_word = '' - let prev_match = 0 - let match = match(a:snippet_text, '\\\@= 0 - if match - prev_match > 0 - let snip_word .= a:snippet_text[prev_match : match - 1] - endif - let prev_match = matchend(a:snippet_text, - \ '\\\@= 0 - let snip_word .= a:snippet_text[prev_match :] - endif - - return snip_word -endfunction"}}} -function! neosnippet#get_current_neosnippet() "{{{ - if !exists('b:neosnippet') - let b:neosnippet = { - \ 'snippets' : {}, - \ 'selected_text' : '', - \ 'target' : '', - \ 'trigger' : 0, - \} - endif - - return b:neosnippet -endfunction"}}} -function! neosnippet#get_snippets() "{{{ - call s:check_initialize() - - let neosnippet = neosnippet#get_current_neosnippet() - let snippets = copy(neosnippet.snippets) - for filetype in s:get_sources_filetypes(neosnippet#get_filetype()) - call neosnippet#make_cache(filetype) - call extend(snippets, s:snippets[filetype], 'keep') - endfor - - if mode() ==# 'i' - " Special filters. - let cur_text = neosnippet#util#get_cur_text() - if !s:is_beginning_of_line(cur_text) - call filter(snippets, '!v:val.options.head') - endif - - call filter(snippets, "cur_text =~ get(v:val, 'regexp', '')") - endif - - return snippets -endfunction"}}} -function! neosnippet#get_snippets_directory() "{{{ - call s:check_initialize() - - let snippets_dir = copy(s:snippets_dir) - if !get(g:neosnippet#disable_runtime_snippets, - \ neosnippet#get_filetype(), - \ get(g:neosnippet#disable_runtime_snippets, '_', 0)) - let snippets_dir += s:runtime_dir - endif - - return snippets_dir -endfunction"}}} -function! neosnippet#get_user_snippets_directory() "{{{ - call s:check_initialize() - - return copy(s:snippets_dir) -endfunction"}}} -function! neosnippet#get_runtime_snippets_directory() "{{{ - call s:check_initialize() - - return copy(s:runtime_dir) -endfunction"}}} -function! neosnippet#get_filetype() "{{{ - if !exists('s:exists_context_filetype') - " context_filetype.vim installation check. - try - call context_filetype#version() - let s:exists_context_filetype = 1 - catch - let s:exists_context_filetype = 0 - endtry - endif - - let context_filetype = - \ s:exists_context_filetype ? - \ context_filetype#get_filetype() : &filetype - if context_filetype == '' - let context_filetype = 'nothing' - endif - - return context_filetype -endfunction"}}} -function! s:get_sources_filetypes(filetype) "{{{ - let filetypes = - \ exists('*neocomplete#get_source_filetypes') ? - \ neocomplete#get_source_filetypes(a:filetype) : - \ exists('*neocomplcache#get_source_filetypes') ? - \ neocomplcache#get_source_filetypes(a:filetype) : - \ [(a:filetype == '') ? 'nothing' : a:filetype] - return filetypes + ['_'] -endfunction"}}} - -function! neosnippet#edit_complete(arglead, cmdline, cursorpos) "{{{ - return filter(s:neosnippet_options + neosnippet#filetype_complete( - \ a:arglead, a:cmdline, a:cursorpos), 'stridx(v:val, a:arglead) == 0') -endfunction"}}} -" Complete filetype helper. -function! neosnippet#filetype_complete(arglead, cmdline, cursorpos) "{{{ - " Dup check. - let ret = {} - for item in map( - \ split(globpath(&runtimepath, 'syntax/*.vim'), '\n') + - \ split(globpath(&runtimepath, 'indent/*.vim'), '\n') + - \ split(globpath(&runtimepath, 'ftplugin/*.vim'), '\n') - \ , 'fnamemodify(v:val, ":t:r")') - if !has_key(ret, item) && item =~ '^'.a:arglead - let ret[item] = 1 - endif - endfor - - return sort(keys(ret)) -endfunction"}}} -function! neosnippet#complete_target_snippets(arglead, cmdline, cursorpos) "{{{ - return map(filter(values(neosnippet#get_snippets()), - \ "stridx(v:val.word, a:arglead) == 0 - \ && v:val.snip =~# neosnippet#get_placeholder_target_marker_pattern()"), 'v:val.word') -endfunction"}}} - -function! neosnippet#get_placeholder_target_marker_pattern() "{{{ - return '\${\d\+:TARGET\%(:.\{-}\)\?\\\@' -endfunction"}}} -function! s:get_placeholder_marker_substitute_pattern() "{{{ - return '\${\(\d\+\%(:.\{-}\)\?\\\@' -endfunction"}}} -function! s:get_sync_placeholder_marker_pattern() "{{{ - return '<{\d\+\%(:.\{-}\)\?\\\@' -endfunction"}}} -function! s:get_sync_placeholder_marker_default_pattern() "{{{ - return '<{\d\+:\zs.\{-}\ze\\\@' -endfunction"}}} -function! s:get_mirror_placeholder_marker_pattern() "{{{ - return '<|\d\+|>' -endfunction"}}} -function! s:get_mirror_placeholder_marker_substitute_pattern() "{{{ - return '\$\(\d\+\)' -endfunction"}}} - -function! s:SID_PREFIX() "{{{ - return matchstr(expand(''), '\d\+_') -endfunction"}}} - -function! s:trigger(function) "{{{ - call s:check_initialize() - - let cur_text = neosnippet#util#get_cur_text() - - let col = col('.') - let expr = '' - if mode() !=# 'i' - " Fix column. - let col += 2 - endif - - " Get selected text. - let neosnippet = neosnippet#get_current_neosnippet() - let neosnippet.trigger = 1 - if mode() ==# 's' && neosnippet.selected_text =~ '^#:' - let expr .= "a\" - endif - - let expr .= printf("\:call %s(%s,%d)\", - \ a:function, string(cur_text), col) - - return expr -endfunction"}}} - -function! neosnippet#get_selected_text(type, ...) "{{{ - let sel_save = &selection - let &selection = 'inclusive' - let reg_save = @@ - let pos = getpos('.') - - try - " Invoked from Visual mode, use '< and '> marks. - if a:0 - silent exe "normal! `<" . a:type . "`>y" - elseif a:type == 'line' - silent exe "normal! '[V']y" - elseif a:type == 'block' - silent exe "normal! `[\`]y" - else - silent exe "normal! `[v`]y" - endif - - return @@ - finally - let &selection = sel_save - let @@ = reg_save - call setpos('.', pos) - endtry -endfunction"}}} -function! neosnippet#delete_selected_text(type, ...) "{{{ - let sel_save = &selection - let &selection = 'inclusive' - let reg_save = @@ - let pos = getpos('.') - - try - " Invoked from Visual mode, use '< and '> marks. - if a:0 - silent exe "normal! `<" . a:type . "`>d" - elseif a:type ==# 'V' - silent exe "normal! `[V`]s" - elseif a:type ==# "\" - silent exe "normal! `[\`]d" - else - silent exe "normal! `[v`]d" - endif - finally - let &selection = sel_save - let @@ = reg_save - call setpos('.', pos) - endtry -endfunction"}}} -function! neosnippet#substitute_selected_text(type, text) "{{{ - let sel_save = &selection - let &selection = 'inclusive' - let reg_save = @@ - let pos = getpos('.') - - try - " Invoked from Visual mode, use '< and '> marks. - if a:0 - silent exe "normal! `<" . a:type . "`>s" . a:text - elseif a:type ==# 'V' - silent exe "normal! '[V']hs" . a:text - elseif a:type ==# "\" - silent exe "normal! `[\`]s" . a:text - else - silent exe "normal! `[v`]s" . a:text - endif - finally - let &selection = sel_save - let @@ = reg_save - call setpos('.', pos) - endtry -endfunction"}}} - -function! neosnippet#clear_select_mode_mappings() "{{{ - if !g:neosnippet#disable_select_mode_mappings - return - endif - - redir => mappings - silent! smap - redir END - - for line in map(filter(split(mappings, '\n'), - \ "v:val !~# '^s'"), - \ "substitute(v:val, '', '', 'g')") - let map = matchstr(line, '^\a*\s*\zs\S\+') - let map = substitute(map, '', '', 'g') - - silent! execute 'sunmap' map - silent! execute 'sunmap ' map - endfor - - " Define default select mode mappings. - snoremap a - snoremap a - snoremap a - snoremap a - snoremap a - snoremap bi -endfunction"}}} - -function! s:skip_next_auto_completion() "{{{ - " Skip next auto completion. - if exists('*neocomplcache#skip_next_complete') - call neocomplcache#skip_next_complete() - endif - if exists('*neocomplete#skip_next_complete') - call neocomplete#skip_next_complete() - endif - - let neosnippet = neosnippet#get_current_neosnippet() - let neosnippet.trigger = 0 -endfunction"}}} - -function! s:on_insert_leave() "{{{ - " Get patterns and count. - if empty(s:snippets_expand_stack) - \ || neosnippet#get_current_neosnippet().trigger - return - endif - - let expand_info = s:snippets_expand_stack[-1] - - if expand_info.begin_line != expand_info.end_line - return - endif - - " Search patterns. - let [begin, end] = s:get_snippet_range( - \ expand_info.begin_line, - \ expand_info.begin_patterns, - \ expand_info.end_line, - \ expand_info.end_patterns) - - let pos = getpos('.') - - " Found snippet. - let found = 0 - try - while s:search_snippet_range(begin, end, expand_info.holder_cnt, 0) - " Next count. - let expand_info.holder_cnt += 1 - let found = 1 - endwhile - - " Search placeholder 0. - if s:search_snippet_range(begin, end, 0) - let found = 1 - endif - finally - if found - stopinsert - endif - - call setpos('.', pos) - endtry -endfunction"}}} - -if g:neosnippet#enable_snipmate_compatibility - " For snipMate function. - function! Filename(...) - let filename = expand('%:t:r') - if filename == '' - return a:0 == 2 ? a:2 : '' - elseif a:0 == 0 || a:1 == '' - return filename - else - return substitute(a:1, '$1', filename, 'g') - endif - endfunction -endif - -" Plugin key-mappings. -function! neosnippet#expand_or_jump_impl() - return s:trigger(s:SID_PREFIX().'snippets_expand_or_jump') -endfunction -function! neosnippet#jump_or_expand_impl() - return s:trigger(s:SID_PREFIX().'snippets_jump_or_expand') -endfunction -function! neosnippet#expand_impl() - return s:trigger(s:SID_PREFIX().'snippets_expand') -endfunction -function! neosnippet#jump_impl() - return s:trigger('neosnippet#jump') -endfunction - -function! s:initialize_script_variables() "{{{ - " Initialize. - let s:snippets_expand_stack = [] - let s:snippets = {} - - " Set runtime dir. - let s:runtime_dir = split(globpath(&runtimepath, - \ 'autoload/neosnippet/snippets'), '\n') - let s:runtime_dir += (exists('g:snippets_dir') ? - \ split(g:snippets_dir, '\s*,\s*') - \ : split(globpath(&runtimepath, 'snippets'), '\n')) - call map(s:runtime_dir, 'substitute(v:val, "[\\\\/]$", "", "")') - - " Set snippets_dir. - let s:snippets_dir = [] - for dir in split(g:neosnippet#snippets_directory, '\s*,\s*') - let dir = neosnippet#util#expand(dir) - if !isdirectory(dir) - call mkdir(dir, 'p') - endif - call add(s:snippets_dir, dir) - endfor - call map(s:snippets_dir, 'substitute(v:val, "[\\\\/]$", "", "")') -endfunction"}}} -function! s:initialize_cache() "{{{ - " Caching _ snippets. - call neosnippet#make_cache('_') - - " Initialize check. - call neosnippet#caching() -endfunction"}}} -function! s:initialize_others() "{{{ - augroup neosnippet "{{{ - autocmd! - " Set caching event. - autocmd FileType * call neosnippet#caching() - " Recaching events - autocmd BufWritePost *.snip,*.snippets - \ call neosnippet#recaching() - autocmd BufEnter * - \ call neosnippet#clear_select_mode_mappings() - autocmd InsertLeave * call s:on_insert_leave() - augroup END"}}} - - augroup neosnippet - autocmd BufNewFile,BufRead,Syntax * - \ execute 'syntax match neosnippetExpandSnippets' - \ "'".s:get_placeholder_marker_pattern(). '\|' - \ .s:get_sync_placeholder_marker_pattern().'\|' - \ .s:get_mirror_placeholder_marker_pattern()."'" - \ 'containedin=ALL oneline' - if has('conceal') - autocmd BufNewFile,BufRead,Syntax * - \ syntax region neosnippetConcealExpandSnippets - \ matchgroup=neosnippetExpandSnippets - \ start='<`\d\+:\=\|<{\d\+:\=\|<|' - \ end='`>\|}>\||>' - \ containedin=ALL - \ concealends oneline - endif - augroup END - doautocmd neosnippet BufRead - - hi def link neosnippetExpandSnippets Special - - if get(g:, 'loaded_echodoc', 0) - call echodoc#register('snippets_complete', s:doc_dict) - endif - - call neosnippet#clear_select_mode_mappings() -endfunction"}}} - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: foldmethod=marker diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/Gemfile.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/Gemfile.snip deleted file mode 100644 index b27d1b1..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/Gemfile.snip +++ /dev/null @@ -1,7 +0,0 @@ -snippet source-rubygems -options head - source :rubygems - -snippet gem -options head - gem '${1}', '${2} >= 1.0' diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/_.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/_.snip deleted file mode 100644 index 338ecf9..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/_.snip +++ /dev/null @@ -1,25 +0,0 @@ -# Global snippets - -snippet date -options word - `strftime("%d %b %Y")` - -snippet date_full -alias df -options word - `strftime("%Y-%m-%dT%H:%M:%S")` - -snippet date_day -alias dd -options word - `strftime("%Y-%m-%d")` - -snippet date_time -alias dt -options word - `strftime("%H:%M:%S")` - -snippet lastmod -abbr Last modified time -alias lmod - Last Modified: `strftime("%Y-%m-%dT%H:%M:%S")` diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/actionscript.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/actionscript.snip deleted file mode 100644 index cf98e76..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/actionscript.snip +++ /dev/null @@ -1,265 +0,0 @@ -snippet ec - #endinitclip - - -snippet inc - #include "${1}" - - -snippet br - break; - - -snippet ca - call(${1:#:frame}); - - -snippet case -abbr ce - case ${1:#:expression} : - ${1:TARGET} - - -snippet catch -abbr ch - catch ($1) { - $2 - } - -snippet class - class ${1:#:ClassName} { - var _${2}; - function ${1}(${2}){ - _${2} = ${2};${0} - } - } - -snippet co - continue; - - -snippet dt - default : - ${1:TARGET} - - -snippet de - delete ${1}; - - -snippet do - do { - ${1:TARGET} - } while (${2:#:condition}); - - -snippet dm - duplicateMovieClip(${1:#:target}, ${2:#:newName}, ${3:#:depth}); - - -snippet ei - else if (${1}) { - ${2:TARGET} - } - - -snippet fori -abbr fi - for (var ${1} in ${2}){ - ${3:TARGET} - }; - - -snippet for -abbr fr - for (var ${1} = 0; $1 < ${2}.length; $1++) { - ${0:TARGET} - }; - - -snippet fs - fscommand(${1:#:command}, ${2:#:paramaters}); - - -snippet fn - function ${1}(${2}):${3}{ - ${0:TARGET} - }; - -snippet gu - getURL(${1}); - - -snippet gp - gotoAndPlay(${1}); - - -snippet gs - gotoAndStop(${1}); - -snippet if - if (${1}) { - ${0:TARGET} - } - -snippet il - ifFrameLoaded (${1}) { - ${0:TARGET} - } - -snippet ip - import ${1}; - - -snippet it - interface ${1}{ - ${0:TARGET} - } - - -snippet lm - loadMovie(${1:url}, ${2:target}, ${3:method}); - - -snippet ln - loadMovieNum(${1:url}, ${2:level}, ${3:method}); - - -snippet lv - loadVariables(${1:url}, ${2:target}, ${3:method}); - - -snippet vn - loadVariables(${1:url}, ${2:level}, ${3:method}); - - -snippet mc - MovieClip - - -snippet nf - nextFrame(); - - -snippet ns - nextScene(); - - -snippet on - on (${1}) { - ${2} - }; - - -snippet oc - onClipEvent (${1}) { - ${0:TARGET} - }; - -snippet pl - play(); - - -snippet pf - pravFrame(); - - -snippet ps - prevScene(); - - -snippet pr - print(${1:#:target}, ${2:#:type}); - - -snippet bn - printAsBitmapNum(${1:#:level}, ${2:#:type}); - - -snippet pn - printNum(${1:#:level}, ${2:#:type}); - - -snippet rm - removeMovieClip(${1:#:target}); - - -snippet rt - return ${1}; - - -snippet sp - setProperty(${1:#:target}, ${2:#:property}, ${3:#:value}); - - -snippet sv - set(${1:#:name}, ${2:#:value}); - - -snippet dr - startDrag(${1:#:target}, ${2:#:lockcenter}, ${3:#:l}, ${4:#:t}, ${5:#:r}, ${6:#:b} ); - - -snippet st - stop(); - - -snippet ss - stopAllSounds(); - - -snippet sd - stopDrag(); - - -snippet sw - switch ( ${1:#:condition} ) { - ${0:TARGET} - } - - -snippet tt - tellTarget( ${1:#:target} ) { - ${0:TARGET} - } - -snippet th - throw ${1}; - - -snippet tq - toggleHighQuality(); - - -snippet tr - trace(${1:"$0"}); - - -snippet ty - try { - ${0:TARGET} - }; - -snippet um - unloadMovie(${1:#:target}); - - -snippet un - unloadMovieNum(${1:#:level}); - - -snippet vr - var ${1}:${2}; - - -snippet wh - while (${1:#:condition}) { - ${0:TARGET} - }; - - -snippet wt - with (${1:#:target}); - ${0:TARGET} - }; - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/apache.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/apache.snip deleted file mode 100644 index df391c6..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/apache.snip +++ /dev/null @@ -1,22 +0,0 @@ -snippet allow - AllowOverride ${1:#:AuthConfig} ${2:#:FileInfo} ${3:#:Indexes} ${4:#:Limit} ${5:#:Options} - - -snippet opt - Options ${1:#:All} ${2:#:ExecCGI} ${3:#:FollowSymLinks} ${4:#:Includes} ${5:#:IncludesNOEXEC} ${6:#:Indexes} ${7:#:MultiViews} ${8:#:SymLinksIfOwnerMatch} - - -snippet vhost - - ServerAdmin webmaster@${1} - DocumentRoot /www/vhosts/${1} - ServerName ${1} - ErrorLog logs/${1}-error_log - CustomLog logs/${1}-access_log common - - -snippet dir - - ${0} - - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/applescript.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/applescript.snip deleted file mode 100644 index 391d4f3..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/applescript.snip +++ /dev/null @@ -1,185 +0,0 @@ -snippet script - script ${1:#:new_object} - on run - ${2:TARGET} - end run - end script - - -snippet on - on ${1:#:functionName}(${2:#:arguments}) - ${3:TARGET} - end ${1} - - -snippet tell - tell ${1:#:app} - ${0:TARGET} - end tell - -snippet terms - using terms from ${1:#:app} - ${0:TARGET} - end using terms from - - -snippet if - if ${1:true} then - ${0:TARGET} - end if - - -snippet rept -abbr rep - repeat ${1} times} - ${0:TARGET} - end repeat - - -snippet repwh -abbr rep - repeat while ${1:#:condition} - ${0:TARGET} - end repeat - - -snippet repwi -abbr rep - repeat with ${1} in ${2} - ${0:TARGET} - end repeat - - -snippet try - try - ${0:TARGET} - on error - -- error handling - end try - -snippet timeout - with timeout ${1:#:number} seconds - ${0:TARGET} - end timeout - -snippet con - considering ${1:#:case} - ${0:TARGET} - end considering - - -snippet ign - ignoring ${1:#:application responses} - ${0:TARGET} - end ignoring - -snippet shell - ${1:#:set shell_stdout to }do shell script ${3:"${2:#script}"} - without altering line endings - ${0} - -snippet delim - set oldDelims to AppleScript's text item delimiters - set AppleScript's text item delimiters to {"${1:,}"} - ${0:#:TARGET} - set AppleScript's text item delimiters to oldDelims - - -snippet parent - prop parent : app "${1}" - - -snippet alert - display alert "${1:#:alert text}" - ${2:#:message} "${3:#:message text}" - ${4:#:as warning} - -snippet dialog_OK -abbr dialog - display dialog "${1:#:text}" - ${2:#:with icon} ${3:1} - buttons {"${4:OK}"} default button 1 - - -snippet dialog_OK/Cancel -abbr dialog - display dialog "${1:#:text}" - ${2:#:with icon} - buttons {"${3:Cancel}", "${4:OK}"} - default button "${4}" - set button_pressed to button returned of result - if button_pressed is "${4}" then - ${5:#:TARGET} - else - -- action for cancel button goes here - end if - -snippet dialog_OK/Cancel/Other -abbr dialog - display dialog "${1:#:text}" - ${2:#:with icon} - buttons {"${3:Cancel}", "${4:Other Choice}", "${5:OK}"} - default button "${5}" - set button_pressed to button returned of result - if button_pressed is "${5}" then - ${6:TARGET} - else if button_pressed is "${3}" then - -- action for cancel button goes here - else - -- action for other button goes here - end if - -snippet dialog_TextFierld -abbr dialog - set the_result to display dialog "${1:#:text}" - default answer "${2:#:type here}" - ${3:#:with icon} - buttons {"${4:Cancel}", "${5:OK}"} - default button "${5}" - set button_pressed to button returned of the_result - set text_typed to text returned of the_result - if button_pressed is "${5}" then - ${6:#:TARGET} - else - -- action for cancel button goes here - end if - -snippet choose_Applications -abbr choose - ${1:#:set the_application to }choose application with prompt "${2:#:Choose an application:}"${3:#:with multiple selections allowed} - -snippet choose_Files -abbr choose - ${1:#:set the_file to }choose file with prompt "${2:#:Pick a file:}" - ${3:#:default location path to home folder} - ${4:#:with invisibles} - ${5:#:with multiple selections allowed} - ${6:#:with showing package contents} - - -snippet choose_Folders -abbr choose - ${1:#:set the_folder to }choose folder with prompt "${2:#:Pick a folder:}" - ${3:#:default location path to home folder} - ${4:#:with invisibles} - ${5:#:with multiple selections allowed} - ${6:#:with showing package contents} - ${0} - -snippet choose_NewFile -abbr choose - ${1:#:set the_filename to }choose file name with prompt "${2:#:Name this file:}" - default name "${3:untitled}" default location ${4:#:path to home folder} - -snippet choose_URL -abbr choose - ${1:#:set the_url to }choose URL showing ${2:Web} servers with editable URL - -snippet choose_Color -abbr choose - ${1:#:set the_color to }choose color default color ${2:{65536, 65536, 65536\}} - -snippet choose_ItemFromList -abbr choose - set the_choice to choose from list ${1}"\}} - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/c.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/c.snip deleted file mode 100644 index 151e4b1..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/c.snip +++ /dev/null @@ -1,153 +0,0 @@ -snippet if -abbr if () {} - if (${1:#:condition}) { - ${0:TARGET} - } - -snippet else - else { - ${0:TARGET} - } - -snippet elseif - else if (${1:#:condition}) { - ${0:TARGET} - } - -snippet ifelse -abbr if () {} else {} - if (${1:#:condition}) { - ${2:TARGET} - } else { - ${3} - } - -snippet for -abbr for () {} - for (${1} = 0; $1 < ${2}; $1++) { - ${0:TARGET} - } - -snippet while -abbr while () {} - while (${1:#:condition}) { - ${0:TARGET} - } - -snippet do_while -alias do - do { - ${0:TARGET:code} - } while (${1:#:condition}); - -snippet switch -abbr switch () {} - switch (${1:#:var}) { - case ${2:#:val}: - ${0:TARGET} - break; - } - -snippet function -alias func -abbr func() {} - ${1:void} ${2:#:func_name}(${3:#:args}) { - ${0:TARGET} - } - -snippet struct -abbr struct {} - struct ${1:#:name} { - ${0:TARGET:data} - }; - -# Typedef struct -snippet struct_typedef - typedef struct ${1:#:name} { - ${0:TARGET:data} - }; - -snippet enum -abbr enum {} - enum ${1:#:name} { - ${0:TARGET} - }; - -# hard-tab is necessary; C indent doesn't support this. -snippet main - int main(int argc, char const* argv[]) - { - ${0:TARGET} - return 0; - } - -# #include <...> -snippet inc -alias #inc, #include - #include <${1:stdio}.h>${0} -# #include "..." -snippet inc2 -alias #inc2, #include2 - #include "${1}.h"${0} - -snippet ifndef -alias #ifndef -abbr #ifndef ... #define ... #endif - #ifndef $1 - #define ${1:#:SYMBOL} - #endif${0} - -snippet def -alias #def, #define - #define - -# Include-Guard -snippet once -abbr include-guard - #ifndef ${1:SYMBOL} - #define $1 - - ${0:TARGET} - #endif /* end of include guard */ - -# Ternary conditional operator -snippet conditional - (${1:#:condition}) ? ${2:#:a} : ${3:#:b} - -snippet typedef - typedef ${1:#:base_type} ${2:#:custom_type}; - -snippet printf -abbr printf("...\n", ...); - printf("${1}\n", ${2}); - -snippet fprintf -abbr fprintf(..., "...\n", ...); - fprintf(${1:stderr}, "${2}\n"${3}); - -snippet comment -alias /* - /* ${1:#:comment} */ - ${0} - -snippet sizeof -alias size - sizeof(${0:TARGET}) - -snippet helloworld - #include - int main(int argc, char const* argv[]) - { - puts("hello, world!"); - return 0; - } - -snippet fopen -abbr fopen("...", "..."); - fopen("${1:PATH}", "${2:MODE}"); - ${0:TARGET} - fclose(${3:FD}); - -snippet fgets -abbr fgets(row, length, file); - fgets(${0:ROW}, ${1:LENGTH}, ${2:FILE}); diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/clojure.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/clojure.snip deleted file mode 100644 index 11882f7..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/clojure.snip +++ /dev/null @@ -1,32 +0,0 @@ -snippet defn-doc -abbr defn function "..." [...] ... -options head - (defn ${1:name} - "${2:doc}" - [${3}] - ${0}) - -snippet try -abbr (try ... (catch ... - (try - ${1} - (catch ${2:Exception} e ${3:nil})) - -snippet ref-set -abbr (dosync (ref-set ... -options head - (dosync - (ref-set ${1:ref} ${2:value})) - -# http://tnoda-clojure.tumblr.com/post/24969285880/clojure-scripting -snippet shebang -options head - #^:shebang '[ - exec java -cp \`locate clojure- | grep -P "clojure-[\\d\\.]+\\.jar$" | tail -1\` clojure.main "\$0" - ] - - -snippet warn -options head - (binding [*out* *err*] - (println ${0:TARGET})) diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/coffee.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/coffee.snip deleted file mode 100644 index 55db9e1..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/coffee.snip +++ /dev/null @@ -1,72 +0,0 @@ -snippet req - ${1:#:object} = require('$1') - -snippet log - console.log ${0} - -snippet unl - ${1:#:action} unless ${2:#:condition} - -snippet try - try - ${1:TARGET} - catch ${2:#:error} - ${3} - -snippet if - if ${1:#:condition} - ${0:TARGET} - -snippet elif - else if ${1:#:condition} - ${0:TARGET} - -snippet ifte - if ${1:#:condition} then ${2:#:value} else ${3:#:other} - -snippet ife - if ${1:#:condition} - ${2:TARGET} - else - ${3:#:body...} - -snippet swi - switch ${1:#:object} - when ${2:#:value} - ${0:TARGET} - -snippet ^j - \`${1:javascript}\` - -snippet forr - for ${1:#:name} in [${2:#:start}..${3:#:finish}]${4: by ${5:#:step\}} - ${0:TARGET} - -snippet forrex - for ${1:#:name} in [${2:#:start}...${3:#:finish}]${4: by ${5:#:step\}} - ${0:TARGET} - -snippet foro - for ${1:#:key}, ${2:#:value} of ${3:#:object} - ${0:TARGET} - -snippet fora - for ${1:#:name} in ${2:#:array} - ${0:TARGET} - -snippet fun - ${1:#:name} = (${2:#:args}) -> - ${0:TARGET} - -snippet bfun - (${1:#:args}) => - ${0:TARGET} - -snippet cla -abbr cla -options head - class ${1:#:ClassName}${2: extends ${3:#:Ancestor\}} - - constructor: (${4:#:args}) -> - ${5:TARGET} - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/cpp.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/cpp.snip deleted file mode 100644 index 2b0f84d..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/cpp.snip +++ /dev/null @@ -1,76 +0,0 @@ -include c.snip - -snippet template -abbr template - template - -snippet class -abbr class {} - class ${1:#:name} { - ${2} - }; - -snippet try -abbr try catch - try { - ${1:TARGET} - } catch (${2:e:xception}) { - ${3} - } - -# range based for ( C++11 feature ) -snippet for_CPP11 -abbr for (:) {} - for (${1:#:var} : ${2:#:container}) { - ${0:TARGET} - } - -# lambda expression ( C++11 feature ) -snippet lambda -abbr [](){} - [${1}](${2})${3}{ ${4:TARGET} } - -# scoped enumeration ( C++11 feature ) -snippet enum_scoped -abbr enum struct {} - enum struct { ${1:TARGET} } - -# static assert ( C++11 feature ) -snippet static_assert -abbr static_assert(,"") - static_assert( ${1}, "${2}" );${0} - -delete namespace -snippet namespace -abbr namespace {} -options head - namespace ${1:#:name} { - ${0:TARGET} - } // namespace $1 - -snippet static_cast -abbr static_cast<>() - static_cast<${1}>(${2})${0} - -snippet reinterpret_cast -abbr reinterpret_cast<>() - reinterpret_cast<${1}>(${2})${0} - -snippet const_cast -abbr const_cast<>() - const_cast<${1}>(${2})${0} - -snippet dynamic_cast -abbr dynamic_cast<>() - dynamic_cast<${1}>(${2})${0} - -snippet helloworld -abbr #include int main... - #include - int main(int argc, char const* argv[]) - { - using namespace std; - cout << "hello, world!" << endl; - return 0; - } - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/css.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/css.snip deleted file mode 100644 index 0daa163..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/css.snip +++ /dev/null @@ -1,251 +0,0 @@ -snippet background -alias bg - background:${1};${2} - -snippet backattachment -alias ba - background-attachment:${1};${2} - -snippet backcolor -alias bc - background-color:${1};${2} - -snippet backimage -alias bi - background-image:${1};${2} - -snippet backposition -alias bp - background-position:${1};${2} - -snippet backrepeat -alias br - background-repeat:${1};${2} - -snippet border -alias b - border:${1};${2} - -snippet border-style -alias bs - border-style:${1};${2} - -snippet border-color -alias bc - border-color:${1};${2} - -snippet border-width -alias bw - border-width:${1};${2} - -snippet border-bottom-width -alias bbw - border-bottom-width:${1};${2} - -snippet border-top-width -alias btw - border-top-width:${1};${2} - -snippet border-left-width -alias blw - border-left-width:${1};${2} -snippet border-right-width -alias brw - border-right-width:${1};${2} - - -snippet border-bottom-style -alias bbs - border-bottom-style:${1};${2} - -snippet border-top-style -alias bts - border-top-style:${1};${2} - -snippet border-left-style -alias bls - border-left-style:${1};${2} -snippet border-right-style -alias brs - border-right-style:${1};${2} - - -snippet border-bottom-color -alias bbc - border-bottom-color:${1};${2} - -snippet border-top-color -alias btc - border-top-color:${1};${2} - -snippet border-left-color -alias blc - border-left-color:${1};${2} -snippet border-right-color -alias brc - border-right-color:${1};${2} - -snippet outline -alias ol - outline:${1};${2} - -snippet outline-color -alias oc - outline-color:${1};${2} - -snippet outline-style -alias os - outline-style:${1};${2} - -snippet outline-width -alias ow - outline-width:${1};${2} - -snippet color -alias c - color:${1};${2} - -snippet direction -alias d - direction:${1};${2} - -snippet letter-spacing -alias ls - letter-spacing:${1};${2} - -snippet line-height -alias lh - line-height:${1};${2} - -snippet text-align -alias ta - text-align:${1};${2} - -snippet text-decoration -alias td - text-decoration:${1};${2} - -snippet text-indent -alias ti - text-indent:${1};${2} - -snippet text-transform -alias tt - text-transform:${1};${2} - -snippet unicode-bidi -alias ub - unicode-bidi:${1};${2} - -snippet white-space -alias ws - white-space:${1};${2} - -snippet word-spacing -alias ws - word-spacing:${1};${2} - -snippet font -alias f - font:${1};${2} - -snippet font-family -alias ff - font-family:${1:"Times New Roman",Georgia,Serif};${2} - -snippet font-size -alias fs - font-size:${1};${2} - -snippet font-style -alias fs - font-style:${1};${2} - -snippet font-weight -alias fw - font-weight:${1};${2} - -snippet margin -alias m - margin:${1};${2} - -snippet margin-bottom -alias mb - margin-bottom:${1};${2} - -snippet margin-top -alias mt - margin-top:${1};${2} - -snippet margin-left -alias ml - margin-left:${1};${2} - -snippet margin-right -alias mr - margin-right:${1};${2} - -snippet padding -alias p - padding:${1};${2} - -snippet padding-bottom -alias pb - padding-bottom:${1};${2} - -snippet padding-top -alias pt - padding-top:${1};${2} - -snippet padding-left -alias pl - padding-left:${1};${2} - -snippet padding-right -alias pr - padding-right:${1};${2} - -snippet list-style -alias ls - list-style:${1};${2} - -snippet list-style-image -alias lsi - list-style-image:${1};${2} - -snippet list-style-position -alias lsp - list-style-position:${1};${2} - -snippet list-style-type -alias lst - list-style-type:${1};${2} - -snippet content -alias c - content:${1};${2} - -snippet height -alias h - height:${1};${2} - -snippet max-height -alias mah - max-height:${1};${2} - -snippet max-width -alias maw - max-width:${1};${2} - -snippet min-height -alias mih - min-height:${1};${2} - -snippet min-width -alias miw - min-width:${1};${2} - -snippet width -alias w - width:${1};${2} - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/d.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/d.snip deleted file mode 100644 index b173a4e..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/d.snip +++ /dev/null @@ -1,40 +0,0 @@ -include c.snip - -# Delete snippet depended on C. -delete struct -delete struct_typedef -delete enum -delete main -delete inc -delete inc2 -delete Inc -delete Def -delete def -delete once -delete printf -delete fprintf - -snippet foreach -abbr foreach() {} - foreach (${1:#:var}; ${2:#:list}) { - ${3:TARGET} - } - -snippet class -abbr class {} - class ${1:#:name} { - ${2:TARGET} - } - -snippet struct -abbr struct {} - struct ${1:#:name} { - ${2:TARGET} - } - -snippet enum -abbr enum {} - enum ${1:#:name} { - ${2:TARGET} - } - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/erlang.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/erlang.snip deleted file mode 100644 index fe1203a..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/erlang.snip +++ /dev/null @@ -1,21 +0,0 @@ -snippet helloworld -options head - - - main(_) -> io:format("Hello, world!\n"). - -snippet -module -options head - -module(${0:module}). - -snippet -export -options head - -export([${0:f/1}]). - -snippet ioformat -options word - io:format("${1:~w~n}"${2:, []}) - -snippet main -options head - main(_) -> ${0}. diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/eruby.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/eruby.snip deleted file mode 100644 index 583a9c6..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/eruby.snip +++ /dev/null @@ -1,20 +0,0 @@ -snippet ruby_print -abbr <%= %> - <%= ${1:TARGET} %>${2} - -snippet ruby_code -abbr <% %> - <% ${1:TARGET} %>${2} - -snippet ruby_print_nonl -abbr <%= -%> - <%= ${1:TARGET} -%>${2} - -snippet ruby_code_nonl -abbr <% -%> - <% ${1:TARGET} -%>${2} - -snippet comment -abbr <%# %> - <%# ${1:TARGET} %>${2} - diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/go.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/go.snip deleted file mode 100644 index fa85f48..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/go.snip +++ /dev/null @@ -1,51 +0,0 @@ -snippet helloworld -abbr package main\nimport fmt... -options head - package main - - import ( - "fmt" - ) - - func main() { - fmt.Printf("Hello, world\n") - } - -snippet func -abbr func ...() { ... } -options head - func ${1:fname}(${2}) ${3:int }{ - ${0:TARGET:return } - } - -snippet import -options head - import ( - "${1:fmt}" - ) - ${0:TARGET} - -snippet package -options head - package ${1:main} - ${0:TARGET} - -snippet printf -options word - fmt.Printf("${1}\n"${2:}) - -snippet println -options word - fmt.Println(${0:TARGET}) - -snippet struct -options head - type ${1} struct { - ${0:TARGET} - } - -snippet interface -options head - type ${1} interface { - ${0:TARGET} - } diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/groovy.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/groovy.snip deleted file mode 100644 index b741379..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/groovy.snip +++ /dev/null @@ -1,29 +0,0 @@ -snippet helloworld -options head - package ${1:com.github.ujihisa} - - class ${2:TARGET} { - public static void main(String[] args) { - println("Hello world!") - } - } - -snippet gradle -options head - apply plugin: 'groovy' - apply plugin: 'maven' - - repositories { - mavenCentral() - ${2:mavenLocal()} - } - - dependencies { - compile 'org.codehaus.groovy:groovy-all:2.1.1' - //testCompile group: 'junit', name: 'junit', version: '4.+' - } - - jar { - from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } - } - manifest.mainAttributes("Main-Class": "${1:com.github.`$USER`.}") diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/haskell.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/haskell.snip deleted file mode 100644 index 3e2a392..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/haskell.snip +++ /dev/null @@ -1,32 +0,0 @@ -snippet import -abbr import qualified ... as ... - import qualified ${1} as ${2} - -snippet importOnly -abbr import ... (...) - import ${1} (${2}) - -snippet language -abbr {-# LANGUAGE ... #-} - {-# LANGUAGE ${1} #-} - -# hard-tab is necessary -snippet case -abbr case ... of - case ${1} of - ${2} -> ${0} - -snippet main -abbr main = do - main = do - ${0} - -snippet class -options head - class ${1:Class} ${2:a} where - ${3:function} :: ${4:Type} - -snippet instance -options head - instance ${1:Class} ${2:Type} where - ${3:function} ${4:self} = ${0:TARGET} diff --git a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/html.snip b/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/html.snip deleted file mode 100644 index 92b1d66..0000000 --- a/etc/soft/vim/vim/+plugins/neosnippet.vim/autoload/neosnippet/snippets/html.snip +++ /dev/null @@ -1,301 +0,0 @@ -snippet doctypetransitional - - -snippet doctypeframeset - - -snippet doctypestrict - - -snippet head - - - ${2} - - ${4} - ${5} - -snippet metaauthor - ${2} -snippet keywords - ${2} -snippet metaothers - ${2} -snippet metagenerator - ${2} -snippet metadescription - ${2} - -snippet scriptcharset - ${3} -snippet script - ${2} - -snippet body - - ${1:TARGET} - - -snippet h -options word - ${2}${3} - -snippet p -options word -

${1}

${2} - -snippet br -options word -
- -snippet hr -options word -
- -snippet comment -options word - ${2} - -snippet b -options word - ${1:TARGET}${2} -snippet small -options word - ${1:TARGET}${2} -snippet strong -options word - ${1:TARGET}${2} -snippet sub -options word - ${1:TARGET}${2} -snippet sup -options word - ${1:TARGET}${2} -snippet ins -options word - ${1:TARGET}${2} -snippet del -options word - ${1:TARGET}${2} -snippet em -options word - ${1:TARGET}${2} -snippet bdo -options word - ${2:TARGET}${3} -snippet pre -
-    ${1:TARGET}
-    
${2} -snippet blockquote -
- ${1} -
- ${2} -snippet link -abbr link stylesheet css - ${4} - -snippet alignl - text-align="left" -snippet alignr - text-align="right" -snippet alignc - text-align="center" - -snippet bgcolor - bgcolor="${1}"${2} - -snippet ahref -options word - ${2:TARGET}${3} -snippet ahref_blank -options word - ${2:TARGET}${3} -snippet ahref_parent -options word - ${2:TARGET}${3} -snippet ahref_top -options word - ${2:TARGET}${3} -snippet aname -options word - ${2:TARGET}${3} - -snippet framesetcols - - ${2:TARGET} - ${3} -snippet framesetrows - ${3} - -snippet iframe -options word - ${2} -snippet table - - ${2:TARGET} -
${3} - -snippet th -options word - ${1:TARGET}${2} - -snippet ulsquare -options word -
    ${1:TARGET}
${2} -snippet ulcircle -options word -
    ${1:TARGET}
${2} -snippet uldisc -options word -
    ${1:TARGET}
${2} - -snippet ol -options word -
    ${1:TARGET}
${2} -snippet olA -options word -
    ${1:TARGET}
${2} -snippet ola -options word -
    ${1:TARGET}
${2} -snippet olI -options word -
    ${1:TARGET}
${2} -snippet oli -options word -
    ${1:TARGET}
${2} - -snippet li -options word -
  • ${1:TARGET}
  • ${2} - -snippet dl -options word -
    ${1:TARGET}
    ${2} -snippet dt -options word -
    ${1:TARGET}
    ${2} -snippet dd -options word -
    ${1:TARGET}
    ${2} - -snippet form -
    - ${1:TARGET} -
    ${2} - -snippet inputtext -options word - ${2} -snippet inputpassword -options word - ${2} -snippet inputradio -options word - ${2} -snippet inputcheckbox -options word - ${2} - -snippet textarea - - ${4} - -snippet button -options word - ${2} - -snippet select -options word - ${2} - -snippet optgroup - - ${2:TARGET} - ${3} -snippet option -options word - ${3} - -snippet label -options word -