diff --git a/CNAME b/CNAME deleted file mode 100644 index fcee80a..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -docs.vimcn.org diff --git a/index.html b/index.html index 13dff66..570c353 100644 --- a/index.html +++ b/index.html @@ -1,101 +1,103 @@ - - - - - - - - - - - -Index - - -
-

Vim 中文团队

- -

Vim Script 文档中文计划

- -

Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。

- -

这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、推荐的优秀脚本的帮助文档,介绍,并附上一些小技巧之类。

- -

欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail) 邮件你的 github id 到 hotoo.cn[AT]gmail.com

- -

广告:欢迎加入 Vim 的 Gtalk 群

- -

0. 项目

-
- ref - -

1. 预览

-

-

-

- -

2. 翻译方法及约定

-

2.1. 帮助文档

- -
注:使用文档:即脚本附带的使用说明,一般要放置到 vimfiles/doc 目录中。
- - - -Windows: -
-:helptags $VIM/vimfiles/doc
-
- -Linux: -
-:helptags ~/.vim/doc
-
+ + + + + + + + Vim 中文计划 + + + + +
+
+
+
+

Vim 中文计划

+

这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、喜爱推荐的优秀脚本的帮助文档, +也可以附上介绍,和一些小技巧之类。

+

欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail) +邮件你的 github id 到 hotoo.cn+vimdocs[AT]gmail.com

+

Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。

+ +

广告

+

项目

+
+ - - +
+
+
+ +
Fork me on GitHub
+ + + \ No newline at end of file diff --git a/spec.html b/spec.html new file mode 100644 index 0000000..6a5cee9 --- /dev/null +++ b/spec.html @@ -0,0 +1,79 @@ + + + + + + + + 文档翻译规范 & 约定 + + + + +
+ +
+
+
+

文档翻译规范 & 约定

+

为了规范文档,提高文档质量和一致性,文档格式建议如下:

+

翻译方法

文件结构:

+
+- /doc
+|  +- {script_name}.cnx
+|  `- {script_name}.txt
+`- /README.md
    +
  • 翻译的文档与原始文档同名,后缀改为 .cnx
  • +
  • 保留(一般是英文)原始文档 .txt 文件。
  • +
  • 文件放置到 /doc 目录中(如 /doc/vimwiki.cnx)。
  • +
+

规范 & 约定

    +
  • 每行不超过 80 列。
  • +
  • 中文与英文之间用英文空格间隔。
  • +
  • 恰当的使用中文标点,如逗号(,),句号(。),引号(“”)。
  • +
  • 使用空格而不是 <Tab>
  • +
  • 尽量保持原始文档的风格。
  • +
+

文档相关

Vim 文档由 tags 来链接各个相关的帮助信息,tags 是包含在两个星号之间的关键字, +在 Vim 中使用 :helptags 命令会根据这些信息生成 tags:

+
*help-tags*

要链接到这些 tags,则将关键字放置在两条竖线之间:

+
|help-tags|

Vim 文档中如果有代码,可以放置在两个相对的尖括号间,起始括号之后不能有其他字符, +每行代码也需要有空白开始。

+
下面是实例代码: >
+this is code.
+more codes.
+<

除代码外,标点符号建议使用全角的中文标点,如“,”,“。”等。

+

署名

建议在自己参与的文档上署名。署名一般是留下自己的真实姓名或者虚拟的昵称,和自己 +常用的邮箱地址。这一个是对自己所作付出的认可,也是对自己的工作负责,另外如果其 +他人有问题,可以方便和你联系。一般格式为:

+
闲耘™ (hotoo.cn[AT]gmail.com)

或者:

+
闲耘™ <hotoo.cn[AT]gmail.com>

中间的 [AT] 是为了防止垃圾邮件,你也可以直接使用 @ 或者其他容易识别的字符。

+

如果你有建议,请联系 hotoo.cn[AT]gmail.com

+
+
+
+ +
Fork me on GitHub
+ + + \ No newline at end of file diff --git a/static/one.css b/static/one.css new file mode 100644 index 0000000..0d01c99 --- /dev/null +++ b/static/one.css @@ -0,0 +1,510 @@ +/** + * yue.css + * + * yue.css is designed for readable content. + * + * Copyright (c) 2013 by Hsiaoming Yang. + */ + +.yue { + font: 400 18px/1.62 "Georgia", "Xin Gothic", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", "SimSun", sans-serif; + color: #333332; +} +.yue ::selection { + background-color: rgba(0,0,0,0.2); +} +.yue h1, +.yue h2, +.yue h3, +.yue h4, +.yue h5, +.yue h6 { + color: #222223; +} +.yue h1 { + font-size: 1.8em; + margin: 0.67em 0; +} +.yue > h1 { + margin-top: 0; + font-size: 2em; +} +.yue h2 { + font-size: 1.5em; + margin: 0.83em 0; +} +.yue h3 { + font-size: 1.17em; + margin: 1em 0; +} +.yue h4, +.yue h5, +.yue h6 { + font-size: 1em; + margin: 1.6em 0 1em 0; +} +.yue h6 { + font-weight: 500; +} +.yue p { + margin-top: 0; + margin-bottom: 1.64em; +} +.yue a { + color: #111; + word-wrap: break-word; +} +.yue a:hover { + color: #555; +} +.yue strong, +.yue b { + font-weight: 700; + color: #222; +} +.yue em, +.yue i { + font-style: italic; + color: #222; +} +.yue img { + max-width: 98%; + margin: 0.2em 0; +} +.yue hr { + border: 0 none; + margin-bottom: 1em; +} +.yue hr:after { + color: #9f9f95; + font-size: 1.1em; + display: block; + content: "* * *"; + text-align: center; + letter-spacing: 0.6em; +} +.yue blockquote { + padding-left: 20px; + border-left: 4px solid #dadada; + margin: 0 0 1.64em -24px; + color: #666664; +} +.yue ul, +.yue ol { + margin: 0 0 24px 6px; + padding-left: 16px; +} +.yue ul { + list-style-type: square; +} +.yue ol { + list-style-type: decimal; +} +.yue li { + margin-bottom: 0.2em; +} +.yue li ul, +.yue li ol { + margin-top: 0; + margin-bottom: 0; + margin-left: 14px; +} +.yue li ul { + list-style-type: disc; +} +.yue li ul ul { + list-style-type: circle; +} +.yue li p { + margin: 0.4em 0 0.6em; +} +.yue .unstyled { + list-style-type: none; + margin: 0; + padding: 0; +} +.yue code, +.yue tt { + color: #808080; + font-size: 0.96em; + background-color: #f9f9f7; + padding: 1px 2px; + border: 1px solid #dadada; + border-radius: 3px; + font-family: "Inconsolata", "Menlo", monospace; +} +.yue pre { + padding: 7px; + border: 1px solid #dadada; + border-radius: 4px; + overflow: auto; + line-height: 1.5; + font-size: 0.96em; + font-family: "Inconsolata", "Menlo", monospace; + color: #4c4c4c; + background-color: #f9f9f7; +} +.yue pre code, +.yue pre tt { + color: #4c4c4c; + border: none; + background-color: none; + padding: auto; +} +.yue table { + border-collapse: collapse; + border-spacing: 0; + margin-bottom: 1.5em; + font-size: 0.96em; +} +.yue th, +.yue td { + text-align: left; + padding: 4px 8px 4px 10px; + border: 1px solid #dadada; +} +.yue td { + vertical-align: top; +} +.yue tr:nth-child(even) { + background-color: #efefee; +} +/* syntax browed from github */ + +pre .comment, +pre .template_comment, +pre .diff .header, +pre .javadoc { + color: #998; + font-style: italic +} + +pre .keyword, +pre .css .rule .keyword, +pre .winutils, +pre .javascript .title, +pre .nginx .title, +pre .subst, +pre .request, +pre .status { + color: #333; + font-weight: bold +} + +pre .number, +pre .hexcolor, +pre .ruby .constant { + color: #099; +} + +pre .string, +pre .tag .value, +pre .phpdoc, +pre .tex .formula { + color: #d14 +} + +pre .title, +pre .id { + color: #900; + font-weight: bold +} + +pre .javascript .title, +pre .lisp .title, +pre .clojure .title, +pre .subst { + font-weight: normal +} + +pre .class .title, +pre .haskell .type, +pre .vhdl .literal, +pre .tex .command { + color: #458; + font-weight: bold +} + +pre .tag, +pre .tag .title, +pre .rules .property, +pre .django .tag .keyword { + color: #000080; + font-weight: normal +} + +pre .attribute, +pre .variable, +pre .lisp .body { + color: #008080 +} + +pre .regexp { + color: #009926 +} + +pre .class { + color: #458; + font-weight: bold +} + +pre .symbol, +pre .ruby .symbol .string, +pre .lisp .keyword, +pre .tex .special, +pre .prompt { + color: #990073 +} + +pre .built_in, +pre .lisp .title, +pre .clojure .built_in { + color: #0086b3 +} + +pre .preprocessor, +pre .pi, +pre .doctype, +pre .shebang, +pre .cdata { + color: #999; + font-weight: bold +} + +pre .deletion { + background: #fdd +} + +pre .addition { + background: #dfd +} + +pre .diff .change { + background: #0086b3 +} + +pre .chunk { + color: #aaa +} +html, body { + padding: 0; + margin: 0; +} + +.sep { + margin: 0 18px; +} +/* layout */ +.header { + font-size: 16px; + font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif; + padding: 20px 10px; +} +.header a { + color: #323233; +} +.header a:hover { + opacity: 0.6; +} +.header .menu { + text-align: right; +} +.header .brand { + float: left; + margin-right: 30px; + text-transform: uppercase; +} +.brand:before { + content: '»'; +} +.brand a { + text-decoration: none; +} +.menu a { + margin-left: 14px; +} +.container { + max-width: 640px; + *width: 650px; + margin: 0 auto; + zoom: 1; +} +.container:after { + content: " "; + display: block; + visibility: none; + clear: both; +} +.document { + max-width: 640px; + *width: 650px; + margin: 0 auto; + padding: 30px 10px; +} +.footer { + margin: 0 auto; + max-width: 500px; + *width: 500px; + color: #555; + color: rgba(0, 0, 0, 0.5); + font-size: 15px; + line-height: 1.3; + padding: 20px 20px 30px; +} +.copyright { + text-align: center; + color: #ddd; +} +.copyright a { + color: #ddd; +} +@media (max-width: 650px) { + .footer { + padding-bottom: 10px; + } +} + +/* entry */ +.entry-meta { + border-top: 1px solid #eee; + padding-top: 10px; + color: #565655; + font-size: smaller; +} +.entry-description { + color: #676867; + font-size: larger; +} +.entry-tags a:before { + content: '#'; + color: #ccc; +} +.entry-list .item { + margin-bottom: 1em; +} +.entry-list .item-title { + font-size: 16px; + margin-bottom: 0; +} +.entry-list .item-description { + color: #565655; + font-size: 16px; + padding-left: 84px; +} +.entry-list .item-description p { + margin: 0; +} +.entry-list .item time { + display: inline-block; + width: 80px; + font: normal 12px monospace; + color: #999; +} + +.document a.title-permalink { + margin-left: 4px; + padding: 0 4px; + text-decoration: none; + color: #f0f0f2; +} +.document a.title-permalink:hover { + color: #5784bf; + background-color: #eee; +} + +/* pagination */ +.pagination { + position: relative; + margin-top: 40px; + font-size: 12px; + text-transform: uppercase; + font-weight: 700; + font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif; +} +.pagination .newer { + position: absolute; + text-decoration: none; + left: 0; +} +.pagination .older { + position: absolute; + text-decoration: none; + right: 0; +} +.pagination .newer:before { + content: "«"; +} +.pagination .older:after { + content: "»" +} + +/* extra widget */ +.github { + position: fixed; + top: 40px; + right: -50px; + border: 2px solid #121622; + box-shadow: 0 0 8px #555; + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -o-transform: rotate(45deg); + -ms-transform: rotate(45deg); + transform: rotate(45deg); +} +.github:hover { + box-shadow: 0 0 12px #444; +} +.github .github-link { + display: block; + font-family: "Lato", sans-serif; + font-size: 14px; + padding: 2px 0; + width: 200px; + border: 1px dotted #383C46; + background-color: #121622; + color: #ECEDEE; + text-decoration: none; + text-align: center; +} +@media (max-width: 890px) { + .github { + display: none; + } +} + +.document a.button { + display: inline-block; + padding: 1em; + margin: 0; + background-color: #222223; + color: #fcfcfd; + text-transform: uppercase; + border: none; + text-decoration: none; + outline: none; + border-radius: 3px; + text-align: center; + letter-spacing: 0.1em; + font: bold 0.7em/1 "Arial", sans-serif; + cursor: pointer; + vertical-align: middle; +} +.document a.button:hover { + opacity: 0.9; + color: white; +} + +.tagcloud { + margin-bottom: 2em; +} +.tagcloud .count { + font-size: 12px; +} +.tagcloud a { + display: inline-block; + margin: 0.2em 0.4em; + opacity: 0.6; +} +.tagcloud a:hover { + opacity: 1; +} diff --git a/static/one.js b/static/one.js new file mode 100644 index 0000000..1bfa540 --- /dev/null +++ b/static/one.js @@ -0,0 +1,17 @@ +function permalink() { + if (!document.querySelectorAll) { + return; + } + var hs = document.querySelectorAll('.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5'); + for (var i=0; i < hs.length; i++) { + (function(item) { + var link = document.createElement('a'); + link.className = 'title-permalink'; + link.title = 'Permalink to this title'; + link.href = '#' + item.id; + link.innerHTML = '¶'; + item.appendChild(link); + })(hs[i]); + } +} +permalink(); diff --git a/static/site.css b/static/site.css new file mode 100644 index 0000000..90d1ed2 --- /dev/null +++ b/static/site.css @@ -0,0 +1,222 @@ +html, body { + padding: 0; + margin: 0; +} + +.sep { + margin: 0 18px; +} +/* layout */ +.header { + font-size: 16px; + font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif; + padding: 20px 10px; +} +.header a { + color: #323233; +} +.header a:hover { + opacity: 0.6; +} +.header .menu { + text-align: right; +} +.header .brand { + float: left; + margin-right: 30px; + text-transform: uppercase; +} +.brand:before { + content: '»'; +} +.brand a { + text-decoration: none; +} +.menu a { + margin-left: 14px; +} +.container { + max-width: 640px; + *width: 650px; + margin: 0 auto; + zoom: 1; +} +.container:after { + content: " "; + display: block; + visibility: none; + clear: both; +} +.document { + max-width: 640px; + *width: 650px; + margin: 0 auto; + padding: 30px 10px; +} +.footer { + margin: 0 auto; + max-width: 500px; + *width: 500px; + color: #555; + color: rgba(0, 0, 0, 0.5); + font-size: 15px; + line-height: 1.3; + padding: 20px 20px 30px; +} +.copyright { + text-align: center; + color: #ddd; +} +.copyright a { + color: #ddd; +} +@media (max-width: 650px) { + .footer { + padding-bottom: 10px; + } +} + +/* entry */ +.entry-meta { + border-top: 1px solid #eee; + padding-top: 10px; + color: #565655; + font-size: smaller; +} +.entry-description { + color: #676867; + font-size: larger; +} +.entry-tags a:before { + content: '#'; + color: #ccc; +} +.entry-list .item { + margin-bottom: 1em; +} +.entry-list .item-title { + font-size: 16px; + margin-bottom: 0; +} +.entry-list .item-description { + color: #565655; + font-size: 16px; + padding-left: 84px; +} +.entry-list .item-description p { + margin: 0; +} +.entry-list .item time { + display: inline-block; + width: 80px; + font: normal 12px monospace; + color: #999; +} + +.document a.title-permalink { + margin-left: 4px; + padding: 0 4px; + text-decoration: none; + color: #f0f0f2; +} +.document a.title-permalink:hover { + color: #5784bf; + background-color: #eee; +} + +/* pagination */ +.pagination { + position: relative; + margin-top: 40px; + font-size: 12px; + text-transform: uppercase; + font-weight: 700; + font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif; +} +.pagination .newer { + position: absolute; + text-decoration: none; + left: 0; +} +.pagination .older { + position: absolute; + text-decoration: none; + right: 0; +} +.pagination .newer:before { + content: "«"; +} +.pagination .older:after { + content: "»" +} + +/* extra widget */ +.github { + position: fixed; + top: 40px; + right: -50px; + border: 2px solid #121622; + box-shadow: 0 0 8px #555; + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -o-transform: rotate(45deg); + -ms-transform: rotate(45deg); + transform: rotate(45deg); +} +.github:hover { + box-shadow: 0 0 12px #444; +} +.github .github-link { + display: block; + font-family: "Lato", sans-serif; + font-size: 14px; + padding: 2px 0; + width: 200px; + border: 1px dotted #383C46; + background-color: #121622; + color: #ECEDEE; + text-decoration: none; + text-align: center; +} +@media (max-width: 890px) { + .github { + display: none; + } +} + +.document a.button { + display: inline-block; + padding: 1em; + margin: 0; + background-color: #222223; + color: #fcfcfd; + text-transform: uppercase; + border: none; + text-decoration: none; + outline: none; + border-radius: 3px; + text-align: center; + letter-spacing: 0.1em; + font: bold 0.7em/1 "Arial", sans-serif; + cursor: pointer; + vertical-align: middle; +} +.document a.button:hover { + opacity: 0.9; + color: white; +} + +.tagcloud { + margin-bottom: 2em; +} +.tagcloud .count { + font-size: 12px; +} +.tagcloud a { + display: inline-block; + margin: 0.2em 0.4em; + opacity: 0.6; +} +.tagcloud a:hover { + opacity: 1; +} diff --git a/static/syntax.css b/static/syntax.css new file mode 100644 index 0000000..5f6d5a3 --- /dev/null +++ b/static/syntax.css @@ -0,0 +1,117 @@ +/* syntax browed from github */ + +pre .comment, +pre .template_comment, +pre .diff .header, +pre .javadoc { + color: #998; + font-style: italic +} + +pre .keyword, +pre .css .rule .keyword, +pre .winutils, +pre .javascript .title, +pre .nginx .title, +pre .subst, +pre .request, +pre .status { + color: #333; + font-weight: bold +} + +pre .number, +pre .hexcolor, +pre .ruby .constant { + color: #099; +} + +pre .string, +pre .tag .value, +pre .phpdoc, +pre .tex .formula { + color: #d14 +} + +pre .title, +pre .id { + color: #900; + font-weight: bold +} + +pre .javascript .title, +pre .lisp .title, +pre .clojure .title, +pre .subst { + font-weight: normal +} + +pre .class .title, +pre .haskell .type, +pre .vhdl .literal, +pre .tex .command { + color: #458; + font-weight: bold +} + +pre .tag, +pre .tag .title, +pre .rules .property, +pre .django .tag .keyword { + color: #000080; + font-weight: normal +} + +pre .attribute, +pre .variable, +pre .lisp .body { + color: #008080 +} + +pre .regexp { + color: #009926 +} + +pre .class { + color: #458; + font-weight: bold +} + +pre .symbol, +pre .ruby .symbol .string, +pre .lisp .keyword, +pre .tex .special, +pre .prompt { + color: #990073 +} + +pre .built_in, +pre .lisp .title, +pre .clojure .built_in { + color: #0086b3 +} + +pre .preprocessor, +pre .pi, +pre .doctype, +pre .shebang, +pre .cdata { + color: #999; + font-weight: bold +} + +pre .deletion { + background: #fdd +} + +pre .addition { + background: #dfd +} + +pre .diff .change { + background: #0086b3 +} + +pre .chunk { + color: #aaa +} diff --git a/static/yue.css b/static/yue.css new file mode 100644 index 0000000..c37a870 --- /dev/null +++ b/static/yue.css @@ -0,0 +1,171 @@ +/** + * yue.css + * + * yue.css is designed for readable content. + * + * Copyright (c) 2013 by Hsiaoming Yang. + */ + +.yue { + font: 400 18px/1.62 "Georgia", "Xin Gothic", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", "SimSun", sans-serif; + color: #333332; +} +.yue ::selection { + background-color: rgba(0,0,0,0.2); +} +.yue h1, +.yue h2, +.yue h3, +.yue h4, +.yue h5, +.yue h6 { + color: #222223; +} +.yue h1 { + font-size: 1.8em; + margin: 0.67em 0; +} +.yue > h1 { + margin-top: 0; + font-size: 2em; +} +.yue h2 { + font-size: 1.5em; + margin: 0.83em 0; +} +.yue h3 { + font-size: 1.17em; + margin: 1em 0; +} +.yue h4, +.yue h5, +.yue h6 { + font-size: 1em; + margin: 1.6em 0 1em 0; +} +.yue h6 { + font-weight: 500; +} +.yue p { + margin-top: 0; + margin-bottom: 1.64em; +} +.yue a { + color: #111; + word-wrap: break-word; +} +.yue a:hover { + color: #555; +} +.yue strong, +.yue b { + font-weight: 700; + color: #222; +} +.yue em, +.yue i { + font-style: italic; + color: #222; +} +.yue img { + max-width: 98%; + margin: 0.2em 0; +} +.yue hr { + border: 0 none; + margin-bottom: 1em; +} +.yue hr:after { + color: #9f9f95; + font-size: 1.1em; + display: block; + content: "* * *"; + text-align: center; + letter-spacing: 0.6em; +} +.yue blockquote { + padding-left: 20px; + border-left: 4px solid #dadada; + margin: 0 0 1.64em -24px; + color: #666664; +} +.yue ul, +.yue ol { + margin: 0 0 24px 6px; + padding-left: 16px; +} +.yue ul { + list-style-type: square; +} +.yue ol { + list-style-type: decimal; +} +.yue li { + margin-bottom: 0.2em; +} +.yue li ul, +.yue li ol { + margin-top: 0; + margin-bottom: 0; + margin-left: 14px; +} +.yue li ul { + list-style-type: disc; +} +.yue li ul ul { + list-style-type: circle; +} +.yue li p { + margin: 0.4em 0 0.6em; +} +.yue .unstyled { + list-style-type: none; + margin: 0; + padding: 0; +} +.yue code, +.yue tt { + color: #808080; + font-size: 0.96em; + background-color: #f9f9f7; + padding: 1px 2px; + border: 1px solid #dadada; + border-radius: 3px; + font-family: "Inconsolata", "Menlo", monospace; +} +.yue pre { + padding: 7px; + border: 1px solid #dadada; + border-radius: 4px; + overflow: auto; + line-height: 1.5; + font-size: 0.96em; + font-family: "Inconsolata", "Menlo", monospace; + color: #4c4c4c; + background-color: #f9f9f7; +} +.yue pre code, +.yue pre tt { + color: #4c4c4c; + border: none; + background-color: none; + padding: auto; +} +.yue table { + border-collapse: collapse; + border-spacing: 0; + margin-bottom: 1.5em; + font-size: 0.96em; +} +.yue th, +.yue td { + text-align: left; + padding: 4px 8px 4px 10px; + border: 1px solid #dadada; +} +.yue td { + vertical-align: top; +} +.yue tr:nth-child(even) { + background-color: #efefee; +} diff --git a/usage.html b/usage.html new file mode 100644 index 0000000..bb06fff --- /dev/null +++ b/usage.html @@ -0,0 +1,74 @@ + + + + + + + + 安装 & 使用 + + + + +
+ +
+
+
+

安装 & 使用

+

Vundle 方式

.vimrc 中加入:

+
Plugin "vimcn/{repository-name}"

重启 Vim 执行 :PluginInstall

+

NeoBundle 方式

.vimrc 中:

+
NeoBundle 'vimcn/{repository-name}'

重启 Vim 执行命令 :NeoBundleInstall

+

Pathogen 方式

终端(命令行)执行:

+
$ cd ~/.vim/bundle
+$ git clone git://github.com/vimcn/{repository-name}.git

重启 Vim 即可。

+

手工方式

    +
  • 下载(或 git clone) Vim script 中文文档 (*.cnx)
  • +
  • 放至 Vim 用户目录下的 doc 目录中

    +
      +
    • for Windows: $VIM/vimfiles/doc
    • +
    • for Unix-like(Linux, Mac OSX): ~/.vim/doc
      +

      以下统称 $VIM/vimfiles~/.vim 目录为 runtime 目录。

      +
      +
    • +
    +
  • +
  • 在 Vim 环境中运行 helptags 命令生成 tags:

    +

    for Windows:

    +
    :helptags $Vim/vimfiles/doc

    for Unix-like:

    +
    :helptags ~/.vim/doc
  • +
  • 设置 Vim 使用的文档语言,默认是英文。

    +
    :set helplang=cn

    如果在 vimrc 设置无效,可以查看并修改 runtime/plugin/vimcdoc.vim +中的设置,之前安装有 Vim 中文帮助则可以忽略这步。

    +
  • +
+
+
+
+ +
Fork me on GitHub
+ + + \ No newline at end of file