finish translation.

This commit is contained in:
JiangWang 2017-05-19 10:10:19 +08:00
parent db0bf28ede
commit b4d66c7e07
4 changed files with 47 additions and 53 deletions

View File

@ -1,19 +1,15 @@
## Debugging syntax files
## 语法文件调试
Syntax files are often the cause for slowdowns due to wrong and/or complex
regular expressions. If the `+profile` [feature](#what-kind-of-vim-am-i-running)
is compiled in, Vim provides the super useful `:syntime` command.
语法文件由于包含错误的或者复制的正则表达式常常会使得Vim的运行较慢。如果Vim在编译的时候包含了`+profile` [feature](#what-kind-of-vim-am-i-running)特性,就可以给用户提供一个超级好用的`:syntime`命令。
```vim
:syntime on
" hit <c-l> a few times to redraw the window which causes the syntax rules to get applied again
" 多次敲击<c-l>来重绘窗口,这样的话就会使得相应的语法规则被重新应用一次
:syntime off
:syntime report
```
输出结果包含了很多的度量维度。比如,你可以通过结果知道哪些正则表达式耗时太久需要被优化;哪些正则表达式一直在别使用但重来没有一次成功匹配。
The output contains important metrics. E.g. you can see which regexp takes too
long and should be optimized or which regexps are used all the time but never
even match.
请查阅`:h :syntime`
See `:h :syntime`.

View File

@ -1,4 +1,4 @@
## 调试Vim脚本
## Vim脚本调试
如果你以前使用过命令行调试器的话,对于`:debug`命令你很快就会感到熟悉。

View File

@ -1,30 +1,29 @@
## 插件列表
#### [以功能区分](#by-topic-1)
#### [以功能区分](#以功能区分-1)
- [文本对齐](#文本对齐)
- [Building and linting](#building-and-linting)
- [Code completion](#code-completion)
- [构建和可疑代码标记](#构建和可疑代码标记)
- [代码补全](#代码补全)
- [Cycle](#cycle)
- [Commenters](#commenters)
- [Delimiter](#delimiter)
- [Fuzzy finders](#fuzzy-finders)
- [Grep tools](#grep-tools)
- [Indent](#indent)
- [Navigation](#navigation)
- [Snippets](#snippets)
- [Statusline](#statusline)
- [Surround](#surround)
- [Taking notes](#taking-notes)
- [Text objects](#text-objects)
- [注释工具](#注释工具)
- [分割符](#分割符)
- [模糊搜索](#模糊搜索)
- [Grep 工具](#grep-工具)
- [缩进](#缩进)
- [文件导航](#文件导航)
- [代码片段](#代码片段)
- [状态栏](#状态栏)
- [文字环绕符](#文字环绕符)
- [记笔记](#记笔记)
- [文本对象](#文本对象)
- [Tmux](#tmux)
- [Undo history](#undo-history)
- [Version control](#version-control)
- [Writing](#writing)
- [Misc](#misc)
#### [以文件类型区分](#by-filetype-1)
- [撤销历史](#撤销历史)
- [版本控制](#版本控制)
- [写作工具](#写作工具)
- [其他](#其他)
#### [以文件类型区分](#以文件类型区分-1)
- [C and C++](#c-and-c)
- [Clojure](#clojure)
@ -44,13 +43,13 @@
- [tabular](https://github.com/godlygeek/tabular)
- [vim-easy-align](https://github.com/junegunn/vim-easy-align)
#### Building and linting
#### 构建和可疑代码标记
- [ale](https://github.com/w0rp/ale)
- [neomake](https://github.com/neomake/neomake)
- [syntastic](https://github.com/vim-syntastic/syntastic)
#### Code completion
#### 代码补全
- [VimCompletesMe](https://github.com/ajh17/VimCompletesMe)
- [YouCompleteMe](https://github.com/Valloric/YouCompleteMe)
@ -65,19 +64,19 @@
- [switch.vim](https://github.com/AndrewRadev/switch.vim)
- [vim-speeddating](https://github.com/tpope/vim-speeddating)
#### Commenters
#### 注释工具
- [nerdcommenter](https://github.com/scrooloose/nerdcommenter)
- [tcomment_vim](https://github.com/tomtom/tcomment_vim)
- [vim-commentary](https://github.com/tpope/vim-commentary)
#### Delimiter
#### 分割符
- [auto-pairs](https://github.com/jiangmiao/auto-pairs)
- [delimitMate](https://github.com/Raimondi/delimitMate)
- [vim-endwise](https://github.com/tpope/vim-endwise)
#### Fuzzy finders
#### 模糊搜索
- [Command-T](https://github.com/wincent/Command-T) (_requires +ruby_)
- [ctrlp.vim](https://github.com/ctrlpvim/ctrlp.vim)
@ -85,18 +84,18 @@
- [fzf](https://github.com/junegunn/fzf)
- [unite.vim](https://github.com/Shougo/unite.vim)
#### Grep tools
#### Grep 工具
- [ctrlsf.vim](https://github.com/dyng/ctrlsf.vim)
- [ferret](https://github.com/wincent/ferret)
- [vim-grepper](https://github.com/mhinz/vim-grepper)
#### Indent
#### 缩进
- [indentLine](https://github.com/Yggdroot/indentLine)
- [vim-indent-guides](https://github.com/nathanaelkane/vim-indent-guides)
#### Navigation
#### 文件导航
- [nerdtree](https://github.com/scrooloose/nerdtree)
- [tagbar](https://github.com/majutsushi/tagbar)
@ -106,29 +105,29 @@
- [vim-vinegar](https://github.com/tpope/vim-vinegar)
- [vimfiler.vim](https://github.com/Shougo/vimfiler.vim) (_depends on other plugins_)
Also see [fuzzy finders](#fuzzy-finders).
[fuzzy finders](#fuzzy-finders).
#### Snippets
#### 代码片段
- [neosnippet.vim](https://github.com/Shougo/neosnippet.vim) (_depends on other plugins_)
- [ultisnips](https://github.com/SirVer/ultisnips)
- [vim-snipmate](https://github.com/garbas/vim-snipmate) (_depends on other plugins_)
- [xptemplate](https://github.com/drmingdrmer/xptemplate)
#### Statusline
#### 状态栏
- [lightline.vim](https://github.com/itchyny/lightline.vim)
- [powerline](https://github.com/powerline/powerline)
- [vim-airline](https://github.com/vim-airline/vim-airline)
- [vim-flagship](https://github.com/tpope/vim-flagship)
#### Surround
#### 文字环绕符
- [vim-operator-surround](https://github.com/rhysd/vim-operator-surround)
- [vim-sandwich](https://github.com/machakann/vim-sandwich)
- [vim-surround](https://github.com/tpope/vim-surround)
#### Taking notes
#### 记笔记
- [vim-dotoo](https://github.com/dhruvasagar/vim-dotoo)
- [vim-journal](https://github.com/junegunn/vim-journal)
@ -137,7 +136,7 @@ Also see [fuzzy finders](#fuzzy-finders).
- [vim-pad](https://github.com/fmoralesc/vim-pad)
- [vimwiki](https://github.com/vimwiki/vimwiki)
#### Text objects
#### 文本对象
- [targets.vim](https://github.com/wellle/targets.vim)
- [vim-exchange](https://github.com/tommcdo/vim-exchange)
@ -150,12 +149,12 @@ Also see [fuzzy finders](#fuzzy-finders).
- [vim-tmux-navigator](https://github.com/christoomey/vim-tmux-navigator)
- [vitality.vim](https://github.com/sjl/vitality.vim)
#### Undo history
#### 撤销历史
- [gundo.vim](https://github.com/sjl/gundo.vim)
- [undotree](https://github.com/mbbill/undotree)
#### Version control
#### 版本控制
- [agit.vim](https://github.com/cohama/agit.vim)
- [committia.vim](https://github.com/rhysd/committia.vim)
@ -171,12 +170,12 @@ Also see [fuzzy finders](#fuzzy-finders).
- [vim-signify](https://github.com/mhinz/vim-signify)
- [vimagit](https://github.com/jreybert/vimagit)
#### Writing
#### 写作工具
- [vim-grammarous](https://github.com/rhysd/vim-grammarous)
- [vim-online-thesaurus](https://github.com/beloglazov/vim-online-thesaurus)
#### Misc
#### 其他
- [CoVim](https://github.com/FredKSchott/CoVim)
- [FastFold](https://github.com/Konfekt/FastFold)
@ -200,7 +199,7 @@ Also see [fuzzy finders](#fuzzy-finders).
- [vim-startify](https://github.com/mhinz/vim-startify)
- [vim-unimpaired](https://github.com/tpope/vim-unimpaired)
## By filetype
## 以文件类型区分
#### C and C++

View File

@ -1,7 +1,6 @@
## Newline used for NUL
## 新行用于NUL
NUL characters (`\0`) in a file, are stored as newline (`\n`) in memory and
displayed in a buffer as `^@`.
一个文件中的NUL字符(`\0`),是以换行符(`\n`)在内存中被存储的同时在显示的时候以`^@`呈现。
See `man 7 ascii` and `:h NL-used-for-Nul` for more information.
查阅`man 7 ascii``:h NL-used-for-Nul`获取更多相关信息。