|
1 | | -## [幫助維護Vundle](https://github.com/VundleVim/Vundle.vim/issues/383) |
2 | | - |
3 | | -## 關於 |
4 | | - |
5 | | -[Vundle] 是 _Vim bundle_ 的簡稱,是一個 [Vim] 插件管理器. |
6 | | - |
7 | | -[Vundle] 允許你做... |
8 | | - |
9 | | -* 同時在`.vimrc`中跟蹤和[管理](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L126-L233)插件 |
10 | | -* [安裝](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L234-L254)特定格式的插件(a.k.a. scripts/bundle) |
11 | | -* [更新](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L255-L265)特定格式插件 |
12 | | -* 通過插件名稱[搜索](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L266-L295)[Vim scripts](http://vim-scripts.org/vim/scripts.html)中的插件 |
13 | | -* [清理](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L303-L318)未使用的插件 |
14 | | -* 可以通過*單一按鍵*完成以上操作,詳見[interactive mode](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L319-L360) |
15 | | - |
16 | | -[Vundle] 自動完成... |
17 | | - |
18 | | -* 管理已安裝插件的[runtime path](http://vimdoc.sourceforge.net/htmldoc/options.html#%27runtimepath%27) |
19 | | -* 安裝和更新後,重新生成[幫助標簽](http://vimdoc.sourceforge.net/htmldoc/helphelp.html#:helptags) |
20 | | - |
21 | | -[Vundle] 正在經歷一個 [interface change], 請通過以下方式獲取最新信息. |
22 | | - |
23 | | -討論和技術支持:[](https://gitter.im/VundleVim/Vundle.vim) |
24 | | - |
25 | | - |
26 | | - |
27 | | -## 快速開始 |
28 | | - |
29 | | -1. 介紹: |
30 | | - |
31 | | - 安裝需要[Git](http://git-scm.com/),觸發[`git clone`](http://gitref.org/creating/#clone),默認將每一個指定特定格式插件的倉庫復制到`~/.vim/bundle/`. |
32 | | - 搜索需要Curl支持. |
33 | | - |
34 | | - Windows用戶請直接訪問[Windows setup]. 如果有任何問題, 請參考 [FAQ]. |
35 | | - 查看 [Tips] 獲取相關高級配置. |
36 | | - |
37 | | - 使用 non-POSIX shells, 比如比較流行對 Fish shell, 需要額外對步驟. 請查看 [FAQ]. |
38 | | - |
39 | | -2. 初始安裝 [Vundle]: |
40 | | - |
41 | | - `$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim` |
42 | | - |
43 | | -3. 配置插件 : |
44 | | - |
45 | | - 請將以下加在 `.vimrc` 方可使用Vundle. 刪掉你不需要的插件, 這些只是用做示例. |
46 | | - |
47 | | - ```vim |
48 | | - set nocompatible " 去除VI一致性,必須 |
49 | | - filetype off " 必須 |
50 | | -
|
51 | | - " 設置包括vundle和初始化相關的runtime path |
52 | | - set rtp+=~/.vim/bundle/Vundle.vim |
53 | | - call vundle#begin() |
54 | | - " 另一種選擇, 指定一個vundle安裝插件的路徑 |
55 | | - "call vundle#begin('~/some/path/here') |
56 | | -
|
57 | | - " 讓vundle管理插件版本,必須 |
58 | | - Plugin 'VundleVim/Vundle.vim' |
59 | | -
|
60 | | - " 以下範例用來支持不同格式的插件安裝. |
61 | | - " 請將安裝插的命令放在vundle#begin和vundle#end之間. |
62 | | - " Github上的插件 |
63 | | - " 格式為 Plugin '用戶名/插件倉庫名' |
64 | | - Plugin 'tpope/vim-fugitive' |
65 | | - " 來自 http://vim-scripts.org/vim/scripts.html 的插件 |
66 | | - " Plugin '插件名稱' 實際上是 Plugin 'vim-scripts/插件倉庫名' 只是此處的用戶名可以省略 |
67 | | - Plugin 'L9' |
68 | | - " 由Git支持但不再github上的插件倉庫 Plugin 'git clone 後面的地址' |
69 | | - Plugin 'git://git.wincent.com/command-t.git' |
70 | | - " 本地的Git倉庫(例如自己的插件) Plugin 'file:///+本地插件倉庫絕對路徑' |
71 | | - Plugin 'file:///home/gmarik/path/to/plugin' |
72 | | - " 插件在倉庫的子目錄中. |
73 | | - " 正確指定路徑用以設置runtimepath. 以下範例插件在sparkup/vim目錄下 |
74 | | - Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} |
75 | | - " 避免插件名沖突,例如L9已存在,則可以指定 |
76 | | - Plugin 'user/L9', {'name': 'newL9'} |
77 | | -
|
78 | | - " 你的所有插件需要在下面這行之前 |
79 | | - call vundle#end() " 必須 |
80 | | - filetype plugin indent on " 必須 加載vim自帶和插件相應的語法和文件類型相關腳本 |
81 | | - " 忽視插件改變縮進,可以使用以下替代: |
82 | | - "filetype plugin on |
83 | | - " |
84 | | - " 簡要幫助文檔 |
85 | | - " :PluginList - 列出所有已配置的插件 |
86 | | - " :PluginInstall - 安裝插件,追加 `!` 用以更新或使用 :PluginUpdate |
87 | | - " :PluginSearch foo - 搜索 foo ; 追加 `!` 清除本地緩存 |
88 | | - " :PluginClean - 清除未使用插件,需要確認; 追加 `!` 自動批准移除未使用插件 |
89 | | - " |
90 | | - " 查閱 :h vundle 獲取更多細節和wiki以及FAQ |
91 | | - " 將你自己對非插件片段放在這行之後 |
92 | | - ``` |
93 | | - |
94 | | -4. 安裝插件: |
95 | | - |
96 | | - 運行 `vim` 再運行 `:PluginInstall` |
97 | | - |
98 | | - 通過命令行直接安裝 `vim +PluginInstall +qall` |
99 | | - |
100 | | -## Docs |
101 | | - |
102 | | -查閱 [`:h vundle`](https://github.com/VundleVim/Vundle.vim/blob/master/doc/vundle.txt) Vimdoc 以獲取更多細節. |
103 | | - |
104 | | -## 更新日誌 |
105 | | - |
106 | | -查閱 [changelog](https://github.com/VundleVim/Vundle.vim/blob/master/changelog.md). |
107 | | - |
108 | | -## 在使用此插件的用戶的VIMRC |
109 | | - |
110 | | -查閱 [Examples](https://github.com/VundleVim/Vundle.vim/wiki/Examples) |
111 | | - |
112 | | -## 維護者 |
113 | | - |
114 | | -查閱 [Vundle contributors](https://github.com/VundleVim/Vundle.vim/graphs/contributors) |
115 | | - |
116 | | -*感謝!* |
117 | | - |
118 | | -## 靈感 & 思路 |
119 | | - |
120 | | -* [pathogen.vim](http://github.com/tpope/vim-pathogen/) |
121 | | -* [Bundler](https://github.com/bundler/bundler) |
122 | | -* [Scott Bronson](http://github.com/bronson) |
123 | | - |
124 | | -## 另外 |
125 | | - |
126 | | -* Vundle 已測試環境為: [Vim] 7.3 on OS X, Linux and Windows |
127 | | -* Vundle 嘗試盡可能保持至簡模式 [KISS](http://en.wikipedia.org/wiki/KISS_principle) |
128 | | - |
129 | | -## TODO: |
130 | | -[Vundle] 是一個正在進步對項目, 所以很多設計思路和補丁是需要借鑒的. |
131 | | - |
132 | | -* ✓ 在重新載入或者執行`:PluginInstall`之後激活`.vimrc`中新添加的插件 |
133 | | -* ✓ 使用預覽窗口顯示搜索結果 |
134 | | -* ✓ Vim documentation |
135 | | -* ✓ 同時將Vundle 放置在 `bundles/` 中 (將修復 Vundle 幫助) |
136 | | -* ✓ 測試 |
137 | | -* ✓ 提升錯誤處理能力 |
138 | | -* 支持手動指定版本(待考慮) |
139 | | -* 版本依賴 |
140 | | -* 搜索結果中顯示描述 |
141 | | -* 同時支持通過描述搜索 |
142 | | -* 使其更加穩定! |
143 | | - |
144 | | -[Vundle]:http://github.com/VundleVim/Vundle.vim |
145 | | -[Windows setup]:https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows |
146 | | -[FAQ]:https://github.com/VundleVim/Vundle.vim/wiki |
147 | | -[Tips]:https://github.com/VundleVim/Vundle.vim/wiki/Tips-and-Tricks |
148 | | -[Vim]:http://www.vim.org |
149 | | -[Git]:http://git-scm.com |
150 | | -[`git clone`]:http://gitref.org/creating/#clone |
151 | | - |
152 | | -[Vim scripts]:http://vim-scripts.org/vim/scripts.html |
153 | | -[help tags]:http://vimdoc.sourceforge.net/htmldoc/helphelp.html#:helptags |
154 | | -[runtime path]:http://vimdoc.sourceforge.net/htmldoc/options.html#%27runtimepath%27 |
155 | | - |
156 | | -[configure]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L126-L233 |
157 | | -[install]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L234-L254 |
158 | | -[update]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L255-L265 |
159 | | -[search]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L266-L295 |
160 | | -[clean]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L303-L318 |
161 | | -[interactive mode]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L319-L360 |
162 | | -[interface change]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L372-L396 |
| 1 | +## [幫助維護Vundle](https://github.com/VundleVim/Vundle.vim/issues/383) |
| 2 | + |
| 3 | +## 關於 |
| 4 | + |
| 5 | +[Vundle] 是 _Vim bundle_ 的簡稱,是一個 [Vim] 插件管理器. |
| 6 | + |
| 7 | +[Vundle] 允許你做... |
| 8 | + |
| 9 | +* 同時在`.vimrc`中跟蹤和[管理](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L126-L233)插件 |
| 10 | +* [安裝](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L234-L254)特定格式的插件(a.k.a. scripts/bundle) |
| 11 | +* [更新](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L255-L265)特定格式插件 |
| 12 | +* 通過插件名稱[搜索](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L266-L295)[Vim scripts](http://vim-scripts.org/vim/scripts.html)中的插件 |
| 13 | +* [清理](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L303-L318)未使用的插件 |
| 14 | +* 可以通過*單一按鍵*完成以上操作,詳見[interactive mode](https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L319-L360) |
| 15 | + |
| 16 | +[Vundle] 自動完成... |
| 17 | + |
| 18 | +* 管理已安裝插件的[runtime path](http://vimdoc.sourceforge.net/htmldoc/options.html#%27runtimepath%27) |
| 19 | +* 安裝和更新後,重新生成[幫助標簽](http://vimdoc.sourceforge.net/htmldoc/helphelp.html#:helptags) |
| 20 | + |
| 21 | +[Vundle] 正在經歷一個 [interface change], 請通過以下方式獲取最新信息. |
| 22 | + |
| 23 | +討論和技術支持:[](https://gitter.im/VundleVim/Vundle.vim) |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +## 快速開始 |
| 28 | + |
| 29 | +1. 介紹: |
| 30 | + |
| 31 | + 安裝需要[Git](http://git-scm.com/),觸發[`git clone`](http://gitref.org/creating/#clone),默認將每一個指定特定格式插件的倉庫復制到`~/.vim/bundle/`. |
| 32 | + 搜索需要Curl支持. |
| 33 | + |
| 34 | + Windows用戶請直接訪問[Windows setup]. 如果有任何問題, 請參考 [FAQ]. |
| 35 | + 查看 [Tips] 獲取相關高級配置. |
| 36 | + |
| 37 | + 使用 non-POSIX shells, 比如比較流行對 Fish shell, 需要額外對步驟. 請查看 [FAQ]. |
| 38 | + |
| 39 | +2. 初始安裝 [Vundle]: |
| 40 | + |
| 41 | + `$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim` |
| 42 | + |
| 43 | +3. 配置插件 : |
| 44 | + |
| 45 | + 請將以下加在 `.vimrc` 方可使用Vundle. 刪掉你不需要的插件, 這些只是用做示例. |
| 46 | + |
| 47 | + ```vim |
| 48 | + set nocompatible " 去除VI一致性,必須 |
| 49 | + filetype off " 必須 |
| 50 | +
|
| 51 | + " 設置包括vundle和初始化相關的runtime path |
| 52 | + set rtp+=~/.vim/bundle/Vundle.vim |
| 53 | + call vundle#begin() |
| 54 | + " 另一種選擇, 指定一個vundle安裝插件的路徑 |
| 55 | + "call vundle#begin('~/some/path/here') |
| 56 | +
|
| 57 | + " 讓vundle管理插件版本,必須 |
| 58 | + Plugin 'VundleVim/Vundle.vim' |
| 59 | +
|
| 60 | + " 以下範例用來支持不同格式的插件安裝. |
| 61 | + " 請將安裝插的命令放在vundle#begin和vundle#end之間. |
| 62 | + " Github上的插件 |
| 63 | + " 格式為 Plugin '用戶名/插件倉庫名' |
| 64 | + Plugin 'tpope/vim-fugitive' |
| 65 | + " 來自 http://vim-scripts.org/vim/scripts.html 的插件 |
| 66 | + " Plugin '插件名稱' 實際上是 Plugin 'vim-scripts/插件倉庫名' 只是此處的用戶名可以省略 |
| 67 | + Plugin 'L9' |
| 68 | + " 由Git支持但不再github上的插件倉庫 Plugin 'git clone 後面的地址' |
| 69 | + Plugin 'git://git.wincent.com/command-t.git' |
| 70 | + " 本地的Git倉庫(例如自己的插件) Plugin 'file:///+本地插件倉庫絕對路徑' |
| 71 | + Plugin 'file:///home/gmarik/path/to/plugin' |
| 72 | + " 插件在倉庫的子目錄中. |
| 73 | + " 正確指定路徑用以設置runtimepath. 以下範例插件在sparkup/vim目錄下 |
| 74 | + Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} |
| 75 | + " 避免插件名沖突,例如L9已存在,則可以指定 |
| 76 | + Plugin 'user/L9', {'name': 'newL9'} |
| 77 | +
|
| 78 | + " 你的所有插件需要在下面這行之前 |
| 79 | + call vundle#end() " 必須 |
| 80 | + filetype plugin indent on " 必須 加載vim自帶和插件相應的語法和文件類型相關腳本 |
| 81 | + " 忽視插件改變縮進,可以使用以下替代: |
| 82 | + "filetype plugin on |
| 83 | + " |
| 84 | + " 簡要幫助文檔 |
| 85 | + " :PluginList - 列出所有已配置的插件 |
| 86 | + " :PluginInstall - 安裝插件,追加 `!` 用以更新或使用 :PluginUpdate |
| 87 | + " :PluginSearch foo - 搜索 foo ; 追加 `!` 清除本地緩存 |
| 88 | + " :PluginClean - 清除未使用插件,需要確認; 追加 `!` 自動批准移除未使用插件 |
| 89 | + " |
| 90 | + " 查閱 :h vundle 獲取更多細節和wiki以及FAQ |
| 91 | + " 將你自己對非插件片段放在這行之後 |
| 92 | + ``` |
| 93 | + |
| 94 | +4. 安裝插件: |
| 95 | + |
| 96 | + 運行 `vim` 再運行 `:PluginInstall` |
| 97 | + |
| 98 | + 通過命令行直接安裝 `vim +PluginInstall +qall` |
| 99 | + |
| 100 | +## Docs |
| 101 | + |
| 102 | +查閱 [`:h vundle`](https://github.com/VundleVim/Vundle.vim/blob/master/doc/vundle.txt) Vimdoc 以獲取更多細節. |
| 103 | + |
| 104 | +## 更新日誌 |
| 105 | + |
| 106 | +查閱 [changelog](https://github.com/VundleVim/Vundle.vim/blob/master/changelog.md). |
| 107 | + |
| 108 | +## 在使用此插件的用戶的VIMRC |
| 109 | + |
| 110 | +查閱 [Examples](https://github.com/VundleVim/Vundle.vim/wiki/Examples) |
| 111 | + |
| 112 | +## 維護者 |
| 113 | + |
| 114 | +查閱 [Vundle contributors](https://github.com/VundleVim/Vundle.vim/graphs/contributors) |
| 115 | + |
| 116 | +*感謝!* |
| 117 | + |
| 118 | +## 靈感 & 思路 |
| 119 | + |
| 120 | +* [pathogen.vim](http://github.com/tpope/vim-pathogen/) |
| 121 | +* [Bundler](https://github.com/bundler/bundler) |
| 122 | +* [Scott Bronson](http://github.com/bronson) |
| 123 | + |
| 124 | +## 另外 |
| 125 | + |
| 126 | +* Vundle 已測試環境為: [Vim] 7.3 on OS X, Linux and Windows |
| 127 | +* Vundle 嘗試盡可能保持至簡模式 [KISS](http://en.wikipedia.org/wiki/KISS_principle) |
| 128 | + |
| 129 | +## TODO: |
| 130 | +[Vundle] 是一個正在進步對項目, 所以很多設計思路和補丁是需要借鑒的. |
| 131 | + |
| 132 | +* ✓ 在重新載入或者執行`:PluginInstall`之後激活`.vimrc`中新添加的插件 |
| 133 | +* ✓ 使用預覽窗口顯示搜索結果 |
| 134 | +* ✓ Vim documentation |
| 135 | +* ✓ 同時將Vundle 放置在 `bundles/` 中 (將修復 Vundle 幫助) |
| 136 | +* ✓ 測試 |
| 137 | +* ✓ 提升錯誤處理能力 |
| 138 | +* 支持手動指定版本(待考慮) |
| 139 | +* 版本依賴 |
| 140 | +* 搜索結果中顯示描述 |
| 141 | +* 同時支持通過描述搜索 |
| 142 | +* 使其更加穩定! |
| 143 | + |
| 144 | +[Vundle]:http://github.com/VundleVim/Vundle.vim |
| 145 | +[Windows setup]:https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows |
| 146 | +[FAQ]:https://github.com/VundleVim/Vundle.vim/wiki |
| 147 | +[Tips]:https://github.com/VundleVim/Vundle.vim/wiki/Tips-and-Tricks |
| 148 | +[Vim]:http://www.vim.org |
| 149 | +[Git]:http://git-scm.com |
| 150 | +[`git clone`]:http://gitref.org/creating/#clone |
| 151 | + |
| 152 | +[Vim scripts]:http://vim-scripts.org/vim/scripts.html |
| 153 | +[help tags]:http://vimdoc.sourceforge.net/htmldoc/helphelp.html#:helptags |
| 154 | +[runtime path]:http://vimdoc.sourceforge.net/htmldoc/options.html#%27runtimepath%27 |
| 155 | + |
| 156 | +[configure]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L126-L233 |
| 157 | +[install]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L234-L254 |
| 158 | +[update]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L255-L265 |
| 159 | +[search]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L266-L295 |
| 160 | +[clean]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L303-L318 |
| 161 | +[interactive mode]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L319-L360 |
| 162 | +[interface change]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L372-L396 |
0 commit comments