From a7393fcb76fa14160df1ec7bff18f9261b694dac Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 23 Mar 2017 12:47:52 +0800 Subject: [PATCH 1/7] Create CONTRIBUTING.md --- CONTRIBUTING.md | 108 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..a4370c3 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,108 @@ +## [Intro](#intro-1) + +- [What is Vim?](#what-is-vim) +- [The Vim Philosophy](#the-vim-philosophy) +- [First steps](#first-steps) +- [Minimal vimrc](#minimal-vimrc) +- [What kind of Vim am I running?](#what-kind-of-vim-am-i-running) +- [Cheatsheets](#cheatsheets) + +## [Basics](#basics-1) + +- [Buffers, windows, tabs](#buffers-windows-tabs) +- [Active, loaded, listed, named buffers](#active-loaded-listed-named-buffers) +- [Argument list](#argument-list) +- [Mappings](#mappings) +- [Mapleader](#mapleader) +- [Registers](#registers) +- [Ranges](#ranges) +- [Marks](#marks) +- [Completion](#completion) +- [Motions, operators, text objects](#motions-operators-text-objects) +- [Autocmds](#autocmds) +- [Changelist, jumplist](#changelist-jumplist) +- [Undo tree](#undo-tree) +- [Quickfix and location lists](#quickfix-and-location-lists) +- [Macros](#macros) +- [Colorschemes](#colorschemes) +- [Folding](#folding) +- [Sessions](#sessions) +- [Locality](#locality) + +## [Usage](#usage-1) + +- [Getting help offline](#getting-help-offline) +- [Getting help offline (alternative)](#getting-help-offline-alternative) +- [Getting help online](#getting-help-online) +- [Autocmds in practice](#autocmds-in-practice) + - [User events](#user-events) + - [Nested autocmds](#nested-autocmds) +- [Clipboard](#clipboard) + - [Clipboard usage (Windows, OSX)](#clipboard-usage-windows-osx) + - [Clipboard usage (Linux, BSD, ...)](#clipboard-usage-linux-bsd-) +- [Restore cursor position when opening file](#restore-cursor-position-when-opening-file) +- [Handling backup, swap, undo, and viminfo files](#handling-backup-swap-undo-and-viminfo-files) +- [Editing remote files](#editing-remote-files) +- [Managing plugins](#managing-plugins) +- [Block insert](#block-insert) +- [Running external programs and using filters](#running-external-programs-and-using-filters) +- [Cscope](#cscope) +- [MatchIt](#matchit) + +## [Tips](#tips-1) + +- [Saner behavior of n and N](#saner-behavior-of-n-and-n) +- [Saner command-line history](#saner-command-line-history) +- [Saner CTRL-L](#saner-ctrl-l) +- [Disable audible and visual bells](#disable-audible-and-visual-bells) +- [Quickly move current line](#quickly-move-current-line) +- [Quickly add empty lines](#quickly-add-empty-lines) +- [Quickly edit your macros](#quickly-edit-your-macros) +- [Quickly jump to header or source file](#quickly-jump-to-header-or-source-file) +- [Quickly change font size in GUI](#quickly-change-font-size-in-gui) +- [Change cursor style dependent on mode](#change-cursor-style-dependent-on-mode) +- [Don't lose selection when shifting sidewards](#dont-lose-selection-when-shifting-sidewards) +- [Reload a file on saving](#reload-a-file-on-saving) +- [Smarter cursorline](#smarter-cursorline) +- [Faster keyword completion](#faster-keyword-completion) +- [Cosmetic changes to colorschemes](#cosmetic-changes-to-colorschemes) + +## [Commands](#commands-1) + +- [:global and :vglobal](#global-and-vglobal) - Execute a command on all matching lines. +- [:normal and :execute](#normal-and-execute) - The scripting dream team. +- [:redir](#redir) - Redirect messages. + +## [Debugging](#debugging-1) + +- [General tips](#general-tips) +- [Verbosity](#verbosity) +- [Profiling startup time](#profiling-startup-time) +- [Profiling at runtime](#profiling-at-runtime) +- [Debugging Vim scripts](#debugging-vim-scripts) +- [Debugging syntax files](#debugging-syntax-files) + +## [Miscellaneous](#miscellaneous-1) + +- [Additional resources](#additional-resources) +- [Vim distributions](#vim-distributions) +- [Standard plugins](#standard-plugins) +- [Map CapsLock to Control](#map-capslock-to-control) +- [Easter eggs](#easter-eggs) +- [Why hjkl for navigation?](#why-hjkl-for-navigation) + +## [Common problems](#common-problems-1) + +- [Editing small files is slow](#editing-small-files-is-slow) +- [Editing huge files is slow](#editing-huge-files-is-slow) +- [Bracketed paste (or why do I have to set 'paste' all the time?)](#bracketed-paste-or-why-do-i-have-to-set-paste-all-the-time) +- [Delays when using escape key in terminal](#delays-when-using-escape-key-in-terminal) +- [Function search undo](#function-search-undo) + +## [Technical quirks](#technical-quirks-1) + +- [Newline used for NUL](#newline-used-for-nul) + +## [List of colorschemes](#list-of-colorschemes-1) + +## [List of plugins](contents/plugins.md) From a4be838463c759046b55d773f2b2b44694bbd3e6 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 23 Mar 2017 13:00:37 +0800 Subject: [PATCH 2/7] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81c1f92..3c0f0c7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# vim-galore-zh_cn -A chinese version of vim-galore +# vim-galore 中文翻译 +> Vim from zero to hero + +### 致谢: +- Linux 中国翻译组 +- [掘金翻译计划](https://github.com/xitu/gold-miner) From e1d2e7d5d605c40262630f0ca2c5637014bfb038 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 23 Mar 2017 13:03:49 +0800 Subject: [PATCH 3/7] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3c0f0c7..3cf4c04 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # vim-galore 中文翻译 > Vim from zero to hero +### 加入我们 +可以协助我们核对翻译,或者从[章节列表](https://github.com/wsdjeg/vim-galore-zh_cn/blob/master/CONTRIBUTING.md)中认领章节进行翻译。 ### 致谢: + - Linux 中国翻译组 - [掘金翻译计划](https://github.com/xitu/gold-miner) From bb3d694346619f087b514326ec320c1186e84c9b Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 23 Mar 2017 15:06:00 +0800 Subject: [PATCH 4/7] Fix link in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cf4c04..febd43d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > Vim from zero to hero ### 加入我们 -可以协助我们核对翻译,或者从[章节列表](https://github.com/wsdjeg/vim-galore-zh_cn/blob/master/CONTRIBUTING.md)中认领章节进行翻译。 +可以协助我们核对翻译,或者从[章节列表](CONTRIBUTING.md)中认领章节进行翻译。 ### 致谢: - Linux 中国翻译组 From c3356b84616767de81dd687a3ac3f2f4949de39a Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 23 Mar 2017 15:12:14 +0800 Subject: [PATCH 5/7] Add link for LCTT --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index febd43d..737bb01 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,5 @@ 可以协助我们核对翻译,或者从[章节列表](CONTRIBUTING.md)中认领章节进行翻译。 ### 致谢: -- Linux 中国翻译组 +- [Linux 中国翻译组](https://github.com/LCTT) - [掘金翻译计划](https://github.com/xitu/gold-miner) From bd55cbcefa59fb72c4d68034badbcf640f582aa1 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 23 Mar 2017 15:32:11 +0800 Subject: [PATCH 6/7] Update CONTRIBUTING.md --- CONTRIBUTING.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a4370c3..4f419a1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,19 @@ -## [Intro](#intro-1) +有兴趣加入本项目的话,请关注下面的认领列表,选择相应的章节翻译,或者协助校验正在翻译的项目。如果有兴趣加入,可以fork本项目,开始翻译后提交PR,便于我们协助校验,不必翻译结束后才提交PR. +## 认领方式 + +**开issue** + +```md +章节名称:***** +译者:****** +PR: PR的链接 +``` + + +|章节名称|认领状态|中文链接| +|:------|:------|:------| +| [Intro](https://github.com/mhinz/vim-galore#intro) | | | - [What is Vim?](#what-is-vim) - [The Vim Philosophy](#the-vim-philosophy) - [First steps](#first-steps) From b892cc223243e939fc0b3402d8c2b1efa40681a1 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 23 Mar 2017 19:18:56 +0800 Subject: [PATCH 7/7] Update link for orgin repo --- CONTRIBUTING.md | 195 ++++++++++++++++++++++-------------------------- 1 file changed, 88 insertions(+), 107 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4f419a1..4fa2cd9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,113 +10,94 @@ PR: PR的链接 ``` - |章节名称|认领状态|中文链接| |:------|:------|:------| | [Intro](https://github.com/mhinz/vim-galore#intro) | | | -- [What is Vim?](#what-is-vim) -- [The Vim Philosophy](#the-vim-philosophy) -- [First steps](#first-steps) -- [Minimal vimrc](#minimal-vimrc) -- [What kind of Vim am I running?](#what-kind-of-vim-am-i-running) -- [Cheatsheets](#cheatsheets) - -## [Basics](#basics-1) - -- [Buffers, windows, tabs](#buffers-windows-tabs) -- [Active, loaded, listed, named buffers](#active-loaded-listed-named-buffers) -- [Argument list](#argument-list) -- [Mappings](#mappings) -- [Mapleader](#mapleader) -- [Registers](#registers) -- [Ranges](#ranges) -- [Marks](#marks) -- [Completion](#completion) -- [Motions, operators, text objects](#motions-operators-text-objects) -- [Autocmds](#autocmds) -- [Changelist, jumplist](#changelist-jumplist) -- [Undo tree](#undo-tree) -- [Quickfix and location lists](#quickfix-and-location-lists) -- [Macros](#macros) -- [Colorschemes](#colorschemes) -- [Folding](#folding) -- [Sessions](#sessions) -- [Locality](#locality) - -## [Usage](#usage-1) - -- [Getting help offline](#getting-help-offline) -- [Getting help offline (alternative)](#getting-help-offline-alternative) -- [Getting help online](#getting-help-online) -- [Autocmds in practice](#autocmds-in-practice) - - [User events](#user-events) - - [Nested autocmds](#nested-autocmds) -- [Clipboard](#clipboard) - - [Clipboard usage (Windows, OSX)](#clipboard-usage-windows-osx) - - [Clipboard usage (Linux, BSD, ...)](#clipboard-usage-linux-bsd-) -- [Restore cursor position when opening file](#restore-cursor-position-when-opening-file) -- [Handling backup, swap, undo, and viminfo files](#handling-backup-swap-undo-and-viminfo-files) -- [Editing remote files](#editing-remote-files) -- [Managing plugins](#managing-plugins) -- [Block insert](#block-insert) -- [Running external programs and using filters](#running-external-programs-and-using-filters) -- [Cscope](#cscope) -- [MatchIt](#matchit) - -## [Tips](#tips-1) - -- [Saner behavior of n and N](#saner-behavior-of-n-and-n) -- [Saner command-line history](#saner-command-line-history) -- [Saner CTRL-L](#saner-ctrl-l) -- [Disable audible and visual bells](#disable-audible-and-visual-bells) -- [Quickly move current line](#quickly-move-current-line) -- [Quickly add empty lines](#quickly-add-empty-lines) -- [Quickly edit your macros](#quickly-edit-your-macros) -- [Quickly jump to header or source file](#quickly-jump-to-header-or-source-file) -- [Quickly change font size in GUI](#quickly-change-font-size-in-gui) -- [Change cursor style dependent on mode](#change-cursor-style-dependent-on-mode) -- [Don't lose selection when shifting sidewards](#dont-lose-selection-when-shifting-sidewards) -- [Reload a file on saving](#reload-a-file-on-saving) -- [Smarter cursorline](#smarter-cursorline) -- [Faster keyword completion](#faster-keyword-completion) -- [Cosmetic changes to colorschemes](#cosmetic-changes-to-colorschemes) - -## [Commands](#commands-1) - -- [:global and :vglobal](#global-and-vglobal) - Execute a command on all matching lines. -- [:normal and :execute](#normal-and-execute) - The scripting dream team. -- [:redir](#redir) - Redirect messages. - -## [Debugging](#debugging-1) - -- [General tips](#general-tips) -- [Verbosity](#verbosity) -- [Profiling startup time](#profiling-startup-time) -- [Profiling at runtime](#profiling-at-runtime) -- [Debugging Vim scripts](#debugging-vim-scripts) -- [Debugging syntax files](#debugging-syntax-files) - -## [Miscellaneous](#miscellaneous-1) - -- [Additional resources](#additional-resources) -- [Vim distributions](#vim-distributions) -- [Standard plugins](#standard-plugins) -- [Map CapsLock to Control](#map-capslock-to-control) -- [Easter eggs](#easter-eggs) -- [Why hjkl for navigation?](#why-hjkl-for-navigation) - -## [Common problems](#common-problems-1) - -- [Editing small files is slow](#editing-small-files-is-slow) -- [Editing huge files is slow](#editing-huge-files-is-slow) -- [Bracketed paste (or why do I have to set 'paste' all the time?)](#bracketed-paste-or-why-do-i-have-to-set-paste-all-the-time) -- [Delays when using escape key in terminal](#delays-when-using-escape-key-in-terminal) -- [Function search undo](#function-search-undo) - -## [Technical quirks](#technical-quirks-1) - -- [Newline used for NUL](#newline-used-for-nul) - -## [List of colorschemes](#list-of-colorschemes-1) - -## [List of plugins](contents/plugins.md) +| [What is Vim?](https://github.com/mhinz/vim-galore#what-is-vim) | | | +| [The Vim Philosophy](https://github.com/mhinz/vim-galore#the-vim-philosophy) | | | +| [First steps](https://github.com/mhinz/vim-galore#first-steps) | | | +| [Minimal vimrc](https://github.com/mhinz/vim-galore#minimal-vimrc) | | | +| [What kind of Vim am I running?](https://github.com/mhinz/vim-galore#what-kind-of-vim-am-i-running) | | | +| [Cheatsheets](https://github.com/mhinz/vim-galore#cheatsheets) | | | +| [Basics](https://github.com/mhinz/vim-galore#basics-1) | | | +| [Buffers, windows, tabs](https://github.com/mhinz/vim-galore#buffers-windows-tabs) | | | +| [Active, loaded, listed, named buffers](https://github.com/mhinz/vim-galore#active-loaded-listed-named-buffers) | | | +| [Argument list](https://github.com/mhinz/vim-galore#argument-list) | | | +| [Mappings](https://github.com/mhinz/vim-galore#mappings) | | | +| [Mapleader](https://github.com/mhinz/vim-galore#mapleader) | | | +| [Registers](https://github.com/mhinz/vim-galore#registers) | | | +| [Ranges](https://github.com/mhinz/vim-galore#ranges) | | | +| [Marks](https://github.com/mhinz/vim-galore#marks) | | | +| [Completion](https://github.com/mhinz/vim-galore#completion) | | | +| [Motions, operators, text objects](https://github.com/mhinz/vim-galore#motions-operators-text-objects) | | | +| [Autocmds](https://github.com/mhinz/vim-galore#autocmds) | | | +| [Changelist, jumplist](https://github.com/mhinz/vim-galore#changelist-jumplist) | | | +| [Undo tree](https://github.com/mhinz/vim-galore#undo-tree) | | | +| [Quickfix and location lists](https://github.com/mhinz/vim-galore#quickfix-and-location-lists) | | | +| [Macros](https://github.com/mhinz/vim-galore#macros) | | | +| [Colorschemes](https://github.com/mhinz/vim-galore#colorschemes) | | | +| [Folding](https://github.com/mhinz/vim-galore#folding) | | | +| [Sessions](https://github.com/mhinz/vim-galore#sessions) | | | +| [Locality](https://github.com/mhinz/vim-galore#locality) | | | +| [Usage](https://github.com/mhinz/vim-galore#usage-1) | | | +| [Getting help offline](https://github.com/mhinz/vim-galore#getting-help-offline) | | | +| [Getting help offline (alternative)](https://github.com/mhinz/vim-galore#getting-help-offline-alternative) | | | +| [Getting help online](https://github.com/mhinz/vim-galore#getting-help-online) | | | +| [Autocmds in practice](https://github.com/mhinz/vim-galore#autocmds-in-practice) | | | +| [User events](https://github.com/mhinz/vim-galore#user-events) | | | +| [Nested autocmds](https://github.com/mhinz/vim-galore#nested-autocmds) | | | +| [Clipboard](https://github.com/mhinz/vim-galore#clipboard) | | | +| [Clipboard usage (Windows, OSX)](https://github.com/mhinz/vim-galore#clipboard-usage-windows-osx) | | | +| [Clipboard usage (Linux, BSD, ...)](https://github.com/mhinz/vim-galore#clipboard-usage-linux-bsd-) | | | +| [Restore cursor position when opening file](https://github.com/mhinz/vim-galore#restore-cursor-position-when-opening-file) | | | +| [Handling backup, swap, undo, and viminfo files](https://github.com/mhinz/vim-galore#handling-backup-swap-undo-and-viminfo-files) | | | +| [Editing remote files](https://github.com/mhinz/vim-galore#editing-remote-files) | | | +| [Managing plugins](https://github.com/mhinz/vim-galore#managing-plugins) | | | +| [Block insert](https://github.com/mhinz/vim-galore#block-insert) | | | +| [Running external programs and using filters](https://github.com/mhinz/vim-galore#running-external-programs-and-using-filters) | | | +| [Cscope](https://github.com/mhinz/vim-galore#cscope) | | | +| [MatchIt](https://github.com/mhinz/vim-galore#matchit) | | | +| [Tips](https://github.com/mhinz/vim-galore#tips-1) | | | +| [Saner behavior of n and N](https://github.com/mhinz/vim-galore#saner-behavior-of-n-and-n) | | | +| [Saner command-line history](https://github.com/mhinz/vim-galore#saner-command-line-history) | | | +| [Saner CTRL-L](https://github.com/mhinz/vim-galore#saner-ctrl-l) | | | +| [Disable audible and visual bells](https://github.com/mhinz/vim-galore#disable-audible-and-visual-bells) | | | +| [Quickly move current line](https://github.com/mhinz/vim-galore#quickly-move-current-line) | | | +| [Quickly add empty lines](https://github.com/mhinz/vim-galore#quickly-add-empty-lines) | | | +| [Quickly edit your macros](https://github.com/mhinz/vim-galore#quickly-edit-your-macros) | | | +| [Quickly jump to header or source file](https://github.com/mhinz/vim-galore#quickly-jump-to-header-or-source-file) | | | +| [Quickly change font size in GUI](https://github.com/mhinz/vim-galore#quickly-change-font-size-in-gui) | | | +| [Change cursor style dependent on mode](https://github.com/mhinz/vim-galore#change-cursor-style-dependent-on-mode) | | | +| [Don't lose selection when shifting sidewards](https://github.com/mhinz/vim-galore#dont-lose-selection-when-shifting-sidewards) | | | +| [Reload a file on saving](https://github.com/mhinz/vim-galore#reload-a-file-on-saving) | | | +| [Smarter cursorline](https://github.com/mhinz/vim-galore#smarter-cursorline) | | | +| [Faster keyword completion](https://github.com/mhinz/vim-galore#faster-keyword-completion) | | | +| [Cosmetic changes to colorschemes](https://github.com/mhinz/vim-galore#cosmetic-changes-to-colorschemes) | | | +| [Commands](https://github.com/mhinz/vim-galore#commands-1) | | | +| [:global and :vglobal](https://github.com/mhinz/vim-galore#global-and-vglobal) - Execute a command on all matching lines. | | | +| [:normal and :execute](https://github.com/mhinz/vim-galore#normal-and-execute) - The scripting dream team. | | | +| [:redir](https://github.com/mhinz/vim-galore#redir) - Redirect messages. | | | +| [Debugging](https://github.com/mhinz/vim-galore#debugging-1) | | | +| [General tips](https://github.com/mhinz/vim-galore#general-tips) | | | +| [Verbosity](https://github.com/mhinz/vim-galore#verbosity) | | | +| [Profiling startup time](https://github.com/mhinz/vim-galore#profiling-startup-time) | | | +| [Profiling at runtime](https://github.com/mhinz/vim-galore#profiling-at-runtime) | | | +| [Debugging Vim scripts](https://github.com/mhinz/vim-galore#debugging-vim-scripts) | | | +| [Debugging syntax files](https://github.com/mhinz/vim-galore#debugging-syntax-files) | | | +| [Miscellaneous](https://github.com/mhinz/vim-galore#miscellaneous-1) | | | +| [Additional resources](https://github.com/mhinz/vim-galore#additional-resources) | | | +| [Vim distributions](https://github.com/mhinz/vim-galore#vim-distributions) | | | +| [Standard plugins](https://github.com/mhinz/vim-galore#standard-plugins) | | | +| [Map CapsLock to Control](https://github.com/mhinz/vim-galore#map-capslock-to-control) | | | +| [Easter eggs](https://github.com/mhinz/vim-galore#easter-eggs) | | | +| [Why hjkl for navigation?](https://github.com/mhinz/vim-galore#why-hjkl-for-navigation) | | | +| [Common problems](https://github.com/mhinz/vim-galore#common-problems-1) | | | +| [Editing small files is slow](https://github.com/mhinz/vim-galore#editing-small-files-is-slow) | | | +| [Editing huge files is slow](https://github.com/mhinz/vim-galore#editing-huge-files-is-slow) | | | +| [Bracketed paste (or why do I have to set 'paste' all the time?)](https://github.com/mhinz/vim-galore#bracketed-paste-or-why-do-i-have-to-set-paste-all-the-time) | | | +| [Delays when using escape key in terminal](https://github.com/mhinz/vim-galore#delays-when-using-escape-key-in-terminal) | | | +| [Function search undo](https://github.com/mhinz/vim-galore#function-search-undo) | | | +| [Technical quirks](https://github.com/mhinz/vim-galore#technical-quirks-1) | | | +| [Newline used for NUL](https://github.com/mhinz/vim-galore#newline-used-for-nul) | | | +| [List of colorschemes](https://github.com/mhinz/vim-galore#list-of-colorschemes-1) | | | +| [List of plugins](https://github.com/mhinz/vim-galorecontents/plugins.md) | | |