Browse files

delete files

  • Loading branch information...
1 parent 9708b98 commit defc648829766499608482c92119c475cbb4c393 @xwuxin committed Mar 6, 2013
Showing with 0 additions and 22,033 deletions.
  1. +0 −1 bundle/abolish
  2. +0 −1 bundle/ack.vim
  3. +0 −6 bundle/acp.vim/README.mkd
  4. +0 −452 bundle/acp.vim/doc/acp.cnx
  5. +0 −512 bundle/acp.vim/doc/acp.txt
  6. +0 −45 bundle/acp.vim/doc/tags
  7. +0 −47 bundle/acp.vim/doc/tags-cn
  8. +0 −1 bundle/align
  9. +0 −189 bundle/autoclose/plugin/autoclose.vim
  10. BIN bundle/bash-support.zip
  11. +0 −205 bundle/bash-support/README.bashsupport
  12. +0 −13 bundle/bash-support/codesnippets/_debug_PS4
  13. +0 −16 bundle/bash-support/codesnippets/_debug_assert
  14. +0 −15 bundle/bash-support/codesnippets/_debug_function.noindent
  15. +0 −3 bundle/bash-support/codesnippets/_debug_print_pos_param
  16. +0 −16 bundle/bash-support/codesnippets/_debug_timestamp.noindent
  17. +0 −21 bundle/bash-support/codesnippets/_trap_DEBUG
  18. +0 −15 bundle/bash-support/codesnippets/_trap_ERR
  19. +0 −14 bundle/bash-support/codesnippets/_trap_EXIT
  20. +0 −17 bundle/bash-support/codesnippets/_trap_RETURN
  21. +0 −5 bundle/bash-support/codesnippets/basename+pathname
  22. +0 −11 bundle/bash-support/codesnippets/basename-function
  23. +0 −3 bundle/bash-support/codesnippets/check-for-signed-integer
  24. +0 −3 bundle/bash-support/codesnippets/check-for-unsigned-integer
  25. +0 −5 bundle/bash-support/codesnippets/check-number-of-command-line-arguments
  26. +0 −3 bundle/bash-support/codesnippets/create-tempfile
  27. +0 −18 bundle/bash-support/codesnippets/create-tempfile-in-secure-manner
  28. +0 −19 bundle/bash-support/codesnippets/create-tempfile-with-trap
  29. +0 −8 bundle/bash-support/codesnippets/free-software-comment
  30. +0 −8 bundle/bash-support/codesnippets/read-and-split-into-array
  31. +0 −3 bundle/bash-support/codesnippets/timestamp
  32. +0 −39 bundle/bash-support/codesnippets/usage-and-command-line-arguments.noindent
  33. +0 −15 bundle/bash-support/codesnippets/use-file-descriptor-read
  34. +0 −13 bundle/bash-support/codesnippets/use-file-descriptor-write
  35. +0 −29 bundle/bash-support/codesnippets/well-behaved-script
  36. +0 −360 bundle/bash-support/doc/ChangeLog
  37. BIN bundle/bash-support/doc/bash-hot-keys.pdf
  38. +0 −246 bundle/bash-support/doc/bash-hot-keys.tex
  39. 0 bundle/bash-support/doc/tags-te
  40. +0 −9 bundle/bash-support/rc/customization.bashrc
  41. +0 −57 bundle/bash-support/rc/customization.gvimrc
  42. +0 −192 bundle/bash-support/rc/customization.vimrc
  43. +0 −34 bundle/bash-support/scripts/wrapper.sh
  44. +0 −19 bundle/bash-support/templates/Templates
  45. +0 −81 bundle/bash-support/templates/bash.comments.template
  46. +0 −64 bundle/bash-support/templates/bash.paramsub.template
  47. +0 −61 bundle/bash-support/templates/bash.statements.template
  48. +0 −261 bundle/bash-support/wordlists/bash.list
  49. +0 −54 bundle/c.vim/README
  50. +0 −242 bundle/c.vim/README.csupport
  51. +0 −204 bundle/c.vim/c-support/codesnippets/Makefile
  52. +0 −70 bundle/c.vim/c-support/codesnippets/Makefile.multi-target.template
  53. +0 −36 bundle/c.vim/c-support/codesnippets/calloc_double_matrix.c
  54. +0 −35 bundle/c.vim/c-support/codesnippets/calloc_int_matrix.c
  55. +0 −20 bundle/c.vim/c-support/codesnippets/main.c
  56. +0 −19 bundle/c.vim/c-support/codesnippets/main.cc
  57. +0 −28 bundle/c.vim/c-support/codesnippets/print_array.cc.noindent
  58. +0 −35 bundle/c.vim/c-support/codesnippets/print_double_array.c.noindent
  59. +0 −36 bundle/c.vim/c-support/codesnippets/print_int_array.c.noindent
  60. +0 −8 bundle/c.vim/c-support/rc/customization.ctags
  61. +0 −57 bundle/c.vim/c-support/rc/customization.gvimrc
  62. +0 −8 bundle/c.vim/c-support/rc/customization.indent.pro
  63. +0 −222 bundle/c.vim/c-support/rc/customization.vimrc
  64. +0 −30 bundle/c.vim/c-support/scripts/wrapper.sh
  65. +0 −30 bundle/c.vim/c-support/templates/Templates
  66. +0 −179 bundle/c.vim/c-support/templates/c.comments.template
  67. +0 −484 bundle/c.vim/c-support/templates/c.cpp.template
  68. +0 −141 bundle/c.vim/c-support/templates/c.idioms.template
  69. +0 −54 bundle/c.vim/c-support/templates/c.preprocessor.template
  70. +0 −69 bundle/c.vim/c-support/templates/c.statements.template
  71. +0 −168 bundle/c.vim/c-support/templates/cpp.comments.template
  72. +0 −447 bundle/c.vim/c-support/templates/cpp.cpp.template
  73. +0 −117 bundle/c.vim/c-support/templates/cpp.idioms.template
  74. +0 −54 bundle/c.vim/c-support/templates/cpp.preprocessor.template
  75. +0 −72 bundle/c.vim/c-support/templates/cpp.statements.template
  76. +0 −220 bundle/c.vim/c-support/wordlists/c-c++-keywords.list
  77. +0 −108 bundle/c.vim/c-support/wordlists/k+r.list
  78. +0 −202 bundle/c.vim/c-support/wordlists/stl_index.list
  79. +0 −470 bundle/c.vim/doc/ChangeLog
  80. BIN bundle/c.vim/doc/c-hotkeys.pdf
  81. +0 −355 bundle/c.vim/doc/c-hotkeys.tex
  82. +0 −2,257 bundle/c.vim/doc/csupport.txt
  83. +0 −79 bundle/c.vim/doc/tags
  84. 0 bundle/c.vim/doc/tags-te
  85. +0 −487 bundle/c.vim/ftplugin/c.vim
  86. +0 −31 bundle/c.vim/ftplugin/make.vim
  87. +0 −3,753 bundle/c.vim/plugin/c.vim
  88. +0 −3 bundle/command-t/.bundle/config
  89. +0 −2 bundle/command-t/.gitignore
  90. +0 −6 bundle/command-t/.gitmodules
  91. +0 −1 bundle/command-t/.mailmap
  92. +0 −1 bundle/command-t/.rspec
  93. +0 −2 bundle/command-t/.vim_org.yml
  94. +0 −5 bundle/command-t/Gemfile
  95. +0 −26 bundle/command-t/Gemfile.lock
  96. +0 −22 bundle/command-t/LICENSE
  97. +0 −21 bundle/command-t/Makefile
  98. +0 −817 bundle/command-t/README.txt
  99. +0 −216 bundle/command-t/Rakefile
  100. +0 −16 bundle/command-t/bin/autospec
  101. +0 −16 bundle/command-t/bin/htmldiff
  102. +0 −16 bundle/command-t/bin/ldiff
  103. +0 −16 bundle/command-t/bin/nokogiri
  104. +0 −16 bundle/command-t/bin/rake
  105. +0 −16 bundle/command-t/bin/rspec
  106. +0 −37 bundle/command-t/command-t.gemspec
  107. +0 −10 bundle/command-t/compile-test.sh
  108. +0 −1 bundle/command-t/doc/.gitignore
  109. +0 −817 bundle/command-t/doc/command-t.txt
  110. +0 −1 bundle/command-t/fixtures/bar/abc
  111. +0 −1 bundle/command-t/fixtures/bar/xyz
  112. +0 −1 bundle/command-t/fixtures/baz
  113. +0 −1 bundle/command-t/fixtures/bing
  114. +0 −1 bundle/command-t/fixtures/foo/alpha/t1
  115. +0 −1 bundle/command-t/fixtures/foo/alpha/t2
  116. +0 −1 bundle/command-t/fixtures/foo/beta
  117. +0 −25 bundle/command-t/multi-spec.sh
  118. +0 −173 bundle/command-t/plugin/command-t.vim
  119. +0 −6 bundle/command-t/ruby/command-t/.gitignore
  120. +0 −330 bundle/command-t/ruby/command-t/controller.rb
  121. +0 −24 bundle/command-t/ruby/command-t/depend
  122. +0 −65 bundle/command-t/ruby/command-t/ext.c
  123. +0 −36 bundle/command-t/ruby/command-t/ext.h
  124. +0 −32 bundle/command-t/ruby/command-t/extconf.rb
  125. +0 −52 bundle/command-t/ruby/command-t/finder.rb
  126. +0 −35 bundle/command-t/ruby/command-t/finder/buffer_finder.rb
  127. +0 −35 bundle/command-t/ruby/command-t/finder/file_finder.rb
  128. +0 −35 bundle/command-t/ruby/command-t/finder/jump_finder.rb
  129. +0 −189 bundle/command-t/ruby/command-t/match.c
  130. +0 −29 bundle/command-t/ruby/command-t/match.h
  131. +0 −390 bundle/command-t/ruby/command-t/match_window.rb
  132. +0 −164 bundle/command-t/ruby/command-t/matcher.c
  133. +0 −30 bundle/command-t/ruby/command-t/matcher.h
  134. +0 −165 bundle/command-t/ruby/command-t/prompt.rb
  135. +0 −49 bundle/command-t/ruby/command-t/ruby_compat.h
  136. +0 −28 bundle/command-t/ruby/command-t/scanner.rb
  137. +0 −42 bundle/command-t/ruby/command-t/scanner/buffer_scanner.rb
  138. +0 −101 bundle/command-t/ruby/command-t/scanner/file_scanner.rb
  139. +0 −53 bundle/command-t/ruby/command-t/scanner/jump_scanner.rb
  140. +0 −77 bundle/command-t/ruby/command-t/settings.rb
  141. +0 −42 bundle/command-t/ruby/command-t/stub.rb
  142. +0 −51 bundle/command-t/ruby/command-t/vim.rb
  143. +0 −40 bundle/command-t/ruby/command-t/vim/path_utilities.rb
  144. +0 −32 bundle/command-t/ruby/command-t/vim/screen.rb
  145. +0 −38 bundle/command-t/ruby/command-t/vim/window.rb
  146. +0 −102 bundle/command-t/spec/command-t/controller_spec.rb
  147. +0 −78 bundle/command-t/spec/command-t/finder/buffer_finder_spec.rb
  148. +0 −80 bundle/command-t/spec/command-t/finder/file_finder_spec.rb
  149. +0 −236 bundle/command-t/spec/command-t/match_spec.rb
  150. +0 −78 bundle/command-t/spec/command-t/matcher_spec.rb
  151. +0 −54 bundle/command-t/spec/command-t/scanner/buffer_scanner_spec.rb
  152. +0 −83 bundle/command-t/spec/command-t/scanner/file_scanner_spec.rb
  153. +0 −38 bundle/command-t/spec/spec_helper.rb
  154. +0 −41 bundle/command-t/spec/vim_formatter.rb
  155. +0 −1 bundle/commentary
  156. +0 −1 bundle/emacs-bindings
  157. +0 −1 bundle/haskell
  158. +0 −1 bundle/indent-object
  159. +0 −1 bundle/javascript
  160. +0 −570 bundle/l9_vim_mirror/autoload/l9.vim
  161. +0 −92 bundle/l9_vim_mirror/autoload/l9/async.py
  162. +0 −67 bundle/l9_vim_mirror/autoload/l9/async.vim
  163. +0 −107 bundle/l9_vim_mirror/autoload/l9/quickfix.vim
  164. +0 −112 bundle/l9_vim_mirror/autoload/l9/tempbuffer.vim
  165. +0 −60 bundle/l9_vim_mirror/autoload/l9/tempvariables.vim
  166. +0 −55 bundle/l9_vim_mirror/doc/l9.jax
  167. +0 −73 bundle/l9_vim_mirror/doc/l9.txt
  168. +0 −9 bundle/l9_vim_mirror/doc/tags
  169. +0 −9 bundle/l9_vim_mirror/doc/tags-ja
  170. +0 −108 bundle/l9_vim_mirror/plugin/l9.vim
  171. +0 −406 bundle/matchit/doc/matchit.txt
  172. +0 −50 bundle/matchit/doc/tags
  173. +0 −812 bundle/matchit/plugin/matchit.vim
  174. +0 −1 bundle/molokai
  175. BIN bundle/my-custom/.t.php.swp
  176. BIN bundle/my-custom/plugin/.ccsyntax.vim.swo
  177. +0 −196 bundle/my-custom/plugin/ccsyntax.vim
  178. +0 −2 bundle/my-custom/t.js
  179. +0 −14 bundle/my-custom/t.php
  180. +0 −1 bundle/nerdtree
Sorry, we could not display the entire diff because too many files (366) changed.
1 bundle/abolish
@@ -1 +0,0 @@
-Subproject commit 6a633f685c59d80d9b73fb40506fde2e709abe04
1 bundle/ack.vim
@@ -1 +0,0 @@
-Subproject commit 9895285042a2fd5691b2f6582aa979e4d1bdffea
View
6 bundle/acp.vim/README.mkd
@@ -1,6 +0,0 @@
-
-AutoComplPop.vim
-================
-
-这是一份针对 [AutoComplPop.vim](https://bitbucket.org/ns9tks/vim-autocomplpop)
-的文档中文翻译。
View
452 bundle/acp.vim/doc/acp.cnx
@@ -1,452 +0,0 @@
-*acp.txt* 自动弹出补全菜单
-
- 版权所有 (c) 2007-2009 Takeshi NISHIDA
-
-AutoComplPop *autocomplpop* *acp*
-
-简介 |acp-introduction|
-安装 |acp-installation|
-使用 |acp-usage|
-命令 |acp-commands|
-选项 |acp-options|
-特别感谢 |acp-thanks|
-更新历史 |acp-changelog|
-关于 |acp-about|
-
-
-==============================================================================
-简介 *acp-introduction*
-
-这个插件用于辅助在 插入模式 下输入字符或移动光标时,自动弹出 Vim 补全菜单。
-它不会阻碍你继续输入字符。
-
-==============================================================================
-安装 *acp-installation*
-
-将所有文件放到 runtime 目录。如果得到的是 zip 压缩文件,将它解压到 runtime
-目录即可。
-
-放置的文件如下所示:
->
- <your runtime directory>/plugin/acp.vim
- <your runtime directory>/doc/acp.txt
- ...
-<
-如果不喜欢将插件和其他插件放在 runtime 目录,可以将文件放在一个新文件夹,
-并将这个新文件夹路径放在 'runtimepath' 即可。这样更容易卸载插件。
-
-然后更新帮助文档以便启用 fuzzyfinder 帮助。详细信息请看 |add-local-help|
-
-
-==============================================================================
-使用 *acp-usage*
-
-插件安装以后,自动弹出补全菜单在 vim 启动时默认已经启用。
-
-补全方式依赖于光标前的文本,默认的补全方式如下:
-
- 类别 文件类型 光标前文本 ~
- 关键字 * 两个关键字符
- 文件名 * 一个文件名字符 + 一个路径分隔符 + 0 或
- 更多的文件名字符
- Omni ruby ".", "::" 或 非单词字符 + ":"
- (需要 |+ruby|)
- Omni python "." (需要 |+python|)
- Omni xml "<", "</" 或 ("<" + non-">" 字符 + " ")
- Omni html/xhtml "<", "</" or ("<" + non-">" 字符 + " ")
- Omni css (":", ";", "{", "^", "@", 或 "!")
- + 0 或 1 个空格
-
-另外,还可以自动补全 用户自定义 或 snipMate(|acp-snipMate|) 的内容。
-
-这些补全行为是可以定制的。
-
- *acp-snipMate*
-snipMate 触发器补全 ~
-
-snipMate 触发器补全可以为 snipMate.vim 插件
-(http://www.vim.org/scripts/script.php?script_id=2540)
-的触发器做自动补全,并自动展开对应的片段。
-
-要启用这种补全方式,添加如下代码到 plugin/snipMate.vim
->
- fun! GetSnipsInCurrentScope()
- let snips = {}
- for scope in [bufnr('%')] + split(&ft, '\.') + ['_']
- call extend(snips, get(s:snippets, scope, {}), 'keep')
- call extend(snips, get(s:multi_snips, scope, {}), 'keep')
- endfor
- return snips
- endf
-<
-并且设置 |g:acp_behaviorSnipmateLength| 选项为 1。
-
-这种补全方式有一定的限制,光标前的文本必须是大写字母。
- *acp-perl-omni*
-Perl Omni-Completion ~
-
-支持 perl-completion.vim 自动补全
-(http://www.vim.org/scripts/script.php?script_id=2852).
-
-要启用这种自动补全,设置 |g:acp_behaviorPerlOmniLength| 选项为 0 或更大值。
-
-==============================================================================
-命令 *acp-commands*
-
- *:AcpEnable*
-:AcpEnable
- 开启自动补全。
-
- *:AcpDisable*
-:AcpDisable
- 关闭自动补全。
-
- *:AcpLock*
-:AcpLock
- 临时暂停自动补全
-
- 以便避免与其他的插件脚本冲突,推荐该命令和 |:AcpUnlock| 代替
- |:AcpDisable| 和 |:AcpEnable|
- *:AcpUnlock*
-
-:AcpUnlock
- 重新激活由 |:AcpLock| 命令暂时停止的自动补全。
-
-
-==============================================================================
-选项 *acp-options*
-
- *g:acp_enableAtStartup* >
- let g:acp_enableAtStartup = 1
-<
- 如果设为非零,自动弹出补全菜单在启动 Vim 时启用。
-
- *g:acp_mappingDriven* >
- let g:acp_mappingDriven = 0
-<
- 如果设为非零,补全菜单由按键触发而不是 |CursorMovedI| 事件。有效
- 避免在插入模式由光标移动引起的补全菜单的自动弹出。
-
- *g:acp_ignorecaseOption* >
- let g:acp_ignorecaseOption = 1
-<
- 补全菜单自动弹出时,临时将值设为 'ignorecase'。
-
-
- *g:acp_completeOption* >
- let g:acp_completeOption = '.,w,b,k'
-<
- 补全菜单自动弹出时,临时将值设为 'complete'
-
- *g:acp_completeoptPreview* >
- let g:acp_completeoptPreview = 0
-<
- 如果设为非零,补全菜单自动弹出时,"preview" 会被添加到 'completeopt'
- 选项中。
-
- *g:acp_behaviorUserDefinedFunction* >
- let g:acp_behaviorUserDefinedFunction = ''
-<
- |g:acp_behavior-completefunc| 用于用户自定义补全,如果设为空,这种
- 补全将不会被启用
-
- *g:acp_behaviorUserDefinedMeets* >
- let g:acp_behaviorUserDefinedMeets = ''
-<
- |g:acp_behavior-meets| 用于用户自定义补全,如果设为空,这种补全将不
- 会被启用
-
- *g:acp_behaviorSnipmateLength* >
- let g:acp_behaviorSnipmateLength = -1
-<
- 尝试补全 snipMate 触发器所需要的(光标前)字符数量。
-
- *g:acp_behaviorKeywordCommand* >
- let g:acp_behaviorKeywordCommand = "\<C-n>"
-<
- 关键词补全命令。该选项通常设置为 "\<C-n>" 或 "\<C-p>"
-
- *g:acp_behaviorKeywordLength* >
- let g:acp_behaviorKeywordLength = 2
-<
- 尝试补全关键字所需的(光标前)字符数量。如果为负数,则不启用关键字补全。
-
- *g:acp_behaviorKeywordIgnores* >
- let g:acp_behaviorKeywordIgnores = []
-<
- 字符串列表。如果光标之前的单词匹配列表中的任意一项,关键字将不会
- 尝试补全。
-
- 例如:有太多的补全关键词以 "get" 起始,当输入 "g","ge",或 "get" 时
- 将导致补全反应产生延迟,通过设置 ["get"] 来避免。
-
- *g:acp_behaviorFileLength* >
- let g:acp_behaviorFileLength = 0
-<
- 尝试文件名补全所需(光标前)的字符数量。如果为负数,则不启用文件名补全。
-
- *g:acp_behaviorRubyOmniMethodLength* >
- let g:acp_behaviorRubyOmniMethodLength = 0
-<
- 尝试 ruby 函数/方法的智能补全所需的(光标前)字符数量,如果为负数,
- 则不会启用这个补全。
-
- *g:acp_behaviorRubyOmniSymbolLength* >
- let g:acp_behaviorRubyOmniSymbolLength = 1
-<
- 尝试 ruby 符号智能补全所需的(光标前)字符数量,如果为负数,
- 则不会启用这个补全。
- *g:acp_behaviorPythonOmniLength* >
- let g:acp_behaviorPythonOmniLength = 0
-<
- 尝试 Python 智能补全所需的(光标前)字符数量。如果为负数,
- 则不启用这个补全。
-
- *g:acp_behaviorPerlOmniLength* >
- let g:acp_behaviorPerlOmniLength = -1
-<
- 尝试 Perl 智能补全所需的(光标前)字符数量。如果为负数,
- 则不启用这个补全。
-
- 另见:|acp-perl-omni|
- *g:acp_behaviorXmlOmniLength* >
- let g:acp_behaviorXmlOmniLength = 0
-<
- 尝试 XML 智能补全所需的(光标前)字符数量。如果为负数,
- 则不启用这个补全。
- *g:acp_behaviorHtmlOmniLength* >
- let g:acp_behaviorHtmlOmniLength = 0
-<
- 尝试 HTML 智能补全所需的(光标前)字符数量。如果为负数,
- 则不启用这个补全。
- *g:acp_behaviorCssOmniPropertyLength* >
- let g:acp_behaviorCssOmniPropertyLength = 1
-<
- 尝试 CSS 属性智能补全所需的(光标前)字符数量。如果为负数,
- 则不启用这个补全。
- *g:acp_behaviorCssOmniValueLength* >
- let g:acp_behaviorCssOmniValueLength = 0
-<
- 尝试 CSS 属性值智能补全所需的(光标前)字符数量。如果为负数,
- 则不启用这个补全。
- *g:acp_behavior* >
- let g:acp_behavior = {}
-<
- 该选项适用于高级用户。该设置会覆盖其他类型选项。
- 这是一个 |Dictionary|,每一个 键 对应一种文件类型。"*" 为默认值。
- 每个值为一个列表,将会试图遍历列表直到补全条目找到为止。
- 每个 |Dictionary| 元素如下:
-
- "command": *g:acp_behavior-command*
- 用于打开补全菜单的命令。
-
-
- "completefunc": *g:acp_behavior-completefunc*
- 'completefunc' 可以设置用户自定义的补全函数,只在 "command" 为
- "<C-x><C-u>" 时有意义。
-
- "meets": *g:acp_behavior-meets*
- 决定是否尝试补全的函数名,当这个函数返回非零值时才尝试补全。
- 该函数可以获得光标之前的文本。
-
- "onPopupClose": *g:acp_behavior-onPopupClose*
- 当补全菜单关闭时,被调用的函数名。
- 如果函数返回 0,随后的补全会被取消。
-
- "repeat": *g:acp_behavior-repeat*
- 如果非零,将会自动重复上一次的补全。
-
-
-==============================================================================
-特别感谢 *acp-thanks*
-
-- Daniel Schierbeck
-- Ingo Karkat
-
-
-==============================================================================
-更新历史 *acp-changelog*
-
-2.14.1
- - 更改了自动弹出的方式,避免了文件名补全问题
- - 修复了当补全完成时补全菜单弹出两次
-
-2.14
- - 添加了 perl-completion.vim.支持
-
-2.13
- - 修改了snipMate触发器排序方式
- - 修复了 snipMate 补全后插入无效字符
-
-2.12.1
- - 更新,避免同 Microsoft IME 的奇怪的行为
-
-2.12
- - 添加 g:acp_behaviorKeywordIgnores 选项
- - 添加 g:acp_behaviorUserDefinedMeets 选项,并移除
- - 更新 只有当 buffer 修改后才进行自动补全
- - 更新 g:acp_behavior 选项结构
- - 更新 (named g:acp_behavior*) 选项响应行为
- - 修复当没有候选补全选项 snipMate 触发补全不再尝试
-
-2.11.1
- - 修复 snipMate 补全之后不能展开的错误
-
-2.11
- - 尝试加入 snipMate 触发补全特性
-
-2.10
- - 提高了当输入文本后没有候选补全时不进行补全的响应
- - 提高了按下 <BS> 键后关闭补全菜单和光标前的文本没有匹配模式的响应速度
-
-2.9
- - 更新了默认的 XML 补全方式
- - 更新了 g:acp_behaviorKeywordCommand 选项的默认值,当设置 'directory'
- 并且完成补全后, "\<C-p>"导致的插入的匹配缺失 <CR>
- - 更新当与安装的 vim 不兼容时的错误提示
-
-2.8.1
- - 修复了当插入匹配时自动换行 ( 启用'formatoptions' 选项)
-
-2.8
- - 为想定制补全的用户添加 g:acp_behaviorUserDefinedFunction 和
- g:acp_behaviorUserDefinedPattern 选项
- - 修复 当在新 buffer 设置 'spell' 输入变得一团糟的错误
-
-2.7
- - 更新了 文件名,函数,命令和选项的命名转换
- - 添加 g:acp_behaviorKeywordCommand 选项。如果你更喜欢选择前一个补全选项,设
- 置 "\<C-n>".选项
- - 更新了 g:acp_ignorecaseOption 选项的默认值
-
- 以下为 Ingo Karkat 所做修改:
-
- - ENH: 添加用户自定义补全函数选项 'completefunc' 通过 g:acp_behavior 配置
- - BUG: 当使用 <C-p> 或 <C-x><C-p>,该命令会恢复原始文本 (in on_popup_post())
- 应该返回
- - BUG: 当使用定制的补全函数 (<C-x><C-u>) 需要使用 s:...() 函数名
- s:GetSidPrefix() 动态定义错误 SID。现在在源文件调用 s:DetermineSidPrefix()
- 一次捕获 s:SID 值
- - BUG: 不能使用自定义补全快捷键 <C-X><C-...>。现在可以到处使用没有定义的
- 快捷键(事先 s:PopupFeeder.feed() 通过调用按键 (..., 'm'),但是
- s:PopupFeeder.on_popup_post() 不是通过调用 :map-expr) [?]
-
-2.6:
- - 提升了补全 HTML/XHTML的补全操作
-
-2.5:
- - 添加了一些简单的自定义操作选项:
- g:AutoComplPop_BehaviorKeywordLength
- g:AutoComplPop_BehaviorFileLength
- g:AutoComplPop_BehaviorRubyOmniMethodLength
- g:AutoComplPop_BehaviorRubyOmniSymbolLength
- g:AutoComplPop_BehaviorPythonOmniLength
- g:AutoComplPop_BehaviorHtmlOmniLength
- g:AutoComplPop_BehaviorCssOmniPropertyLength
- g:AutoComplPop_BehaviorCssOmniValueLength
-
-2.4:
- - 添加 g:AutoComplPop_MappingDriven 选项
-
-2.3.1:
- - 更新 设置 'lazyredraw' 当弹出菜单出现时避免闪烁
- - 更新补全CSS的操作
- - 添加对 GetLatestVimScripts 的支持
-
-2.3:
- - 添加对 Python 补全操作的支持
- - 添加对 CSS 补全操作的支持
-
-2.2:
- - 更新 当 'paste' 选项开启后,停止补全
- - 修复 AutoComplPopEnable 和 AutoComplPopDisable 命令以映射/取消映射
- "i" 和 "R" 按键
-
-2.1:
- - 修复普通模式下 "." 操作引发的问题
- - 更新 在进入插入模式后,按键映射 "i" 和 "R" 加载补全命令
- - 避免由 Windows IME 引发的问题
-
-
-2.0:
- - 更新 使用 CursorMovedI 事件加载补全命令代替快捷键。现在补全命令通过移动
- 光标触发自动补全
- - 更新在进入插入模式载补全命令
- - 移除 g:AutoComplPop_MapList 选项
-
-1.7:
- - 添加 HTML/XHTML 支持。现在支持 HTML/XHTML 的自动补全
- - 更新 不再显示 CTRL-R = 表达式
- - 更新 当弹出菜单可见,不应设置 'nolazyredraw'
-
-1.6.1:
- - 更新包含多字节字符不再触发文件名补全
-
-1.6:
- - 重新设计 g:AutoComplPop_Behavior 选项
- - 更新 g:AutoComplPop_CompleteOption 的默认值
- - 更新 g:AutoComplPop_MapList 的默认值
-
-1.5:
- - 实现对文件名的连续性补全,并且添加 g:AutoComplPop_Behavior 选项
-
-1.4:
- - 修复了在 fuzzyfinder 弹出菜单不能暂时停止弹出
- - 修复了如果不是 Ruby 接口 Ruby-omni-completion 补全会产生错误
-
-1.3:
- - 默认支持 Ruby-omni-completion 补全
- - 默认支持 文件名补全
- - 添加选项 g:AutoComplPop_Behavior
- - 添加选项 g:AutoComplPop_CompleteoptPreview
- - 移除选项 g:AutoComplPop_MinLength
- - 移除选项 g:AutoComplPop_MaxLength
- - 移除选项 g:AutoComplPop_PopupCmd
-
-1.2:
- - 修复了与 'completeopt' 有关的错误
-
-1.1:
- - 添加选项 g:AutoComplPop_IgnoreCaseOption
- - 添加选项 g:AutoComplPop_NotEnableAtStartup
- - 移除选项 g:AutoComplPop_LoadAndEnable
-
-1.0:
- - g:AutoComplPop_LoadAndEnable 选项启动默认开启
- - AutoComplPopLock 和 AutoComplPopUnlock 选项实现补全暂时开关
- - 'completeopt' 和 'complete' 选项暂时改变当补全这脚本文件
-
-0.4:
- - 当弹出菜单后第一个匹配选项为选中状态,你可以按 CTRL-Y 插入第一个匹配选项
-
-0.3:
- - 修复 'completeopt' 选项如果没有设置为 'longest' 不会恢复原始文本问题。现在
- 插件无论是否设置 'completeopt'的 'longest' 以及 'menuone' 选项都可以工作
-
-0.2:
- - 当没有找到补全选项,按 CTRL-E 停止补全
- - 清理输出区域
- - 修复被分隔符分隔的单词补全菜单不能弹出的问题
-
-0.1:
- - 第一版发行
-
-
-==============================================================================
-关于 *acp-about* *acp-contact* *acp-author*
-
-作者 : Takeshi NISHIDA <ns9tks@DELETE-ME.gmail.com>
-协议 : MIT Licence
-链接 : http://www.vim.org/scripts/script.php?script_id=1879
- http://bitbucket.org/ns9tks/vim-autocomplpop/
-
-Bugs/Issues/Suggestions/Improvements ~
-错误/问题/建议/性能提升
-
-请提交到 http://bitbucket.org/ns9tks/vim-autocomplpop/issues/
-
-==============================================================================
-翻译 绿洲 *volcanowill[at]gmail.com*
-
-==============================================================================
- vim:tw=78:ts=8:ft=help:norl:
View
512 bundle/acp.vim/doc/acp.txt
@@ -1,512 +0,0 @@
-*acp.txt* Automatically opens popup menu for completions.
-
- Copyright (c) 2007-2009 Takeshi NISHIDA
-
-AutoComplPop *autocomplpop* *acp*
-
-INTRODUCTION |acp-introduction|
-INSTALLATION |acp-installation|
-USAGE |acp-usage|
-COMMANDS |acp-commands|
-OPTIONS |acp-options|
-SPECIAL THANKS |acp-thanks|
-CHANGELOG |acp-changelog|
-ABOUT |acp-about|
-
-
-==============================================================================
-INTRODUCTION *acp-introduction*
-
-With this plugin, your vim comes to automatically opens popup menu for
-completions when you enter characters or move the cursor in Insert mode. It
-won't prevent you continuing entering characters.
-
-
-==============================================================================
-INSTALLATION *acp-installation*
-
-Put all files into your runtime directory. If you have the zip file, extract
-it to your runtime directory.
-
-You should place the files as follows:
->
- <your runtime directory>/plugin/acp.vim
- <your runtime directory>/doc/acp.txt
- ...
-<
-If you disgust to jumble up this plugin and other plugins in your runtime
-directory, put the files into new directory and just add the directory path to
-'runtimepath'. It's easy to uninstall the plugin.
-
-And then update your help tags files to enable fuzzyfinder help. See
-|add-local-help| for details.
-
-
-==============================================================================
-USAGE *acp-usage*
-
-Once this plugin is installed, auto-popup is enabled at startup by default.
-
-Which completion method is used depends on the text before the cursor. The
-default behavior is as follows:
-
- kind filetype text before the cursor ~
- Keyword * two keyword characters
- Filename * a filename character + a path separator
- + 0 or more filename character
- Omni ruby ".", "::" or non-word character + ":"
- (|+ruby| required.)
- Omni python "." (|+python| required.)
- Omni xml "<", "</" or ("<" + non-">" characters + " ")
- Omni html/xhtml "<", "</" or ("<" + non-">" characters + " ")
- Omni css (":", ";", "{", "^", "@", or "!")
- + 0 or 1 space
-
-Also, you can make user-defined completion and snipMate's trigger completion
-(|acp-snipMate|) auto-popup if the options are set.
-
-These behavior are customizable.
-
- *acp-snipMate*
-snipMate's Trigger Completion ~
-
-snipMate's trigger completion enables you to complete a snippet trigger
-provided by snipMate plugin
-(http://www.vim.org/scripts/script.php?script_id=2540) and expand it.
-
-
-To enable auto-popup for this completion, add following function to
-plugin/snipMate.vim:
->
- fun! GetSnipsInCurrentScope()
- let snips = {}
- for scope in [bufnr('%')] + split(&ft, '\.') + ['_']
- call extend(snips, get(s:snippets, scope, {}), 'keep')
- call extend(snips, get(s:multi_snips, scope, {}), 'keep')
- endfor
- return snips
- endf
-<
-And set |g:acp_behaviorSnipmateLength| option to 1.
-
-There is the restriction on this auto-popup, that the word before cursor must
-consist only of uppercase characters.
-
- *acp-perl-omni*
-Perl Omni-Completion ~
-
-AutoComplPop supports perl-completion.vim
-(http://www.vim.org/scripts/script.php?script_id=2852).
-
-To enable auto-popup for this completion, set |g:acp_behaviorPerlOmniLength|
-option to 0 or more.
-
-
-==============================================================================
-COMMANDS *acp-commands*
-
- *:AcpEnable*
-:AcpEnable
- enables auto-popup.
-
- *:AcpDisable*
-:AcpDisable
- disables auto-popup.
-
- *:AcpLock*
-:AcpLock
- suspends auto-popup temporarily.
-
- For the purpose of avoiding interruption to another script, it is
- recommended to insert this command and |:AcpUnlock| than |:AcpDisable|
- and |:AcpEnable| .
-
- *:AcpUnlock*
-:AcpUnlock
- resumes auto-popup suspended by |:AcpLock| .
-
-
-==============================================================================
-OPTIONS *acp-options*
-
- *g:acp_enableAtStartup* >
- let g:acp_enableAtStartup = 1
-<
- If non-zero, auto-popup is enabled at startup.
-
- *g:acp_mappingDriven* >
- let g:acp_mappingDriven = 0
-<
- If non-zero, auto-popup is triggered by key mappings instead of
- |CursorMovedI| event. This is useful to avoid auto-popup by moving
- cursor in Insert mode.
-
- *g:acp_ignorecaseOption* >
- let g:acp_ignorecaseOption = 1
-<
- Value set to 'ignorecase' temporarily when auto-popup.
-
- *g:acp_completeOption* >
- let g:acp_completeOption = '.,w,b,k'
-<
- Value set to 'complete' temporarily when auto-popup.
-
- *g:acp_completeoptPreview* >
- let g:acp_completeoptPreview = 0
-<
- If non-zero, "preview" is added to 'completeopt' when auto-popup.
-
- *g:acp_behaviorUserDefinedFunction* >
- let g:acp_behaviorUserDefinedFunction = ''
-<
- |g:acp_behavior-completefunc| for user-defined completion. If empty,
- this completion will be never attempted.
-
- *g:acp_behaviorUserDefinedMeets* >
- let g:acp_behaviorUserDefinedMeets = ''
-<
- |g:acp_behavior-meets| for user-defined completion. If empty, this
- completion will be never attempted.
-
- *g:acp_behaviorSnipmateLength* >
- let g:acp_behaviorSnipmateLength = -1
-<
- Pattern before the cursor, which are needed to attempt
- snipMate-trigger completion.
-
- *g:acp_behaviorKeywordCommand* >
- let g:acp_behaviorKeywordCommand = "\<C-n>"
-<
- Command for keyword completion. This option is usually set "\<C-n>" or
- "\<C-p>".
-
- *g:acp_behaviorKeywordLength* >
- let g:acp_behaviorKeywordLength = 2
-<
- Length of keyword characters before the cursor, which are needed to
- attempt keyword completion. If negative value, this completion will be
- never attempted.
-
- *g:acp_behaviorKeywordIgnores* >
- let g:acp_behaviorKeywordIgnores = []
-<
- List of string. If a word before the cursor matches to the front part
- of one of them, keyword completion won't be attempted.
-
- E.g., when there are too many keywords beginning with "get" for the
- completion and auto-popup by entering "g", "ge", or "get" causes
- response degradation, set ["get"] to this option and avoid it.
-
- *g:acp_behaviorFileLength* >
- let g:acp_behaviorFileLength = 0
-<
- Length of filename characters before the cursor, which are needed to
- attempt filename completion. If negative value, this completion will
- be never attempted.
-
- *g:acp_behaviorRubyOmniMethodLength* >
- let g:acp_behaviorRubyOmniMethodLength = 0
-<
- Length of keyword characters before the cursor, which are needed to
- attempt ruby omni-completion for methods. If negative value, this
- completion will be never attempted.
-
- *g:acp_behaviorRubyOmniSymbolLength* >
- let g:acp_behaviorRubyOmniSymbolLength = 1
-<
- Length of keyword characters before the cursor, which are needed to
- attempt ruby omni-completion for symbols. If negative value, this
- completion will be never attempted.
-
- *g:acp_behaviorPythonOmniLength* >
- let g:acp_behaviorPythonOmniLength = 0
-<
- Length of keyword characters before the cursor, which are needed to
- attempt python omni-completion. If negative value, this completion
- will be never attempted.
-
- *g:acp_behaviorPerlOmniLength* >
- let g:acp_behaviorPerlOmniLength = -1
-<
- Length of keyword characters before the cursor, which are needed to
- attempt perl omni-completion. If negative value, this completion will
- be never attempted.
-
- See also: |acp-perl-omni|
-
- *g:acp_behaviorXmlOmniLength* >
- let g:acp_behaviorXmlOmniLength = 0
-<
- Length of keyword characters before the cursor, which are needed to
- attempt XML omni-completion. If negative value, this completion will
- be never attempted.
-
- *g:acp_behaviorHtmlOmniLength* >
- let g:acp_behaviorHtmlOmniLength = 0
-<
- Length of keyword characters before the cursor, which are needed to
- attempt HTML omni-completion. If negative value, this completion will
- be never attempted.
-
- *g:acp_behaviorCssOmniPropertyLength* >
- let g:acp_behaviorCssOmniPropertyLength = 1
-<
- Length of keyword characters before the cursor, which are needed to
- attempt CSS omni-completion for properties. If negative value, this
- completion will be never attempted.
-
- *g:acp_behaviorCssOmniValueLength* >
- let g:acp_behaviorCssOmniValueLength = 0
-<
- Length of keyword characters before the cursor, which are needed to
- attempt CSS omni-completion for values. If negative value, this
- completion will be never attempted.
-
- *g:acp_behavior* >
- let g:acp_behavior = {}
-<
- This option is for advanced users. This setting overrides other
- behavior options. This is a |Dictionary|. Each key corresponds to a
- filetype. '*' is default. Each value is a list. These are attempted in
- sequence until completion item is found. Each element is a
- |Dictionary| which has following items:
-
- "command": *g:acp_behavior-command*
- Command to be fed to open popup menu for completions.
-
- "completefunc": *g:acp_behavior-completefunc*
- 'completefunc' will be set to this user-provided function during the
- completion. Only makes sense when "command" is "<C-x><C-u>".
-
- "meets": *g:acp_behavior-meets*
- Name of the function which dicides whether or not to attempt this
- completion. It will be attempted if this function returns non-zero.
- This function takes a text before the cursor.
-
- "onPopupClose": *g:acp_behavior-onPopupClose*
- Name of the function which is called when popup menu for this
- completion is closed. Following completions will be suppressed if
- this function returns zero.
-
- "repeat": *g:acp_behavior-repeat*
- If non-zero, the last completion is automatically repeated.
-
-
-==============================================================================
-SPECIAL THANKS *acp-thanks*
-
-- Daniel Schierbeck
-- Ingo Karkat
-
-
-==============================================================================
-CHANGELOG *acp-changelog*
-
-2.14.1
- - Changed the way of auto-popup for avoiding an issue about filename
- completion.
- - Fixed a bug that popup menu was opened twice when auto-popup was done.
-
-2.14
- - Added the support for perl-completion.vim.
-
-2.13
- - Changed to sort snipMate's triggers.
- - Fixed a bug that a wasted character was inserted after snipMate's trigger
- completion.
-
-2.12.1
- - Changed to avoid a strange behavior with Microsoft IME.
-
-2.12
- - Added g:acp_behaviorKeywordIgnores option.
- - Added g:acp_behaviorUserDefinedMeets option and removed
- g:acp_behaviorUserDefinedPattern.
- - Changed to do auto-popup only when a buffer is modified.
- - Changed the structure of g:acp_behavior option.
- - Changed to reflect a change of behavior options (named g:acp_behavior*)
- any time it is done.
- - Fixed a bug that completions after omni completions or snipMate's trigger
- completion were never attempted when no candidate for the former
- completions was found.
-
-2.11.1
- - Fixed a bug that a snipMate's trigger could not be expanded when it was
- completed.
-
-2.11
- - Implemented experimental feature which is snipMate's trigger completion.
-
-2.10
- - Improved the response by changing not to attempt any completion when
- keyword characters are entered after a word which has been found that it
- has no completion candidate at the last attempt of completions.
- - Improved the response by changing to close popup menu when <BS> was
- pressed and the text before the cursor would not match with the pattern of
- current behavior.
-
-2.9
- - Changed default behavior to support XML omni completion.
- - Changed default value of g:acp_behaviorKeywordCommand option.
- The option with "\<C-p>" cause a problem which inserts a match without
- <CR> when 'dictionary' has been set and keyword completion is done.
- - Changed to show error message when incompatible with a installed vim.
-
-2.8.1
- - Fixed a bug which inserted a selected match to the next line when
- auto-wrapping (enabled with 'formatoptions') was performed.
-
-2.8
- - Added g:acp_behaviorUserDefinedFunction option and
- g:acp_behaviorUserDefinedPattern option for users who want to make custom
- completion auto-popup.
- - Fixed a bug that setting 'spell' on a new buffer made typing go crazy.
-
-2.7
- - Changed naming conventions for filenames, functions, commands, and options
- and thus renamed them.
- - Added g:acp_behaviorKeywordCommand option. If you prefer the previous
- behavior for keyword completion, set this option "\<C-n>".
- - Changed default value of g:acp_ignorecaseOption option.
-
- The following were done by Ingo Karkat:
-
- - ENH: Added support for setting a user-provided 'completefunc' during the
- completion, configurable via g:acp_behavior.
- - BUG: When the configured completion is <C-p> or <C-x><C-p>, the command to
- restore the original text (in on_popup_post()) must be reverted, too.
- - BUG: When using a custom completion function (<C-x><C-u>) that also uses
- an s:...() function name, the s:GetSidPrefix() function dynamically
- determines the wrong SID. Now calling s:DetermineSidPrefix() once during
- sourcing and caching the value in s:SID.
- - BUG: Should not use custom defined <C-X><C-...> completion mappings. Now
- consistently using unmapped completion commands everywhere. (Beforehand,
- s:PopupFeeder.feed() used mappings via feedkeys(..., 'm'), but
- s:PopupFeeder.on_popup_post() did not due to its invocation via
- :map-expr.)
-
-2.6:
- - Improved the behavior of omni completion for HTML/XHTML.
-
-2.5:
- - Added some options to customize behavior easily:
- g:AutoComplPop_BehaviorKeywordLength
- g:AutoComplPop_BehaviorFileLength
- g:AutoComplPop_BehaviorRubyOmniMethodLength
- g:AutoComplPop_BehaviorRubyOmniSymbolLength
- g:AutoComplPop_BehaviorPythonOmniLength
- g:AutoComplPop_BehaviorHtmlOmniLength
- g:AutoComplPop_BehaviorCssOmniPropertyLength
- g:AutoComplPop_BehaviorCssOmniValueLength
-
-2.4:
- - Added g:AutoComplPop_MappingDriven option.
-
-2.3.1:
- - Changed to set 'lazyredraw' while a popup menu is visible to avoid
- flickering.
- - Changed a behavior for CSS.
- - Added support for GetLatestVimScripts.
-
-2.3:
- - Added a behavior for Python to support omni completion.
- - Added a behavior for CSS to support omni completion.
-
-2.2:
- - Changed not to work when 'paste' option is set.
- - Fixed AutoComplPopEnable command and AutoComplPopDisable command to
- map/unmap "i" and "R".
-
-2.1:
- - Fixed the problem caused by "." command in Normal mode.
- - Changed to map "i" and "R" to feed completion command after starting
- Insert mode.
- - Avoided the problem caused by Windows IME.
-
-2.0:
- - Changed to use CursorMovedI event to feed a completion command instead of
- key mapping. Now the auto-popup is triggered by moving the cursor.
- - Changed to feed completion command after starting Insert mode.
- - Removed g:AutoComplPop_MapList option.
-
-1.7:
- - Added behaviors for HTML/XHTML. Now supports the omni completion for
- HTML/XHTML.
- - Changed not to show expressions for CTRL-R =.
- - Changed not to set 'nolazyredraw' while a popup menu is visible.
-
-1.6.1:
- - Changed not to trigger the filename completion by a text which has
- multi-byte characters.
-
-1.6:
- - Redesigned g:AutoComplPop_Behavior option.
- - Changed default value of g:AutoComplPop_CompleteOption option.
- - Changed default value of g:AutoComplPop_MapList option.
-
-1.5:
- - Implemented continuous-completion for the filename completion. And added
- new option to g:AutoComplPop_Behavior.
-
-1.4:
- - Fixed the bug that the auto-popup was not suspended in fuzzyfinder.
- - Fixed the bug that an error has occurred with Ruby-omni-completion unless
- Ruby interface.
-
-1.3:
- - Supported Ruby-omni-completion by default.
- - Supported filename completion by default.
- - Added g:AutoComplPop_Behavior option.
- - Added g:AutoComplPop_CompleteoptPreview option.
- - Removed g:AutoComplPop_MinLength option.
- - Removed g:AutoComplPop_MaxLength option.
- - Removed g:AutoComplPop_PopupCmd option.
-
-1.2:
- - Fixed bugs related to 'completeopt'.
-
-1.1:
- - Added g:AutoComplPop_IgnoreCaseOption option.
- - Added g:AutoComplPop_NotEnableAtStartup option.
- - Removed g:AutoComplPop_LoadAndEnable option.
-1.0:
- - g:AutoComplPop_LoadAndEnable option for a startup activation is added.
- - AutoComplPopLock command and AutoComplPopUnlock command are added to
- suspend and resume.
- - 'completeopt' and 'complete' options are changed temporarily while
- completing by this script.
-
-0.4:
- - The first match are selected when the popup menu is Opened. You can insert
- the first match with CTRL-Y.
-
-0.3:
- - Fixed the problem that the original text is not restored if 'longest' is
- not set in 'completeopt'. Now the plugin works whether or not 'longest' is
- set in 'completeopt', and also 'menuone'.
-
-0.2:
- - When completion matches are not found, insert CTRL-E to stop completion.
- - Clear the echo area.
- - Fixed the problem in case of dividing words by symbols, popup menu is
- not opened.
-
-0.1:
- - First release.
-
-
-==============================================================================
-ABOUT *acp-about* *acp-contact* *acp-author*
-
-Author: Takeshi NISHIDA <ns9tks@DELETE-ME.gmail.com>
-Licence: MIT Licence
-URL: http://www.vim.org/scripts/script.php?script_id=1879
- http://bitbucket.org/ns9tks/vim-autocomplpop/
-
-Bugs/Issues/Suggestions/Improvements ~
-
-Please submit to http://bitbucket.org/ns9tks/vim-autocomplpop/issues/ .
-
-==============================================================================
- vim:tw=78:ts=8:ft=help:norl:
-
View
45 bundle/acp.vim/doc/tags
@@ -1,45 +0,0 @@
-:AcpDisable acp.txt /*:AcpDisable*
-:AcpEnable acp.txt /*:AcpEnable*
-:AcpLock acp.txt /*:AcpLock*
-:AcpUnlock acp.txt /*:AcpUnlock*
-acp acp.txt /*acp*
-acp-about acp.txt /*acp-about*
-acp-author acp.txt /*acp-author*
-acp-changelog acp.txt /*acp-changelog*
-acp-commands acp.txt /*acp-commands*
-acp-contact acp.txt /*acp-contact*
-acp-installation acp.txt /*acp-installation*
-acp-introduction acp.txt /*acp-introduction*
-acp-options acp.txt /*acp-options*
-acp-perl-omni acp.txt /*acp-perl-omni*
-acp-snipMate acp.txt /*acp-snipMate*
-acp-thanks acp.txt /*acp-thanks*
-acp-usage acp.txt /*acp-usage*
-acp.txt acp.txt /*acp.txt*
-autocomplpop acp.txt /*autocomplpop*
-g:acp_behavior acp.txt /*g:acp_behavior*
-g:acp_behavior-command acp.txt /*g:acp_behavior-command*
-g:acp_behavior-completefunc acp.txt /*g:acp_behavior-completefunc*
-g:acp_behavior-meets acp.txt /*g:acp_behavior-meets*
-g:acp_behavior-onPopupClose acp.txt /*g:acp_behavior-onPopupClose*
-g:acp_behavior-repeat acp.txt /*g:acp_behavior-repeat*
-g:acp_behaviorCssOmniPropertyLength acp.txt /*g:acp_behaviorCssOmniPropertyLength*
-g:acp_behaviorCssOmniValueLength acp.txt /*g:acp_behaviorCssOmniValueLength*
-g:acp_behaviorFileLength acp.txt /*g:acp_behaviorFileLength*
-g:acp_behaviorHtmlOmniLength acp.txt /*g:acp_behaviorHtmlOmniLength*
-g:acp_behaviorKeywordCommand acp.txt /*g:acp_behaviorKeywordCommand*
-g:acp_behaviorKeywordIgnores acp.txt /*g:acp_behaviorKeywordIgnores*
-g:acp_behaviorKeywordLength acp.txt /*g:acp_behaviorKeywordLength*
-g:acp_behaviorPerlOmniLength acp.txt /*g:acp_behaviorPerlOmniLength*
-g:acp_behaviorPythonOmniLength acp.txt /*g:acp_behaviorPythonOmniLength*
-g:acp_behaviorRubyOmniMethodLength acp.txt /*g:acp_behaviorRubyOmniMethodLength*
-g:acp_behaviorRubyOmniSymbolLength acp.txt /*g:acp_behaviorRubyOmniSymbolLength*
-g:acp_behaviorSnipmateLength acp.txt /*g:acp_behaviorSnipmateLength*
-g:acp_behaviorUserDefinedFunction acp.txt /*g:acp_behaviorUserDefinedFunction*
-g:acp_behaviorUserDefinedMeets acp.txt /*g:acp_behaviorUserDefinedMeets*
-g:acp_behaviorXmlOmniLength acp.txt /*g:acp_behaviorXmlOmniLength*
-g:acp_completeOption acp.txt /*g:acp_completeOption*
-g:acp_completeoptPreview acp.txt /*g:acp_completeoptPreview*
-g:acp_enableAtStartup acp.txt /*g:acp_enableAtStartup*
-g:acp_ignorecaseOption acp.txt /*g:acp_ignorecaseOption*
-g:acp_mappingDriven acp.txt /*g:acp_mappingDriven*
View
47 bundle/acp.vim/doc/tags-cn
@@ -1,47 +0,0 @@
-!_TAG_FILE_ENCODING utf-8 //
-:AcpDisable acp.cnx /*:AcpDisable*
-:AcpEnable acp.cnx /*:AcpEnable*
-:AcpLock acp.cnx /*:AcpLock*
-:AcpUnlock acp.cnx /*:AcpUnlock*
-acp acp.cnx /*acp*
-acp-about acp.cnx /*acp-about*
-acp-author acp.cnx /*acp-author*
-acp-changelog acp.cnx /*acp-changelog*
-acp-commands acp.cnx /*acp-commands*
-acp-contact acp.cnx /*acp-contact*
-acp-installation acp.cnx /*acp-installation*
-acp-introduction acp.cnx /*acp-introduction*
-acp-options acp.cnx /*acp-options*
-acp-perl-omni acp.cnx /*acp-perl-omni*
-acp-snipMate acp.cnx /*acp-snipMate*
-acp-thanks acp.cnx /*acp-thanks*
-acp-usage acp.cnx /*acp-usage*
-acp.txt acp.cnx /*acp.txt*
-autocomplpop acp.cnx /*autocomplpop*
-g:acp_behavior acp.cnx /*g:acp_behavior*
-g:acp_behavior-command acp.cnx /*g:acp_behavior-command*
-g:acp_behavior-completefunc acp.cnx /*g:acp_behavior-completefunc*
-g:acp_behavior-meets acp.cnx /*g:acp_behavior-meets*
-g:acp_behavior-onPopupClose acp.cnx /*g:acp_behavior-onPopupClose*
-g:acp_behavior-repeat acp.cnx /*g:acp_behavior-repeat*
-g:acp_behaviorCssOmniPropertyLength acp.cnx /*g:acp_behaviorCssOmniPropertyLength*
-g:acp_behaviorCssOmniValueLength acp.cnx /*g:acp_behaviorCssOmniValueLength*
-g:acp_behaviorFileLength acp.cnx /*g:acp_behaviorFileLength*
-g:acp_behaviorHtmlOmniLength acp.cnx /*g:acp_behaviorHtmlOmniLength*
-g:acp_behaviorKeywordCommand acp.cnx /*g:acp_behaviorKeywordCommand*
-g:acp_behaviorKeywordIgnores acp.cnx /*g:acp_behaviorKeywordIgnores*
-g:acp_behaviorKeywordLength acp.cnx /*g:acp_behaviorKeywordLength*
-g:acp_behaviorPerlOmniLength acp.cnx /*g:acp_behaviorPerlOmniLength*
-g:acp_behaviorPythonOmniLength acp.cnx /*g:acp_behaviorPythonOmniLength*
-g:acp_behaviorRubyOmniMethodLength acp.cnx /*g:acp_behaviorRubyOmniMethodLength*
-g:acp_behaviorRubyOmniSymbolLength acp.cnx /*g:acp_behaviorRubyOmniSymbolLength*
-g:acp_behaviorSnipmateLength acp.cnx /*g:acp_behaviorSnipmateLength*
-g:acp_behaviorUserDefinedFunction acp.cnx /*g:acp_behaviorUserDefinedFunction*
-g:acp_behaviorUserDefinedMeets acp.cnx /*g:acp_behaviorUserDefinedMeets*
-g:acp_behaviorXmlOmniLength acp.cnx /*g:acp_behaviorXmlOmniLength*
-g:acp_completeOption acp.cnx /*g:acp_completeOption*
-g:acp_completeoptPreview acp.cnx /*g:acp_completeoptPreview*
-g:acp_enableAtStartup acp.cnx /*g:acp_enableAtStartup*
-g:acp_ignorecaseOption acp.cnx /*g:acp_ignorecaseOption*
-g:acp_mappingDriven acp.cnx /*g:acp_mappingDriven*
-volcanowill[at]gmail.com acp.cnx /*volcanowill[at]gmail.com*
1 bundle/align
@@ -1 +0,0 @@
-Subproject commit fa5fdeeea25269c3e83262c03dfa1ccd27dbd3c9
View
189 bundle/autoclose/plugin/autoclose.vim
@@ -1,189 +0,0 @@
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" AutoClose.vim - Automatically close pair of characters: ( with ), [ with ], { with }, etc.
-" Version: 1.1
-" Author: Thiago Alves <thiago.salves@gmail.com>
-" Maintainer: Thiago Alves <thiago.salves@gmail.com>
-" URL: http://thiagoalves.org
-" Licence: This script is released under the Vim License.
-" Last modified: 08/25/2008
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-
-let s:debug = 1
-
-" check if script is already loaded
-if s:debug == 0 && exists("g:loaded_AutoClose")
- finish "stop loading the script"
-endif
-let g:loaded_AutoClose = 1
-
-let s:global_cpo = &cpo " store compatible-mode in local variable
-set cpo&vim " go into nocompatible-mode
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" Functions
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-function! s:GetNextChar()
- if col('$') == col('.')
- return "\0"
- endif
- return strpart(getline('.'), col('.')-1, 1)
-endfunction
-
-function! s:GetPrevChar()
- if col('.') == 1
- return "\0"
- endif
- return strpart(getline('.'), col('.')-2, 1)
-endfunction
-
-function! s:IsEmptyPair()
- let l:prev = s:GetPrevChar()
- let l:next = s:GetNextChar()
- if l:prev == "\0" || l:next == "\0"
- return 0
- endif
- return get(s:charsToClose, l:prev, "\0") == l:next
-endfunction
-
-function! s:GetCurrentSyntaxRegion()
- return synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
-endfunction
-
-function! s:GetCurrentSyntaxRegionIf(char)
- let l:origin_line = getline('.')
- let l:changed_line = strpart(l:origin_line, 0, col('.')-1) . a:char . strpart(l:origin_line, col('.')-1)
- call setline('.', l:changed_line)
- let l:region = synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
- call setline('.', l:origin_line)
- return l:region
-endfunction
-
-function! s:IsForbidden(char)
- let l:result = index(s:protectedRegions, s:GetCurrentSyntaxRegion()) >= 0
- if l:result
- return l:result
- endif
- let l:region = s:GetCurrentSyntaxRegionIf(a:char)
- let l:result = index(s:protectedRegions, l:region) >= 0
- return l:result && l:region == 'Comment'
-endfunction
-
-function! s:InsertPair(char)
- let l:next = s:GetNextChar()
- let l:result = a:char
- if s:running && !s:IsForbidden(a:char) && (l:next == "\0" || l:next !~ '\w')
- let l:result .= s:charsToClose[a:char] . "\<Left>"
- endif
- return l:result
-endfunction
-
-function! s:ClosePair(char)
- if s:running && s:GetNextChar() == a:char
- let l:result = "\<Right>"
- else
- let l:result = a:char
- endif
- return l:result
-endfunction
-
-function! s:CheckPair(char)
- let l:lastpos = 0
- let l:occur = stridx(getline('.'), a:char, l:lastpos) == 0 ? 1 : 0
-
- while l:lastpos > -1
- let l:lastpos = stridx(getline('.'), a:char, l:lastpos+1)
- if l:lastpos > col('.')-2
- break
- endif
- if l:lastpos >= 0
- let l:occur += 1
- endif
- endwhile
-
- if l:occur == 0 || l:occur%2 == 0
- " Opening char
- return s:InsertPair(a:char)
- else
- " Closing char
- return s:ClosePair(a:char)
- endif
-endfunction
-
-function! s:Backspace()
- if s:running && s:IsEmptyPair()
- return "\<BS>\<Del>"
- endif
- return "\<BS>"
-endfunction
-
-function! s:ToggleAutoClose()
- let s:running = !s:running
- if s:running
- echo "AutoClose ON"
- else
- echo "AutoClose OFF"
- endif
-endfunction
-
-function! s:SetVEAll()
- let s:save_ve = &ve
- set ve=all
- return ""
-endfunction
-
-function! s:RestoreVE()
- exec "set ve=" . s:save_ve
- unlet s:save_ve
- return ""
-endfunction
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" Configuration
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" let user define which character he/she wants to autocomplete
-if exists("g:AutoClosePairs") && type(g:AutoClosePairs) == type({})
- let s:charsToClose = g:AutoClosePairs
- unlet g:AutoClosePairs
-else
- let s:charsToClose = {'(': ')', '{': '}', '[': ']', '"': '"', "'": "'"}
-endif
-
-" let user define in which regions the autocomplete feature should not occur
-if exists("g:AutoCloseProtectedRegions") && type(g:AutoCloseProtectedRegions) == type([])
- let s:protectedRegions = g:AutoCloseProtectedRegions
- unlet g:AutoCloseProtectedRegions
-else
- let s:protectedRegions = ["Comment", "String", "Character"]
-endif
-
-" let user define if he/she wants the plugin turned on when vim start. Defaul is YES
-if exists("g:AutoCloseOn") && type(g:AutoCloseOn) == type(0)
- let s:running = g:AutoCloseOn
- unlet g:AutoCloseOn
-else
- let s:running = 1
-endif
-
-" create appropriate maps to defined open/close characters
-for key in keys(s:charsToClose)
- if key == '"'
- let open_func_arg = '"\""'
- let close_func_arg = '"\""'
- else
- let open_func_arg = '"' . key . '"'
- let close_func_arg = '"' . s:charsToClose[key] . '"'
- endif
-
- if key == s:charsToClose[key]
- exec "inoremap <silent> " . key . " <C-R>=<SID>SetVEAll()<CR><C-R>=<SID>CheckPair(" . open_func_arg . ")<CR><C-R>=<SID>RestoreVE()<CR>"
- else
- exec "inoremap <silent> " . s:charsToClose[key] . " <C-R>=<SID>SetVEAll()<CR><C-R>=<SID>ClosePair(" . close_func_arg . ")<CR><C-R>=<SID>RestoreVE()<CR>"
- exec "inoremap <silent> " . key . " <C-R>=<SID>SetVEAll()<CR><C-R>=<SID>InsertPair(" . open_func_arg . ")<CR><C-R>=<SID>RestoreVE()<CR>"
- endif
-endfor
-exec "inoremap <silent> <BS> <C-R>=<SID>SetVEAll()<CR><C-R>=<SID>Backspace()<CR><C-R>=<SID>RestoreVE()<CR>"
-
-" Define convenient commands
-command! AutoCloseOn :let s:running = 1
-command! AutoCloseOff :let s:running = 0
-command! AutoCloseToggle :call s:ToggleAutoClose()
View
BIN bundle/bash-support.zip
Binary file not shown.
View
205 bundle/bash-support/README.bashsupport
@@ -1,205 +0,0 @@
-README for bash-support.vim (Version 3.9) / December 27 2011
-
- * INSTALLATION
- * RELEASE NOTES
- * FILES
- * ADDITIONAL TIPS
-
-Bash Support implements a bash-IDE for Vim/gVim. It is written to considerably
-speed up writing code in a consistent style. This is done by inserting
-complete statements, comments, idioms, and code snippets. Syntax checking,
-running a script, starting a debugger can be done with a keystroke. There are
-many additional hints and options which can improve speed and comfort when
-writing shell scripts.
-
-================================================================================
- INSTALLATION
-================================================================================
-
-(1) LINUX
-----------
-
-The subdirectories in the zip archive bash-support.zip mirror the directory
-structure which is needed below the local installation directory $HOME/.vim/
-(find the value of $HOME with ":echo $HOME" from inside Vim).
-
-(1.0) Save the template files in '$HOME/.vim/bash-support/templates/Templates' if
- you have changed any of them.
-
-(1.1) Copy the zip archive bash-support.zip to $HOME/.vim and run
-
- unzip bash-support.zip
-
- If you have already an older version of bash-support and you have modified
- the template files you may want to save your templates first and suppress
- overwriting them with
-
- unzip bash-support.zip -x *Templates *.template
-
-(1.2) Loading of plugin files must be enabled. If not use
-
- :filetype plugin on
-
- This is the minimal content of the file '$HOME/.vimrc'. Create one if there
- is none or use the files in $HOME/.vim/bash-support/rc as a starting point.
-
-(1.3) Set at least some personal details in the file
- '$HOME/.vim/bash-support/templates/Templates'
- Here is the minimal personalization (my settings as an example):
-
- |AUTHOR| = Dr. Fritz Mehner
- |AUTHORREF| = fgm
- |EMAIL| = mehner@fh-swf.de
- |COMPANY| = FH S�dwestfalen, Iserlohn
- |COPYRIGHT| = Copyright (c) |YEAR|, |AUTHOR|
-
- (Read more about the template system in the plugin documentation)
-
-(1.4) Make the plugin help accessable by typing the following command on the
- Vim command line:
-
- :helptags $HOME/.vim/doc/
-
-(1.5) Consider additional settings in the file '$HOME/.vimrc'. The files
- customization.vimrc and customization.gvimrc are replacements or extensions
- for your .vimrc and .gvimrc. You may want to use parts of them. The files
- are documented.
-
-
-(2) WINDOWS
-------------
-
-The subdirectories in the zip archive bash-support.zip mirror the directory
-structure which is needed below the local installation directory
-$HOME/vimfiles/ (find the value of $HOME with ":echo $HOME" from inside Vim).
-
-(2.0) Save the template files in '$HOME/vimfiles/bash-support/templates/Templates'
- if you have changed any of them.
-
-(2.1) Copy the zip archive bash-support.zip to $HOME/vimfiles and run
-
- unzip bash-support.zip
-
- If you have already an older version of bash-support and you have modified
- the template files you may want to save your templates first and suppress
- overwriting them with
-
- unzip bash-support.zip -x *Templates *.template
-
-(2.2) Loading of plugin files must be enabled. If not use
-
- :filetype plugin on
-
- This is the minimal content of the file '$HOME/_vimrc'. Create one if there
- is none or use the files in $HOME/vimfiles/bash-support/rc as a starting
- point.
-
-(2.3) Set at least some personal details in the file
- '$HOME/vimfiles/bash-support/templates/Templates'
- Here is the minimal personalization (my settings as an example):
-
- |AUTHOR| = Dr. Fritz Mehner
- |AUTHORREF| = fgm
- |EMAIL| = mehner@fh-swf.de
- |COMPANY| = FH S�dwestfalen, Iserlohn
- |COPYRIGHT| = Copyright (c) |YEAR|, |AUTHOR|
-
- (Read more about the template system in the plugin documentation)
-
-(2.4) Make the plugin help accessable by typing the following command on the
- Vim command line:
-
- :helptags $HOME\vimfiles\doc\
-
-(2.5) Consider additional settings in the file '$HOME/_vimrc'. The files
- customization.vimrc and customization.gvimrc are replacements or extensions
- for your _vimrc and _gvimrc. You may want to use parts of them. The files
- are documented.
-
-There are a lot of features and options which can be used and influenced:
-
- * use of template files and tags
- * using and managing personal code snippets
- * bash dictionary for keyword completion
- * removing the root menu
- * using additional plugins
-
-Look at the bashsupport help with
-
- :help bashsupport
-
- +-----------------------------------------------+
- | +-------------------------------------------+ |
- | | ** Please read the documentation ** | |
- | | Actions differ for different modes! | |
- | +-------------------------------------------+ |
- +-----------------------------------------------+
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.9
-=======================================================================================
-- Hotkey renamed: \st -> \su
-- New global variable allows loading menus only with filetype 'sh'.
-- Comments: echo "<line>" escapes double quotes in original text.
-- Other minor bugs fixed.
-
-=======================================================================================
- OLDER RELEASE NOTES : see file 'ChangeLog'
-=======================================================================================
-
-=======================================================================================
- FILES
-=======================================================================================
-
-README.bashsupport This file.
-
-ftplugin/sh.vim A filetype plugin. Defines hotkeys and more.
-
-plugin/bash-support.vim The bash plugin for Vim/gVim.
-bash-support/scripts/wrapper.sh A wrapper script for the use of an xterm.
-
-doc/bashsupport.txt The help file for the local online help.
-
-bash-support/codesnippets/* Some code snippets as a starting point.
-
-bash-support/templates/* bash template files (see bashsupport.txt).
-
-bash-support/wordlists/* Additional word lists (dictionaries).
-
------------------------ -------------------------------------------------------------
------------------------ The following files and extensions are for convenience only.
- bash-support.vim will work without them.
- -------------------------------------------------------------
-
-bash-support/rc/customization.bashrc Additional settings I use in .bashrc:
- set the prompt P2, P3, P4 (for debugging).
-
-bash-support/rc/customization.vimrc Additional settings I use in .vimrc: incremental
- search, tabstop, hot keys, font, use of dictionaries,
- ... The file is commented. Append it to your .vimrc
- if you like.
-
-bash-support/rc/customization.gvimrc Additional settings I use in .gvimrc: hot keys,
- mouse settings, ... The file is commented.
- Append it to your .gvimrc if you like.
-
-bash-support/doc/* Hotkey reference card (PDF), changelog.
-
-
-=======================================================================================
- ADDITIONAL TIPS
-=======================================================================================
-
-(1) gvim. Toggle 'insert mode' <--> 'normal mode' with the right mouse button
- (see mapping in file customization.gvimrc).
-
-(2) gvim. Use tear off menus and
-
-(3) try 'Focus under mouse' as window behavior (No mouse click when the mouse
- pointer is back from the menu entry).
-
-(4) Use Emulate3Buttons "on" (X11) even for a 3-button mouse. Pressing left and
- right button simultaneously without moving your fingers is faster then
- moving a finger to the middle button (often a wheel).
-
-=======================================================================================
View
13 bundle/bash-support/codesnippets/_debug_PS4
@@ -1,13 +0,0 @@
-# PS4 : timestamp; 'seconds.nanoseconds' since 1970-01-01 00:00:00 UT
-PS4='+ [$(date "+%s.%N")] '
-
-# PS4 : position, line number, function name
-PS4='+|${BASH_SOURCE##*/} ${LINENO}${FUNCNAME[0]:+ ${FUNCNAME[0]}}| '
-
-# PS4 : position, line number, function name, subshell information
-PS4='+(${BASH_SOURCE##*/}: ${LINENO}) : ${FUNCNAME[0]} - [level ${SHLVL}, subshell ${BASH_SUBSHELL}, return code $?]
-'
-
-# PS4 : default prompt
-PS4='+'
-
View
16 bundle/bash-support/codesnippets/_debug_assert
@@ -1,16 +0,0 @@
-#=== FUNCTION ================================================================
-# NAME: _assert
-# DESCRIPTION: Abort the script if assertion is false.
-# PARAMETERS: 1) expression used as test inside brackets
-# 2) optional information, e.g. $LINENO
-# RETURNS: 0 / 99 assertion is true / false
-#===============================================================================
-function _assert ()
-{
- if [ ! $1 ]; then
- echo "${0##*/}${2:+:$2}: assertion '$1' failed."
- exit 99
- fi
- return 0
-}
-
View
15 bundle/bash-support/codesnippets/_debug_function.noindent
@@ -1,15 +0,0 @@
-
-DEBUG=${DEBUG:-0} # 0 = no debug output, 1 = show debug output,
- # or enable debug with: DEBUG=1 script.sh
-
-#=== FUNCTION ================================================================
-# NAME: _debug
-# DESCRIPTION: echo debug output controlled by a global variable
-# PARAMETERS: list, e.g.; "$LINENO: x=$x"
-# RETURNS: always 0
-#===============================================================================
-_debug ()
-{
- [ ${DEBUG} -ne 0 ] && echo -e "${@}"
- return 0
-} # ---------- end of function _debug ----------
View
3 bundle/bash-support/codesnippets/_debug_print_pos_param
@@ -1,3 +0,0 @@
-# print the positional parameters
-printf '"%b"\n' "$0" "$@" | nl -v0 -s": "
-
View
16 bundle/bash-support/codesnippets/_debug_timestamp.noindent
@@ -1,16 +0,0 @@
-
-DEBUG=${DEBUG:-0} # 0 = no debug output, 1 = show debug output,
- # or enable debug with: DEBUG=1 script.sh
-
-#=== FUNCTION ================================================================
-# NAME: _debug_timestamp
-# DESCRIPTION: timestamp + optional information
-# timestamp: {seconds since 1970-01-01 00:00:00}.{nanoseconds}
-# PARAMETERS: identification, e.g. $LINENO (optional)
-# RETURNS: always 0
-#===============================================================================
-_debug_timestamp ()
-{
- [ ${DEBUG} -ne 0 ] && echo -e "[ $(date "+%s.%N") ]${@:+ -- ${@}}"
- return 0
-} # ---------- end of function _debug_timestamp ----------
View
21 bundle/bash-support/codesnippets/_trap_DEBUG
@@ -1,21 +0,0 @@
-#=== FUNCTION ================================================================
-# NAME: _trap_DEBUG
-# DESCRIPTION: Trap code for the pseudo-signal DEBUG. Generate a message.
-# The DEBUG trap is not inherited by functions.
-# Use 'set -o functrace'
-# PARAMETERS: 1) identification (e.g. line number $LINENO)
-# 2) variable name(s) to be tracked
-#===============================================================================
-function _trap_DEBUG ()
-{
- declare identification=$1;
- while [ ${#} -gt 1 ]; do
- shift
- echo -e "DEBUG [$identification] ${1} = '${!1}'"
- done
-} # ---------- end of function _trap_DEBUG ----------
-
-trap '_trap_DEBUG $LINENO <-variable names->' DEBUG # trap DEBUG
-
-#trap - DEBUG # reset the DEBUG trap
-
View
15 bundle/bash-support/codesnippets/_trap_ERR
@@ -1,15 +0,0 @@
-#=== FUNCTION ================================================================
-# NAME: _trap_ERROR
-# DESCRIPTION: Trap code for the pseudo-signal ERR (A command returning a
-# non-zero exit status). Generates an error message.
-# PARAMETERS: The current line number given by $LINENO .
-#===============================================================================
-function _trap_ERROR ()
-{
- echo -e "\nERROR line ${1}: Command exited with status ${?}"
-} # ---------- end of function _trap_ERROR ----------
-
-trap '_trap_ERROR $LINENO' ERR # trap ERR
-
-#trap - ERR # reset the ERR trap
-
View
14 bundle/bash-support/codesnippets/_trap_EXIT
@@ -1,14 +0,0 @@
-#=== FUNCTION ================================================================
-# NAME: _trap_EXIT
-# DESCRIPTION: Trap code for the pseudo-signal EXIT. Generates an message.
-# PARAMETERS: The current line number given by $LINENO .
-#===============================================================================
-function _trap_EXIT ()
-{
- echo -e "\nEXIT line ${1}: Script exited with status ${?}"
-} # ---------- end of function ----------
-
-trap '_trap_EXIT $LINENO' EXIT # trap EXIT
-
-#trap - EXIT # reset the EXIT trap
-
View
17 bundle/bash-support/codesnippets/_trap_RETURN
@@ -1,17 +0,0 @@
-#=== FUNCTION ================================================================
-# NAME: _trap_RETURN
-# DESCRIPTION: Trap code for the pseudo-signal RETURN. Generates a message.
-# The RETURN trap is not inherited by functions.
-# Use 'set -o functrace'
-# PARAMETERS: The current line number given by $LINENO .
-# variable(s) to be tracked
-#===============================================================================
-function _trap_RETURN ()
-{
- echo -e "\nRETURN line ${1}: "
-} # ---------- end of functionn _trap_RETURN ----------
-
-trap '_trap_RETURN $LINENO' RETURN # trap RETURN
-
-#trap - RETURN # reset the RETURN trap
-
View
5 bundle/bash-support/codesnippets/basename+pathname
@@ -1,5 +0,0 @@
-basename=${pathname##*/}
-dirname=${pathname%/*}
-filename=${basename%%.*}
-lastextension=${basename##*.}
-allextensions=${basename#*.}
View
11 bundle/bash-support/codesnippets/basename-function
@@ -1,11 +0,0 @@
-#=== FUNCTION ================================================================
-# NAME: Basename
-# DESCRIPTION: Replacement for basename(1) .
-# PARAMETERS: NAME [SUFFIX]
-# RETURNS: Print NAME with any leading directory components removed.
-#===============================================================================
-function Basename ()
-{
- local base=${1##*/}
- echo ${base%$2}
-} # ---------- end of function Basename ----------
View
3 bundle/bash-support/codesnippets/check-for-signed-integer
@@ -1,3 +0,0 @@
-if [[ $number =~ ^[+-]?[0-9]+$ ]] ; then
- echo -e "match found : (signed) integer\n"
-fi
View
3 bundle/bash-support/codesnippets/check-for-unsigned-integer
@@ -1,3 +0,0 @@
-if [[ $number =~ ^[0-9]+$ ]] ; then
- echo -e "match found : integer\n"
-fi
View
5 bundle/bash-support/codesnippets/check-number-of-command-line-arguments
@@ -1,5 +0,0 @@
-#-----------------------------------------------------------------------
-# Check number of command line arguments
-#-----------------------------------------------------------------------
-[ $# -lt 1 ] && { echo -e "\n\tUsage: ${0##/*/} File\n"; exit 1; }
-
View
3 bundle/bash-support/codesnippets/create-tempfile
@@ -1,3 +0,0 @@
-TMPFILE=$( mktemp /tmp/example.XXXXXXXXXX ) || exit 1
-
-rm --force $TMPFILE
View
18 bundle/bash-support/codesnippets/create-tempfile-in-secure-manner
@@ -1,18 +0,0 @@
-
-TMPDIR=${TMPDIR:-/tmp} # defaults to /tmp if unset
-
-#-------------------------------------------------------------------------------
-# Creates a particular temporary directory inside $TMPDIR.
-# mkdir(1) is an atomic check-and-create operation.
-#-------------------------------------------------------------------------------
-TEMPORARY_DIR=$(mktemp -d "$TMPDIR/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX") || \
- { echo "ERROR creating a temporary file"; exit 1; }
-
-#-------------------------------------------------------------------------------
-# When the program exits, it tries to remove the temporary folder.
-# This code is executed even if the process receives a signal 1,2,3 or 15.
-#-------------------------------------------------------------------------------
-trap 'rm --recursive --force "$TEMPORARY_DIR"' 0
-
-touch $TEMPORARY_DIR/tempfile # new tempfile inside folder
-
View
19 bundle/bash-support/codesnippets/create-tempfile-with-trap
@@ -1,19 +0,0 @@
-
-#-----------------------------------------------------------------------
-# cleanup temporary file in case of a keyboard interrupt (SIGINT)
-# or a termination signal (SIGTERM)
-#-----------------------------------------------------------------------
-function cleanup_temp
-{
- [ -e $tmpfile ] && rm --force $tmpfile
- exit 0
-}
-
-trap cleanup_temp SIGHUP SIGINT SIGPIPE SIGTERM
-
-tmpfile=$(mktemp) || { echo "$0: creation of temporary file failed!"; exit 1; }
-
-# use tmpfile ...
-
-rm --force $tmpfile
-
View
8 bundle/bash-support/codesnippets/free-software-comment
@@ -1,8 +0,0 @@
-#
-#==========================================================================
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#==========================================================================
-#
View
8 bundle/bash-support/codesnippets/read-and-split-into-array
@@ -1,8 +0,0 @@
-
-declare infilename="" # input filename
-declare -a part # make part an array
-
-while IFS=':' read -a part ; do # set IFS, read, and split line
- # use ${part[i]}
-done < "$infilename"
-
View
3 bundle/bash-support/codesnippets/timestamp
@@ -1,3 +0,0 @@
-
-timestamp=$(date +"%Y%m%d-%H%M%S") # generate timestamp : YYYYMMDD-hhmmss
-
View
39 bundle/bash-support/codesnippets/usage-and-command-line-arguments.noindent
@@ -1,39 +0,0 @@
-
-ScriptVersion="1.0"
-
-#=== FUNCTION ================================================================
-# NAME: usage
-# DESCRIPTION: Display usage information.
-#===============================================================================
-function usage ()
-{
- cat <<- EOT
-
- Usage : ${0##/*/} [options] [--]
-
- Options:
- -h|help Display this message
- -v|version Display script version
-
- EOT
-} # ---------- end of function usage ----------
-
-#-----------------------------------------------------------------------
-# Handle command line arguments
-#-----------------------------------------------------------------------
-
-while getopts ":hv" opt
-do
- case $opt in
-
- h|help ) usage; exit 0 ;;
-
- v|version ) echo "$0 -- Version $ScriptVersion"; exit 0 ;;
-
- \? ) echo -e "\n Option does not exist : $OPTARG\n"
- usage; exit 1 ;;
-
- esac # --- end of case ---
-done
-shift $(($OPTIND-1))
-
View
15 bundle/bash-support/codesnippets/use-file-descriptor-read
@@ -1,15 +0,0 @@
-
-infilename="" # input filename
-
-exec 3<"$infilename"
-if [ $? -ne 0 ] ; then
- echo -e "Could not link file descriptor with file '$infilename'\n"
- exit 1
-fi
-
-while read line <&3 ; do
- echo -e "$line"
-done
-
-exec 3<&- # close file descriptor
-
View
13 bundle/bash-support/codesnippets/use-file-descriptor-write
@@ -1,13 +0,0 @@
-
-outfilename="" # output filename
-
-exec 4>"$outfilename"
-if [ $? -ne 0 ] ; then
- echo -e "Could not link file descriptor with file '$outfilename'\n"
- exit 1
-fi
-
-echo -e "text" >&4
-
-exec 4>&- # close file descriptor
-
View
29 bundle/bash-support/codesnippets/well-behaved-script
@@ -1,29 +0,0 @@
-set -o nounset # treat unset variables as errors
-
-#===============================================================================
-# GLOBAL DECLARATIONS
-#===============================================================================
-declare -rx SCRIPT=${0##*/} # the name of this script
-declare -rx mkdir='/bin/mkdir' # the mkdir(1) command
-
-#===============================================================================
-# SANITY CHECKS
-#===============================================================================
-if [ -z "$BASH" ] ; then
- printf "$SCRIPT:$LINENO: run this script with the BASH shell\n" >&2
- exit 192
-fi
-
-if [ ! -x "$mkdir" ] ; then
- printf "$SCRIPT:$LINENO: command '$mkdir' not available - aborting\n" >&2
- exit 192
-fi
-
-#===============================================================================
-# MAIN SCRIPT
-#===============================================================================
-
-#===============================================================================
-# STATISTICS / CLEANUP
-#===============================================================================
-exit 0
View
360 bundle/bash-support/doc/ChangeLog
@@ -1,360 +0,0 @@
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.8
-=======================================================================================
-- New comment submenu 'script sections'.
-- Two new hotkeys \css, \ckc for commenting.
-- Two new plugin tags: LICENSE,ORGANIZATION
-- Run menu: new item 'Bash cmd. line arg.' (\rba).
-- I/O-Redir-menu: additional item'>&2'
-- System-wide installation: minimal Template file for a user will automatically
- be added.
-- Hotkey renamed: \t -> \t1
-- A few code snippets for debugging added.
-- Bugfix: \cl did not work in insert mode.
-- Other minor bugs fixed.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.7
-=======================================================================================
-- The three hotkeys \cl, \cj, \cc allow a range, e.g. '3\cl' (see help text and
- bash-hot-key.pdf).
-- Plugin loads faster: loading the templates is delayed until the first use.
-- Plugin now works with pathogen.vim.
-- Menus will always be generated (for the use with :emenu).
-- Bugfix: no local templates available with a system-wide installation (thanks to Iain Arnell).
-- Several improvements.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.6
-=======================================================================================
-- New hotkey \ssa and menu entry for the selection of a subarray.
-- Bugfix: detection of a systemwide installation can fail.
-- Minor improvements.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.5
-=======================================================================================
-- Bugfix: detection of a systemwide installation can fail.
-- Minor improvements.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.4
-=======================================================================================
-- 2 new hotkeys: \t, \t2 (empty tests)
-- Windows: user and system installation.
-- Syntax check under Windows.
-- Several minor bugsfixed.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.3
-=======================================================================================
-- 3 hotkeys renamed: \sl -> \sei (elif), \sas -> \saa ( ${.[@]} ) , \hp -> \hbs.
-- 3 new hotkeys: \sa1 ( ${.[*]} ), \san ( ${#.[@]} ), \sai ( ${!.[@]} ).
-- 1 new menu entry (Tests)
-- Minor improvements.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.2
-=======================================================================================
-- New hotkey and menu entry for [[ =~ ]]
-- New for Bash 4.1: shopt 'compat40', variables '$BASHOPTS', '$BASH_XTRACEFD'.
-- Bugfixes: local installation looks like a system-wide installation in seldom cases.
-- Bugfixes: typo in 4 menu entries.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.1.1
-=======================================================================================
-- Bugfixes: code snippets will not be found if plugin not installed beyond '$HOME/.vim'.
-- Bugfixes: undocumented global variable used in above non-standard installation.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.1
-=======================================================================================
-- The plugin now handles different template styles without editing and
- reloading the main template file.
-- New hotkey and ex-command to switch template styles.
-- New global List/Dictionnary g:BASH_AlsoBash: add filename pattern (and
- styles) for files not named *.sh .
-- Minor improvements.
-- Bugfixes: missing redraws in some cases.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.0.1
-=======================================================================================
-- New global variable g:BASH_Errorformat: adapt the error format used to parse
- runtime messages to your locale setting.
-- Bugfix (Windows only): missing internal variable prevents proper initialization.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 3.0
-=======================================================================================
-+ Completely new template system. User can change templates on the fly.
-+ Additional mapping Ctrl-j : jump behind parenthesis or strings in the current line.
-+ A few Posix character classes have better shortcuts.
-+ Bugfix: insert mode for Posix character classes.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.14
-=======================================================================================
-+ Debugging: ddd always called with bashdb(1).
-+ More complete adaption to Bash 4.0: options, builtins, environment variables.
-+ Bugfix: running and starting the debugger causes error if working directory is not
- the directory of the current file.
-+ Minor improvements.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.13
-=======================================================================================
-+ New menu item 'array element'.
-+ New hotkeys \sa, \sas.
-+ New submenu 'Snippets'.
-+ Hotkeys for the POSIX character classes.
-+ Hardcopy (run menu) can print any buffer.
-+ Bugfix: 'Run->save + run script' (\rr, <C-F9>) : visual mode broken.
-+ Minor improvements.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.12
-=======================================================================================
-+ Hotkeys are shown in the menus.
-+ New menu item and hotkey \hb : open the Bash manual.
-+ New hotkey \rco : syntax check options.
-+ File browser for code snippets choosable (new global variable).
-+ Bugfix: wrapper script for use of a xterm could not handle parameters containing blanks.
-+ Minor improvements.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.11
-=======================================================================================
-+ Additions for Bash version 4.0.
-+ Comments menu (\cj): adjustment of end-of-line comments improved.
-+ Two submenus rearranged.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.10
-=======================================================================================
-- new item in the Statements-menu: 'for ((...)) do done'.
-- new item in the Statements-menu: 'printf "%s"'.
-- new item in the Statements-menu: indirect parameter expansion ${!name}
-- Bugfix: unnecessary submenu beyond 'Environ'.
-- Bugfix: shopt menu had no insert mode.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.9.1
-=======================================================================================
-- Map leader for hotkeys now user definable: new global variable g:BASH_MapLeader.
-- Bugfix: 'Statements->no. of elem.s' inserts wrong text.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.9
-=======================================================================================
-+ Can now be used under Windows, e.g. with win-bash (few restrictions).
-+ Name completion when entering a builtin name.
-+ Bugfix: help shows no selection when just 2 manuals are available.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.8
-=======================================================================================
-+ New help menu: help reorganized, 3 new help hotkeys.
-+ The help hotkeys now also work when Vim is run on the console.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.7.1
-=======================================================================================
-+ Minor bugfix in the I/O-Redir-menu.
-+ I/O-Redir-menu shows redirectors (sort of help).
-+ I/O-Redir-menu: here-document item has a vmode.
-+ File name expansion for the first command line argument entered with <S-F9>.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.7
-=======================================================================================
-+ When a Bash script is started from the Vim command line errors and warnings (if any)
- are caught in an error window allowing quickfix commands to be used.
-+ Scripts which are not set executable can be run under Vim.
-+ One new hotkey.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.6
-=======================================================================================
-+ Superfluous control characters for mode switching (menus, hotkeys) removed. Caused beeps.
-+ Most hotkeys now work in insert mode.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.5
-=======================================================================================
-+ Menu item 'toggle comment' replaces 'code->comment' and 'comment->code'
-+ Hotkey \co removed, \cc is now a toggle.
-+ Bugfix. Adjusting comments (\cj): # in '$#' and '${#...}' is no longer
- regarded as a start of a comment.
-+ Bugfix. \cl in insert mode called function for visual mode.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.4
-=======================================================================================
-+ Format for the macros |DATE|, |TIME|, and |YEAR| can be defined by the user.
-+ Help text improved.
-+ Option 'nocasematch' added
-+ Additional menu entries: 1 parameter substitution, 1 special variable, array index list.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.3
-=======================================================================================
-+ Changes to allow a system-wide installation.
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.2
-=======================================================================================
-+ Snippets can now be managed in the console mode.
-+ Three new key mappings for snippet handling.
-+ Three items from the statements menu removed (quoting; but see file customization.vimrc).
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.1
-=======================================================================================
-+ New menu item and key mapping to adjust end-of-line comments.
-+ New insert mode mappings.
-+ A few mappings have been renamed (to bring them into line with my C/C++ and Perl plugin).
-
-=======================================================================================
- RELEASE NOTES FOR VERSION 2.0.1
-=======================================================================================
-+ Bugfix: missing hotkey \ch added.
-+ File wrapper.sh moved to the new directory 'bash-support/scripts'.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 2.0
----------------------------------------------------------------------------------------
-+ PLUGIN DIRECTORIES REARRANGED.
-+ One new mapping (\cs).
-+ Statement menu extended.
-+ Bash keyword help (S-F1) improved.
-+ Bugfix: empty new file after removing the header template can't be closed.
-+ Bugfix : Tools entry missing when root menu not shown from the start.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.15
----------------------------------------------------------------------------------------
-+ Needs Vim version 7.0+.
-+ Inserting a function can be used in visual mode (+ new key mapping).
-+ Bugfix: cursor misplaced after some visual mode operations.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.14
----------------------------------------------------------------------------------------
-+ Setting the column for the start of line-end comments improved.
-+ Mac OS X : circumvent a Vim bug which caused a crash when loading plugin version 1.13.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.13
----------------------------------------------------------------------------------------
-+ The hotkeys F9 and \rd now also starts the debugger if vim is running without GUI.
-+ The debugger frontend ddd can be started as preferred debugger.
-+ New help entry in the main menu of this plugin (shows the plugin documentation).
-+ A hardcopy shows the localized date and time in the header line.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.12
----------------------------------------------------------------------------------------
-+ Bugfix: hotkey <S-F9> now working again.
-+ Syntax check recognizes shopt options.
-+ New regex menu: compose regular expressions with a few keystrokes from the menu.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.11
----------------------------------------------------------------------------------------
-+ Start debugger bashdb with a keystroke.
-+ Parameter substitutions completed.
-+ Environment variables completed / menu rearranged.
-+ Builtins completed.
-+ Code <-> comment working in all modes.
-+ Insert/remove echo for commenting/uncommenting statements.
-+ Script will be made executable before running it (e.g. after a "Save As...").
-+ Statement menu now in alphabetical order.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.10.1
----------------------------------------------------------------------------------------
-+ Starting an xterm was not possible with some installations (bugfix).
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.10
----------------------------------------------------------------------------------------
-+ New Bash 3.0 set options added.
-+ Shopt-menu added.
-+ More builtins.
-+ <S-F1> or \h displays help for the Bash builtin command under the cursor.
-+ Key mappings for all run menu entries.
-+ Line end comments start in a fixed column now (can be set from the menu).
-+ Spaces in path names and file names are now possible.
-+ Template files and snippet files are no longer kept in the list of alternate files.
-+ Global variable is_bash is set to avoid a wrong highlighting for $(..) and $((..)).
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.9
----------------------------------------------------------------------------------------
-+ Running a Bash-script
- (1) The script can be run from the command line as usual.
- (2) The output can be directed into a window with name "Bash-Output".
- The buffer and its content will disappear when closing the window.
- The buffer is reused when still open.
- (3) The script can be run in an xterm.
-+ The new hotkey Shift-F9 or the "cmd. line arg." sets command line arguments for the
- current buffer (that is, each buffer can have its own arguments).
-+ A code snippet with the file name extension "ni" or "noindent" will not be
- indented on insertion.
-+ 'Line End Comments' ignores blank lines in a marked block.
-+ Calling a set-command (submenu "Set") for a marked block will set this option above
- this block and unset it below.
-
----------------------------------------------------------------------------------------
- RELEASE NOTES FOR VERSION 1.8
----------------------------------------------------------------------------------------
-+ Installation simplified.