|
1 | | -## [Help Maintain Vundle](https://github.com/VundleVim/Vundle.vim/issues/383) |
| 1 | +## [帮助维护Vundle](https://github.com/VundleVim/Vundle.vim/issues/383) |
2 | 2 |
|
3 | 3 | ## 关于 |
4 | 4 |
|
|
20 | 20 |
|
21 | 21 | [Vundle] 正在经历一个 [interface change], 请通过以下方式获取最新信息. |
22 | 22 |
|
23 | | -[](https://gitter.im/VundleVim/Vundle.vim) : 讨论和技术支持. |
| 23 | +讨论和技术支持:[](https://gitter.im/VundleVim/Vundle.vim) |
24 | 24 |
|
25 | 25 |  |
26 | 26 |
|
27 | | -## Quick Start |
| 27 | +## 快速开始 |
28 | 28 |
|
29 | | -1. Introduction: |
| 29 | +1. 介绍: |
30 | 30 |
|
31 | | - Installation requires [Git] and triggers [`git clone`] for each configured repository to `~/.vim/bundle/` by default. |
32 | | - Curl is required for search. |
| 31 | + 安装需要[Git](http://git-scm.com/),触发[`git clone`](http://gitref.org/creating/#clone),默认将每一个指定特定格式插件的仓库复制到`~/.vim/bundle/`. |
| 32 | + 搜索需要Curl支持. |
33 | 33 |
|
34 | | - If you are using Windows, go directly to [Windows setup]. If you run into any issues, please consult the [FAQ]. |
35 | | - See [Tips] for some advanced configurations. |
| 34 | + Windows用户请直接访问[Windows setup]. 如果有任何问题, 请参考 [FAQ]. |
| 35 | + 查看 [Tips] 获取相关高级配置. |
36 | 36 |
|
37 | | - Using non-POSIX shells, such as the popular Fish shell, requires additional setup. Please check the [FAQ]. |
| 37 | + 使用 non-POSIX shells, 比如比较流行对 Fish shell, 需要额外对步骤. 请查看 [FAQ]. |
38 | 38 |
|
39 | | -2. Set up [Vundle]: |
| 39 | +2. 初始安装 [Vundle]: |
40 | 40 |
|
41 | 41 | `$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim` |
42 | 42 |
|
43 | | -3. Configure Plugins: |
| 43 | +3. 配置插件 : |
44 | 44 |
|
45 | | - Put this at the top of your `.vimrc` to use Vundle. Remove plugins you don't need, they are for illustration purposes. |
| 45 | + 请将以下加在 `.vimrc` 方可使用Vundle. 删掉你不需要的插件, 这些只是用做示例. |
46 | 46 |
|
47 | 47 | ```vim |
48 | | - set nocompatible " be iMproved, required |
49 | | - filetype off " required |
| 48 | + set nocompatible " 去除VI一致性,必须 |
| 49 | + filetype off " 必须 |
50 | 50 |
|
51 | | - " set the runtime path to include Vundle and initialize |
| 51 | + " 设置包括vundle和初始化相关的runtime path |
52 | 52 | set rtp+=~/.vim/bundle/Vundle.vim |
53 | 53 | call vundle#begin() |
54 | | - " alternatively, pass a path where Vundle should install plugins |
| 54 | + " 另一种选择, 指定一个vundle安装插件的路径 |
55 | 55 | "call vundle#begin('~/some/path/here') |
56 | 56 |
|
57 | | - " let Vundle manage Vundle, required |
| 57 | + " 让vundle管理插件版本,必须 |
58 | 58 | Plugin 'VundleVim/Vundle.vim' |
59 | 59 |
|
60 | | - " The following are examples of different formats supported. |
61 | | - " Keep Plugin commands between vundle#begin/end. |
62 | | - " plugin on GitHub repo |
| 60 | + " 以下范例用来支持不同格式的插件安装. |
| 61 | + " 请将安装插的命令放在vundle#begin和vundle#end之间. |
| 62 | + " Github上的插件 |
| 63 | + " 格式为 Plugin '用户名/插件仓库名' |
63 | 64 | Plugin 'tpope/vim-fugitive' |
64 | | - " plugin from http://vim-scripts.org/vim/scripts.html |
| 65 | + " 来自 http://vim-scripts.org/vim/scripts.html 的插件 |
| 66 | + " Plugin '插件名称' 实际上是 Plugin 'vim-scripts/插件仓库名' 只是此处的用户名可以省略 |
65 | 67 | Plugin 'L9' |
66 | | - " Git plugin not hosted on GitHub |
| 68 | + " 由Git支持但不再github上的插件仓库 Plugin 'git clone 后面的地址' |
67 | 69 | Plugin 'git://git.wincent.com/command-t.git' |
68 | | - " git repos on your local machine (i.e. when working on your own plugin) |
| 70 | + " 本地的Git仓库(例如自己的插件) Plugin 'file:///+本地插件仓库绝对路径' |
69 | 71 | Plugin 'file:///home/gmarik/path/to/plugin' |
70 | | - " The sparkup vim script is in a subdirectory of this repo called vim. |
71 | | - " Pass the path to set the runtimepath properly. |
| 72 | + " 插件在仓库的子目录中. |
| 73 | + " 正确指定路径用以设置runtimepath. 以下范例插件在sparkup/vim目录下 |
72 | 74 | Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} |
73 | | - " Avoid a name conflict with L9 |
| 75 | + " 避免插件名冲突,例如L9已存在,则可以指定 |
74 | 76 | Plugin 'user/L9', {'name': 'newL9'} |
75 | 77 |
|
76 | | - " All of your Plugins must be added before the following line |
77 | | - call vundle#end() " required |
78 | | - filetype plugin indent on " required |
79 | | - " To ignore plugin indent changes, instead use: |
| 78 | + " 你的所有插件需要在下面这行之前 |
| 79 | + call vundle#end() " 必须 |
| 80 | + filetype plugin indent on " 必须 加载vim自带和插件相应的语法和文件类型相关脚本 |
| 81 | + " 忽视插件改变缩进,可以使用以下替代: |
80 | 82 | "filetype plugin on |
81 | 83 | " |
82 | | - " Brief help |
83 | | - " :PluginList - lists configured plugins |
84 | | - " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate |
85 | | - " :PluginSearch foo - searches for foo; append `!` to refresh local cache |
86 | | - " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal |
| 84 | + " 简要帮助文档 |
| 85 | + " :PluginList - 列出所有已配置的插件 |
| 86 | + " :PluginInstall - 安装插件,追加 `!` 用以更新或使用 :PluginUpdate |
| 87 | + " :PluginSearch foo - 搜索 foo ; 追加 `!` 清除本地缓存 |
| 88 | + " :PluginClean - 清除未使用插件,需要确认; 追加 `!` 自动批准移除未使用插件 |
87 | 89 | " |
88 | | - " see :h vundle for more details or wiki for FAQ |
89 | | - " Put your non-Plugin stuff after this line |
| 90 | + " 查阅 :h vundle 获取更多细节和wiki以及FAQ |
| 91 | + " 将你自己对非插件片段放在这行之后 |
90 | 92 | ``` |
91 | 93 |
|
92 | | -4. Install Plugins: |
| 94 | +4. 安装插件: |
93 | 95 |
|
94 | | - Launch `vim` and run `:PluginInstall` |
| 96 | + 运行 `vim` 再运行 `:PluginInstall` |
95 | 97 |
|
96 | | - To install from command line: `vim +PluginInstall +qall` |
| 98 | + 通过命令行直接安装 `vim +PluginInstall +qall` |
97 | 99 |
|
98 | 100 | ## Docs |
99 | 101 |
|
100 | | -See the [`:h vundle`](https://github.com/VundleVim/Vundle.vim/blob/master/doc/vundle.txt) Vimdoc for more details. |
| 102 | +查阅 [`:h vundle`](https://github.com/VundleVim/Vundle.vim/blob/master/doc/vundle.txt) Vimdoc 以获取更多细节. |
101 | 103 |
|
102 | | -## Changelog |
| 104 | +## 更新日志 |
103 | 105 |
|
104 | | -See the [changelog](https://github.com/VundleVim/Vundle.vim/blob/master/changelog.md). |
| 106 | +查阅 [changelog](https://github.com/VundleVim/Vundle.vim/blob/master/changelog.md). |
105 | 107 |
|
106 | | -## People Using Vundle |
| 108 | +## 在使用此插件的用户的VIMRC |
107 | 109 |
|
108 | | -see [Examples](https://github.com/VundleVim/Vundle.vim/wiki/Examples) |
| 110 | +查阅 [Examples](https://github.com/VundleVim/Vundle.vim/wiki/Examples) |
109 | 111 |
|
110 | | -## Contributors |
| 112 | +## 维护者 |
111 | 113 |
|
112 | | -see [Vundle contributors](https://github.com/VundleVim/Vundle.vim/graphs/contributors) |
| 114 | +查阅 [Vundle contributors](https://github.com/VundleVim/Vundle.vim/graphs/contributors) |
113 | 115 |
|
114 | | -*Thank you!* |
| 116 | +*感谢!* |
115 | 117 |
|
116 | | -## Inspiration & Ideas |
| 118 | +## 灵感 & 思路 |
117 | 119 |
|
118 | 120 | * [pathogen.vim](http://github.com/tpope/vim-pathogen/) |
119 | 121 | * [Bundler](https://github.com/bundler/bundler) |
120 | 122 | * [Scott Bronson](http://github.com/bronson) |
121 | 123 |
|
122 | | -## Also |
| 124 | +## 另外 |
123 | 125 |
|
124 | | -* Vundle was developed and tested with [Vim] 7.3 on OS X, Linux and Windows |
125 | | -* Vundle tries to be as [KISS](http://en.wikipedia.org/wiki/KISS_principle) as possible |
| 126 | +* Vundle 已测试环境为: [Vim] 7.3 on OS X, Linux and Windows |
| 127 | +* Vundle 尝试尽可能保持至简模式 [KISS](http://en.wikipedia.org/wiki/KISS_principle) |
126 | 128 |
|
127 | 129 | ## TODO: |
128 | | -[Vundle] is a work in progress, so any ideas and patches are appreciated. |
| 130 | +[Vundle] 是一个正在进步对项目, 所以很多设计思路和补丁是需要借鉴的. |
129 | 131 |
|
130 | | -* ✓ activate newly added bundles on `.vimrc` reload or after `:PluginInstall` |
131 | | -* ✓ use preview window for search results |
| 132 | +* ✓ 在重新载入或者执行`:PluginInstall`之后激活`.vimrc`中新添加的插件 |
| 133 | +* ✓ 使用预览窗口显示搜索结果 |
132 | 134 | * ✓ Vim documentation |
133 | | -* ✓ put Vundle in `bundles/` too (will fix Vundle help) |
134 | | -* ✓ tests |
135 | | -* ✓ improve error handling |
| 135 | +* ✓ 同时将Vundle 放置在 `bundles/` 中 (将修复 Vundle 帮助) |
| 136 | +* ✓ 测试 |
| 137 | +* ✓ 提升错误处理能力 |
136 | 138 | * allow specifying revision/version? |
137 | 139 | * handle dependencies |
138 | 140 | * show description in search results |
|
0 commit comments