mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:10:05 +08:00
Fix markdown format
This commit is contained in:
parent
37bde366dc
commit
1a74d45f6d
@ -18,6 +18,7 @@
|
|||||||
[![Percentage of issues still open](http://isitmaintained.com/badge/open/SpaceVim/SpaceVim.svg)](http://isitmaintained.com/project/SpaceVim/SpaceVim "Percentage of issues still open")
|
[![Percentage of issues still open](http://isitmaintained.com/badge/open/SpaceVim/SpaceVim.svg)](http://isitmaintained.com/project/SpaceVim/SpaceVim "Percentage of issues still open")
|
||||||
|
|
||||||
## About SpaceVim
|
## About SpaceVim
|
||||||
|
|
||||||
SpaceVim is a community-driven modular vim distribution. It manages collections
|
SpaceVim is a community-driven modular vim distribution. It manages collections
|
||||||
of plugins in layers, which help collect related packages together to provide IDE-like features.
|
of plugins in layers, which help collect related packages together to provide IDE-like features.
|
||||||
SpaceVim is not just a vimrc but an ultimate Vim configuration, It contains many built-in features.
|
SpaceVim is not just a vimrc but an ultimate Vim configuration, It contains many built-in features.
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
" License: GPLv3
|
" License: GPLv3
|
||||||
"=============================================================================
|
"=============================================================================
|
||||||
|
|
||||||
|
let s:SYS = SpaceVim#api#import('system')
|
||||||
|
|
||||||
|
|
||||||
let s:md_listItemIndent = 1
|
let s:md_listItemIndent = 1
|
||||||
let s:md_enableWcwidth = 0
|
let s:md_enableWcwidth = 0
|
||||||
let s:md_listItemChar = '-'
|
let s:md_listItemChar = '-'
|
||||||
@ -40,7 +43,11 @@ function! SpaceVim#layers#lang#markdown#config() abort
|
|||||||
\},
|
\},
|
||||||
\}
|
\}
|
||||||
let remarkrc = s:generate_remarkrc()
|
let remarkrc = s:generate_remarkrc()
|
||||||
let g:neoformat_enabled_markdown = ['remark']
|
if s:SYS.isWindows
|
||||||
|
let g:neoformat_enabled_markdown = ['prettier']
|
||||||
|
else
|
||||||
|
let g:neoformat_enabled_markdown = ['remark']
|
||||||
|
endif
|
||||||
let g:neoformat_markdown_remark = {
|
let g:neoformat_markdown_remark = {
|
||||||
\ 'exe': 'remark',
|
\ 'exe': 'remark',
|
||||||
\ 'args': ['--no-color', '--silent'] + (empty(remarkrc) ? [] : ['-r', remarkrc]),
|
\ 'args': ['--no-color', '--silent'] + (empty(remarkrc) ? [] : ['-r', remarkrc]),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim 中文手册"
|
title: "SpaceVim 中文手册"
|
||||||
description: "SpaceVim 是一个社区驱动的模块化 Vim 配置,以模块的方式组织和管理插件,为不同语言开发定制特定的模块,提供语法检查、自动补全、格式化、一键编译运行、以及 REPL 和 DEBUG 支持。"
|
description: "SpaceVim 是一个社区驱动的模块化 Vim 配置,以模块的方式组织和管理插件,为不同语言开发定制特定的模块,提供语法检查、自动补全、格式化、一键编译运行、以及 REPL 和 DEBUG 支持。"
|
||||||
redirect_from: "/README_zh_cn/"
|
redirect_from: "/README_zh_cn/"
|
||||||
lang: cn
|
lang: cn
|
||||||
@ -124,10 +124,10 @@ lang: cn
|
|||||||
- **优雅简洁的界面:** 你将会喜欢这样的优雅而实用的界面。
|
- **优雅简洁的界面:** 你将会喜欢这样的优雅而实用的界面。
|
||||||
- **确保手指不离开主键盘区域:** 使用 Space 作为前缀键,合理组织快捷键,确保手指不离开主键盘区域。
|
- **确保手指不离开主键盘区域:** 使用 Space 作为前缀键,合理组织快捷键,确保手指不离开主键盘区域。
|
||||||
- **快捷键辅助系统:** SpaceVim 所有快捷键无需记忆,当输入出现停顿,会实时提示可用按键及其功能。
|
- **快捷键辅助系统:** SpaceVim 所有快捷键无需记忆,当输入出现停顿,会实时提示可用按键及其功能。
|
||||||
- **更快的启动时间:** 得益于 dein.vim, SpaceVim 中90% 的插件都是按需载入的。
|
- **更快的启动时间:** 得益于 dein.vim, SpaceVim 中 90% 的插件都是按需载入的。
|
||||||
- **更少的肌肉损伤:** 频繁使用空格键,取代 `ctrl`,`shift` 等按键,大大减少了手指的肌肉损伤。
|
- **更少的肌肉损伤:** 频繁使用空格键,取代 `ctrl`,`shift` 等按键,大大减少了手指的肌肉损伤。
|
||||||
- **更易扩展:** 依照一些[约定](http://spacevim.org/cn/development/),很容易将现有的插件集成到 SpaceVim 中来。
|
- **更易扩展:** 依照一些[约定](http://spacevim.org/cn/development/),很容易将现有的插件集成到 SpaceVim 中来。
|
||||||
- **完美支持Neovim:** 依赖于 Neovim 的 romote 插件以及异步 API,SpaceVim 运行在 Neovim 下将有更加完美的体验。
|
- **完美支持 Neovim:** 依赖于 Neovim 的 romote 插件以及异步 API,SpaceVim 运行在 Neovim 下将有更加完美的体验。
|
||||||
|
|
||||||
## 运行截图
|
## 运行截图
|
||||||
|
|
||||||
@ -309,9 +309,9 @@ SpaceVim 的[模块首页](../layers/)。
|
|||||||
disabled_plugins = ["neomake.vim"]
|
disabled_plugins = ["neomake.vim"]
|
||||||
```
|
```
|
||||||
|
|
||||||
2. 添加自己fork的插件,或者本地克隆版本:
|
2. 添加自己 fork 的插件,或者本地克隆版本:
|
||||||
|
|
||||||
修搞配置文件 init.toml, 加入以下部分,来添加自己fork的版本:
|
修搞配置文件 init.toml, 加入以下部分,来添加自己 fork 的版本:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[custom_plugins]]
|
[[custom_plugins]]
|
||||||
@ -340,7 +340,7 @@ SpaceVim 根据需要定义了很多临时快捷键,这将避免需要重复
|
|||||||
|
|
||||||
## 优雅的界面
|
## 优雅的界面
|
||||||
|
|
||||||
SpaceVim 集成了多种使用 UI 插件,如常用的文件树、语法树等插件,配色主题默认采用的是 gruvbox。
|
SpaceVim 集成了多种使用 UI 插件,如常用的文件树、语法树等插件,配色主题默认采用的是 gruvbox。
|
||||||
|
|
||||||
### 颜色主题
|
### 颜色主题
|
||||||
|
|
||||||
@ -390,7 +390,7 @@ SpaceVim 在终端下默认使用了真色,因此使用之前需要确认下
|
|||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ----------- | ----------------------------------------- |
|
| ----------- | ----------------------------------------- |
|
||||||
| `SPC t 8` | 高亮所有超过80列的字符 |
|
| `SPC t 8` | 高亮所有超过 80 列的字符 |
|
||||||
| `SPC t f` | 高亮临界列,默认 `max_column` 是第 120 列 |
|
| `SPC t f` | 高亮临界列,默认 `max_column` 是第 120 列 |
|
||||||
| `SPC t h h` | 高亮当前行 |
|
| `SPC t h h` | 高亮当前行 |
|
||||||
| `SPC t h i` | 高亮代码对齐线 |
|
| `SPC t h i` | 高亮代码对齐线 |
|
||||||
@ -472,7 +472,7 @@ _acpi_ 可展示电池电量剩余百分比.
|
|||||||
| ---------- | ---- |
|
| ---------- | ---- |
|
||||||
| 75% - 100% | 绿色 |
|
| 75% - 100% | 绿色 |
|
||||||
| 30% - 75% | 黄色 |
|
| 30% - 75% | 黄色 |
|
||||||
| 0 - 30% | 红色 |
|
| 0 - 30% | 红色 |
|
||||||
|
|
||||||
所有的颜色都取决于不同的主题。
|
所有的颜色都取决于不同的主题。
|
||||||
|
|
||||||
@ -570,7 +570,7 @@ custom_color_palette = [
|
|||||||
|
|
||||||
### 标签栏
|
### 标签栏
|
||||||
|
|
||||||
如果只有一个Tab, Buffers 将被罗列在标签栏上,每一个包含:序号、文件类型图标、文件名。如果有不止一个 Tab, 那么所有 Tab 将被罗列在标签栏上。标签栏上每一个 Tab 或者 Buffer 可通过快捷键 `<Leader> number` 进行快速访问,默认的 `<Leader>` 是 `\`。
|
如果只有一个 Tab, Buffers 将被罗列在标签栏上,每一个包含:序号、文件类型图标、文件名。如果有不止一个 Tab, 那么所有 Tab 将被罗列在标签栏上。标签栏上每一个 Tab 或者 Buffer 可通过快捷键 `<Leader> number` 进行快速访问,默认的 `<Leader>` 是 `\`。
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ------------ | ---------------- |
|
| ------------ | ---------------- |
|
||||||
@ -632,68 +632,68 @@ SpaceVim 选项 `window_leader` 的值来设为其他按键:
|
|||||||
SpaceVim has mapped normal `q` as smart buffer close, the normal func of `q`
|
SpaceVim has mapped normal `q` as smart buffer close, the normal func of `q`
|
||||||
can be get by `<leader> q r`
|
can be get by `<leader> q r`
|
||||||
|
|
||||||
| Key | Mode | Action |
|
| Key | Mode | Action |
|
||||||
| --------------------- | :-----------: | ------------------------------------------------------------------------------ |
|
| --------------------- | :-----------: | ------------------------------------------------------------------------------ |
|
||||||
| `<leader>`+`y` | visual | Copy selection to X11 clipboard ("+y) |
|
| `<leader>`+`y` | visual | Copy selection to X11 clipboard ("+y) |
|
||||||
| `Ctrl`+`c` | Normal | Copy full path of current buffer to X11 clipboard |
|
| `Ctrl`+`c` | Normal | Copy full path of current buffer to X11 clipboard |
|
||||||
| `<leader>`+`Ctrl`+`c` | Normal | Copy github.com url of current buffer to X11 clipboard(if it is a github repo) |
|
| `<leader>`+`Ctrl`+`c` | Normal | Copy github.com url of current buffer to X11 clipboard(if it is a github repo) |
|
||||||
| `<leader>`+`Ctrl`+`l` | Normal/visual | Copy github.com url of current lines to X11 clipboard(if it is a github repo) |
|
| `<leader>`+`Ctrl`+`l` | Normal/visual | Copy github.com url of current lines to X11 clipboard(if it is a github repo) |
|
||||||
| `<leader>`+`p` | Normal/visual | Paste selection from X11 clipboard ("+p) |
|
| `<leader>`+`p` | Normal/visual | Paste selection from X11 clipboard ("+p) |
|
||||||
| `Ctrl`+`f` | Normal | Smart page forward (C-f/C-d) |
|
| `Ctrl`+`f` | Normal | Smart page forward (C-f/C-d) |
|
||||||
| `Ctrl`+`b` | Normal | Smart page backwards (C-b/C-u) |
|
| `Ctrl`+`b` | Normal | Smart page backwards (C-b/C-u) |
|
||||||
| `Ctrl`+`e` | Normal | Smart scroll down (3C-e/j) |
|
| `Ctrl`+`e` | Normal | Smart scroll down (3C-e/j) |
|
||||||
| `Ctrl`+`y` | Normal | Smart scroll up (3C-y/k) |
|
| `Ctrl`+`y` | Normal | Smart scroll up (3C-y/k) |
|
||||||
| `Ctrl`+`q` | Normal | `Ctrl`+`w` |
|
| `Ctrl`+`q` | Normal | `Ctrl`+`w` |
|
||||||
| `Ctrl`+`x` | Normal | Switch buffer and placement |
|
| `Ctrl`+`x` | Normal | Switch buffer and placement |
|
||||||
| `Up,Down` | Normal | Smart up and down |
|
| `Up,Down` | Normal | Smart up and down |
|
||||||
| `}` | Normal | After paragraph motion go to first non-blank char (}^) |
|
| `}` | Normal | After paragraph motion go to first non-blank char (}^) |
|
||||||
| `<` | Visual/Normal | Indent to left and re-select |
|
| `<` | Visual/Normal | Indent to left and re-select |
|
||||||
| `>` | Visual/Normal | Indent to right and re-select |
|
| `>` | Visual/Normal | Indent to right and re-select |
|
||||||
| `Tab` | Visual | Indent to right and re-select |
|
| `Tab` | Visual | Indent to right and re-select |
|
||||||
| `Shift`+`Tab` | Visual | Indent to left and re-select |
|
| `Shift`+`Tab` | Visual | Indent to left and re-select |
|
||||||
| `gp` | Normal | Select last paste |
|
| `gp` | Normal | Select last paste |
|
||||||
| `Q`/`gQ` | Normal | Disable EX-mode (<Nop>) |
|
| `Q`/`gQ` | Normal | Disable EX-mode (<Nop>) |
|
||||||
| `Ctrl`+`a` | Command | Navigation in command line |
|
| `Ctrl`+`a` | Command | Navigation in command line |
|
||||||
| `Ctrl`+`b` | Command | Move cursor backward in command line |
|
| `Ctrl`+`b` | Command | Move cursor backward in command line |
|
||||||
| `Ctrl`+`f` | Command | Move cursor forward in command line |
|
| `Ctrl`+`f` | Command | Move cursor forward in command line |
|
||||||
|
|
||||||
### File Operations
|
### File Operations
|
||||||
|
|
||||||
| Key | Mode | Action |
|
| Key | Mode | Action |
|
||||||
| --------------- | :-------------------: | ------------------------------------------ |
|
| --------------- | :-------------------: | ------------------------------------------ |
|
||||||
| `<leader>`+`cd` | Normal | Switch to the directory of the open buffer |
|
| `<leader>`+`cd` | Normal | Switch to the directory of the open buffer |
|
||||||
| `<leader>`+`w` | Normal/visual | Write (:w) |
|
| `<leader>`+`w` | Normal/visual | Write (:w) |
|
||||||
| `Ctrl`+`s` | Normal/visual/Command | Write (:w) |
|
| `Ctrl`+`s` | Normal/visual/Command | Write (:w) |
|
||||||
| `:w!!` | Command | Write as root (%!sudo tee > /dev/null %) |
|
| `:w!!` | Command | Write as root (%!sudo tee > /dev/null %) |
|
||||||
|
|
||||||
### Editor UI
|
### Editor UI
|
||||||
|
|
||||||
| Key | Mode | Action |
|
| Key | Mode | Action |
|
||||||
| ----------------------- | :-----------: | ---------------------------------------------------------------- |
|
| ----------------------- | :-----------: | ---------------------------------------------------------------- |
|
||||||
| `F2` | _All_ | Toggle tagbar |
|
| `F2` | _All_ | Toggle tagbar |
|
||||||
| `F3` | _All_ | Toggle Vimfiler |
|
| `F3` | _All_ | Toggle Vimfiler |
|
||||||
| `<leader>` + num | Normal | Jump to the buffer with the num index |
|
| `<leader>` + num | Normal | Jump to the buffer with the num index |
|
||||||
| `<Alt>` + num | Normal | Jump to the buffer with the num index, this only works in neovim |
|
| `<Alt>` + num | Normal | Jump to the buffer with the num index, this only works in neovim |
|
||||||
| `<Alt>` + `h`/`<Left>` | Normal | Jump to left buffer in the tabline, this only works in neovim |
|
| `<Alt>` + `h`/`<Left>` | Normal | Jump to left buffer in the tabline, this only works in neovim |
|
||||||
| `<Alt>` + `l`/`<Right>` | Normal | Jump to Right buffer in the tabline, this only works in neovim |
|
| `<Alt>` + `l`/`<Right>` | Normal | Jump to Right buffer in the tabline, this only works in neovim |
|
||||||
| `<leader>`+`ts` | Normal | Toggle spell-checker (:setlocal spell!) |
|
| `<leader>`+`ts` | Normal | Toggle spell-checker (:setlocal spell!) |
|
||||||
| `<leader>`+`tn` | Normal | Toggle line numbers (:setlocal nonumber!) |
|
| `<leader>`+`tn` | Normal | Toggle line numbers (:setlocal nonumber!) |
|
||||||
| `<leader>`+`tl` | Normal | Toggle hidden characters (:setlocal nolist!) |
|
| `<leader>`+`tl` | Normal | Toggle hidden characters (:setlocal nolist!) |
|
||||||
| `<leader>`+`th` | Normal | Toggle highlighted search (:set hlsearch!) |
|
| `<leader>`+`th` | Normal | Toggle highlighted search (:set hlsearch!) |
|
||||||
| `<leader>`+`tw` | Normal | Toggle wrap (:setlocal wrap! breakindent!) |
|
| `<leader>`+`tw` | Normal | Toggle wrap (:setlocal wrap! breakindent!) |
|
||||||
| `g0` | Normal | Go to first tab (:tabfirst) |
|
| `g0` | Normal | Go to first tab (:tabfirst) |
|
||||||
| `g$` | Normal | Go to last tab (:tablast) |
|
| `g$` | Normal | Go to last tab (:tablast) |
|
||||||
| `gr` | Normal | Go to previous tab (:tabprevious) |
|
| `gr` | Normal | Go to previous tab (:tabprevious) |
|
||||||
| `Ctrl`+`<Dow>` | Normal | Move to split below (<C-w>j) |
|
| `Ctrl`+`<Dow>` | Normal | Move to split below (<C-w>j) |
|
||||||
| `Ctrl`+`<Up>` | Normal | Move to upper split (<C-w>k) |
|
| `Ctrl`+`<Up>` | Normal | Move to upper split (<C-w>k) |
|
||||||
| `Ctrl`+`<Left>` | Normal | Move to left split (<C-w>h) |
|
| `Ctrl`+`<Left>` | Normal | Move to left split (<C-w>h) |
|
||||||
| `Ctrl`+`<Right>` | Normal | Move to right split (<C-w>l) |
|
| `Ctrl`+`<Right>` | Normal | Move to right split (<C-w>l) |
|
||||||
| `*` | Visual | Search selection forwards |
|
| `*` | Visual | Search selection forwards |
|
||||||
| `#` | Visual | Search selection backwards |
|
| `#` | Visual | Search selection backwards |
|
||||||
| `,`+`Space` | Normal | Remove all spaces at EOL |
|
| `,`+`Space` | Normal | Remove all spaces at EOL |
|
||||||
| `Ctrl`+`r` | Visual | Replace selection |
|
| `Ctrl`+`r` | Visual | Replace selection |
|
||||||
| `<leader>`+`lj` | Normal | Next on location list |
|
| `<leader>`+`lj` | Normal | Next on location list |
|
||||||
| `<leader>`+`lk` | Normal | Previous on location list |
|
| `<leader>`+`lk` | Normal | Previous on location list |
|
||||||
| `<leader>`+`S` | Normal/visual | Source selection |
|
| `<leader>`+`S` | Normal/visual | Source selection |
|
||||||
|
|
||||||
### Native functions
|
### Native functions
|
||||||
@ -889,9 +889,9 @@ merged = 0
|
|||||||
|
|
||||||
类似于 Firefox 的 vimperator 的 `f` 键的功能。
|
类似于 Firefox 的 vimperator 的 `f` 键的功能。
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ------------------------------- | ---------------- |
|
| ------------------------------- | ----------------- |
|
||||||
| `SPC j u`/(`o` for help buffer) | 快速跳到/打开url |
|
| `SPC j u`/(`o` for help buffer) | 快速跳到/打开 url |
|
||||||
|
|
||||||
#### 常用的成对快捷键
|
#### 常用的成对快捷键
|
||||||
|
|
||||||
@ -1021,7 +1021,7 @@ Buffer 操作相关快捷键都是已 `SPC b` 为前缀的:
|
|||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| --------------- | ------------------------------------------------------------------------------ |
|
| --------------- | ------------------------------------------------------------------------------ |
|
||||||
| `SPC TAB` | 切换至前一buffer,可用于两个 buffer 来回切换 |
|
| `SPC TAB` | 切换至前一 buffer,可用于两个 buffer 来回切换 |
|
||||||
| `SPC b .` | 启用 buffer 临时快捷键 |
|
| `SPC b .` | 启用 buffer 临时快捷键 |
|
||||||
| `SPC b b` | 切换至某一 buffer,通过 Unite/Denite 进行筛选 |
|
| `SPC b b` | 切换至某一 buffer,通过 Unite/Denite 进行筛选 |
|
||||||
| `SPC b d` | 删除当前 buffer,但保留 Vim 窗口 |
|
| `SPC b d` | 删除当前 buffer,但保留 Vim 窗口 |
|
||||||
@ -1173,7 +1173,7 @@ SpaceVim 的文件树提供了版本控制信息的接口,但是这一特性
|
|||||||
| `g]` | tselect cursor tag |
|
| `g]` | tselect cursor tag |
|
||||||
| `g^` | go to leftmost no-white character |
|
| `g^` | go to leftmost no-white character |
|
||||||
| `g_` | go to last char |
|
| `g_` | go to last char |
|
||||||
| ``g` `` | 跳至标签,等同于 `g'` |
|
| `` g` `` | 跳至标签,等同于 `g'` |
|
||||||
| `ga` | 打印光标字符的 ascii 值 |
|
| `ga` | 打印光标字符的 ascii 值 |
|
||||||
| `gd` | 跳至定义处 |
|
| `gd` | 跳至定义处 |
|
||||||
| `ge` | go to end of previous word |
|
| `ge` | go to end of previous word |
|
||||||
@ -1255,14 +1255,14 @@ SpaceVim 像下面那样调用不同搜索工具的搜索接口:
|
|||||||
- [ack](https://beyondgrep.com/)
|
- [ack](https://beyondgrep.com/)
|
||||||
- grep
|
- grep
|
||||||
|
|
||||||
SpaceVim 中的搜索命令是以 `SPC s` 为前缀的, 前一个键是使用的工具,后一个键是范围.
|
SpaceVim 中的搜索命令是以 `SPC s` 为前缀的, 前一个键是使用的工具,后一个键是范围.
|
||||||
例如 `SPC s a b`将使用 `ag`在当前所有已经打开的缓冲区中进行搜索.
|
例如 `SPC s a b`将使用 `ag`在当前所有已经打开的缓冲区中进行搜索.
|
||||||
|
|
||||||
如果最后一个键(决定范围)是大写字母, 那么就会对当前光标下的单词进行搜索.
|
如果最后一个键(决定范围)是大写字母, 那么就会对当前光标下的单词进行搜索.
|
||||||
举个例子 `SPC s a b` 将会搜索当前光标下的单词.
|
举个例子 `SPC s a b` 将会搜索当前光标下的单词.
|
||||||
|
|
||||||
如果工具键被省略了, 那么会用默认的搜索工具进行搜索. 默认的搜索工具对应在 `g:spacevim_search_tools`
|
如果工具键被省略了, 那么会用默认的搜索工具进行搜索. 默认的搜索工具对应在 `g:spacevim_search_tools`
|
||||||
列表中的第一个工具. 列表中的工具默认的顺序为: `rg`, `ag`, `pt`, `ack` then `grep`.
|
列表中的第一个工具. 列表中的工具默认的顺序为: `rg`, `ag`, `pt`, `ack` then `grep`.
|
||||||
举个例子如果 `rg` 和 `ag` 没有在系统中找到, 那么 `SPC s b` 会使用 `pt` 进行搜索.
|
举个例子如果 `rg` 和 `ag` 没有在系统中找到, 那么 `SPC s b` 会使用 `pt` 进行搜索.
|
||||||
|
|
||||||
下表是全部的工具键:
|
下表是全部的工具键:
|
||||||
@ -1283,13 +1283,13 @@ SpaceVim 中的搜索命令是以 `SPC s` 为前缀的, 前一个键是使用的
|
|||||||
| files in a given directory | f |
|
| files in a given directory | f |
|
||||||
| current project | p |
|
| current project | p |
|
||||||
|
|
||||||
可以双击按键序列中的第二个键来在当前文件中进行搜索. 举个例子: `SPC s a a` 会使用 `ag` 在当前文件中进行搜索.
|
可以双击按键序列中的第二个键来在当前文件中进行搜索. 举个例子: `SPC s a a` 会使用 `ag` 在当前文件中进行搜索.
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
- 如果使用源代码管理的话 `rg`, `ag` 和 `pt` 都会被忽略掉, 但是他们可以在任意目录中正常运行.
|
- 如果使用源代码管理的话 `rg`, `ag` 和 `pt` 都会被忽略掉, 但是他们可以在任意目录中正常运行.
|
||||||
- 也可以通过将它们标记在联合缓冲区来一次搜索多个目录.
|
- 也可以通过将它们标记在联合缓冲区来一次搜索多个目录.
|
||||||
**注意** 如果你使用 `pt`, [TCL parser tools](https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/apps/pt.html)
|
**注意** 如果你使用 `pt`, [TCL parser tools](https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/apps/pt.html)
|
||||||
同时也需要安装一个名叫 `pt` 的命令行工具.
|
同时也需要安装一个名叫 `pt` 的命令行工具.
|
||||||
|
|
||||||
##### 配置搜索工具
|
##### 配置搜索工具
|
||||||
@ -1308,7 +1308,7 @@ endfunction
|
|||||||
搜索工具配置结构为:
|
搜索工具配置结构为:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
" { 'ag' : {
|
" { 'ag' : {
|
||||||
" 'namespace' : '', " a single char a-z
|
" 'namespace' : '', " a single char a-z
|
||||||
" 'command' : '', " executable
|
" 'command' : '', " executable
|
||||||
" 'default_opts' : [], " default options
|
" 'default_opts' : [], " default options
|
||||||
@ -1321,13 +1321,12 @@ endfunction
|
|||||||
" }
|
" }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
##### 常用按键绑定
|
##### 常用按键绑定
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
| --------------- | ----------------------------------------- |
|
| --------------- | ----------------------------------------- |
|
||||||
| `SPC r l` | resume the last completion buffer |
|
| `SPC r l` | resume the last completion buffer |
|
||||||
| ``SPC s ` `` | go back to the previous place before jump |
|
| `` SPC s ` `` | go back to the previous place before jump |
|
||||||
| Prefix argument | will ask for file extensions |
|
| Prefix argument | will ask for file extensions |
|
||||||
|
|
||||||
##### 在当前文件中进行搜索
|
##### 在当前文件中进行搜索
|
||||||
@ -1411,7 +1410,7 @@ endfunction
|
|||||||
| `SPC s r p` | rg |
|
| `SPC s r p` | rg |
|
||||||
| `SPC s r P` | rg with default text |
|
| `SPC s r P` | rg with default text |
|
||||||
|
|
||||||
**提示**: 在工程中进行搜索的话, 无需提前打开文件. 在工程保存目录中使用 `SPC p p` 和 `C-s` , 就比如 `SPC s p`.(TODO)
|
**提示**: 在工程中进行搜索的话, 无需提前打开文件. 在工程保存目录中使用 `SPC p p` 和 `C-s` , 就比如 `SPC s p`.(TODO)
|
||||||
|
|
||||||
##### 后台进行工程搜索
|
##### 后台进行工程搜索
|
||||||
|
|
||||||
@ -1440,7 +1439,7 @@ endfunction
|
|||||||
| `SPC s w g` | Get Google suggestions in vim. Opens Google results in Browser. |
|
| `SPC s w g` | Get Google suggestions in vim. Opens Google results in Browser. |
|
||||||
| `SPC s w w` | Get Wikipedia suggestions in vim. Opens Wikipedia page in Browser.(TODO) |
|
| `SPC s w w` | Get Wikipedia suggestions in vim. Opens Wikipedia page in Browser.(TODO) |
|
||||||
|
|
||||||
**注意**: 为了在 vim 中使用谷歌 suggestions , 你需要在你的默认配置文件中加入 `let g:spacevim_enable_googlesuggest = 1`.
|
**注意**: 为了在 vim 中使用谷歌 suggestions , 你需要在你的默认配置文件中加入 `let g:spacevim_enable_googlesuggest = 1`.
|
||||||
|
|
||||||
#### 实时代码检索
|
#### 实时代码检索
|
||||||
|
|
||||||
@ -1515,61 +1514,61 @@ In highlight symbol transient state:
|
|||||||
文本相关的命令 (以 `x` 开头):
|
文本相关的命令 (以 `x` 开头):
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
| ------------- | -------------------------------------------------------------------- |
|
| ------------- | -------------------------------------------------------------------- |
|
||||||
| `SPC x a &` | align region at & |
|
| `SPC x a &` | align region at & |
|
||||||
| `SPC x a (` | align region at ( |
|
| `SPC x a (` | align region at ( |
|
||||||
| `SPC x a )` | align region at ) |
|
| `SPC x a )` | align region at ) |
|
||||||
| `SPC x a [` | align region at \[ |
|
| `SPC x a [` | align region at \[ |
|
||||||
| `SPC x a ]` | align region at ] |
|
| `SPC x a ]` | align region at ] |
|
||||||
| `SPC x a {` | align region at { |
|
| `SPC x a {` | align region at { |
|
||||||
| `SPC x a }` | align region at } |
|
| `SPC x a }` | align region at } |
|
||||||
| `SPC x a ,` | align region at , |
|
| `SPC x a ,` | align region at , |
|
||||||
| `SPC x a .` | align region at . (for numeric tables) |
|
| `SPC x a .` | align region at . (for numeric tables) |
|
||||||
| `SPC x a :` | align region at : |
|
| `SPC x a :` | align region at : |
|
||||||
| `SPC x a ;` | align region at ; |
|
| `SPC x a ;` | align region at ; |
|
||||||
| `SPC x a =` | align region at = |
|
| `SPC x a =` | align region at = |
|
||||||
| `SPC x a ¦` | align region at ¦ |
|
| `SPC x a ¦` | align region at ¦ |
|
||||||
| `SPC x a |` | align region at |
|
| `SPC x a |` | align region at |
|
||||||
| `SPC x a a` | align region (or guessed section) using default rules (TODO) |
|
| `SPC x a a` | align region (or guessed section) using default rules (TODO) |
|
||||||
| `SPC x a c` | align current indentation region using default rules (TODO) |
|
| `SPC x a c` | align current indentation region using default rules (TODO) |
|
||||||
| `SPC x a l` | left-align with evil-lion (TODO) |
|
| `SPC x a l` | left-align with evil-lion (TODO) |
|
||||||
| `SPC x a L` | right-align with evil-lion (TODO) |
|
| `SPC x a L` | right-align with evil-lion (TODO) |
|
||||||
| `SPC x a r` | align region using user-specified regexp (TODO) |
|
| `SPC x a r` | align region using user-specified regexp (TODO) |
|
||||||
| `SPC x a m` | align region at arithmetic operators `(+-*/)` (TODO) |
|
| `SPC x a m` | align region at arithmetic operators `(+-*/)` (TODO) |
|
||||||
| `SPC x c` | count the number of chars/words/lines in the selection region |
|
| `SPC x c` | count the number of chars/words/lines in the selection region |
|
||||||
| `SPC x d w` | delete trailing whitespaces |
|
| `SPC x d w` | delete trailing whitespaces |
|
||||||
| `SPC x d SPC` | Delete all spaces and tabs around point, leaving one space |
|
| `SPC x d SPC` | Delete all spaces and tabs around point, leaving one space |
|
||||||
| `SPC x g l` | set lanuages used by translate commands (TODO) |
|
| `SPC x g l` | set lanuages used by translate commands (TODO) |
|
||||||
| `SPC x g t` | translate current word using Google Translate |
|
| `SPC x g t` | translate current word using Google Translate |
|
||||||
| `SPC x g T` | reverse source and target languages (TODO) |
|
| `SPC x g T` | reverse source and target languages (TODO) |
|
||||||
| `SPC x i c` | change symbol style to `lowerCamelCase` |
|
| `SPC x i c` | change symbol style to `lowerCamelCase` |
|
||||||
| `SPC x i C` | change symbol style to `UpperCamelCase` |
|
| `SPC x i C` | change symbol style to `UpperCamelCase` |
|
||||||
| `SPC x i i` | cycle symbol naming styles (i to keep cycling) |
|
| `SPC x i i` | cycle symbol naming styles (i to keep cycling) |
|
||||||
| `SPC x i -` | change symbol style to `kebab-case` |
|
| `SPC x i -` | change symbol style to `kebab-case` |
|
||||||
| `SPC x i k` | change symbol style to `kebab-case` |
|
| `SPC x i k` | change symbol style to `kebab-case` |
|
||||||
| `SPC x i _` | change symbol style to `under_score` |
|
| `SPC x i _` | change symbol style to `under_score` |
|
||||||
| `SPC x i u` | change symbol style to `under_score` |
|
| `SPC x i u` | change symbol style to `under_score` |
|
||||||
| `SPC x i U` | change symbol style to `UP_CASE` |
|
| `SPC x i U` | change symbol style to `UP_CASE` |
|
||||||
| `SPC x j c` | set the justification to center (TODO) |
|
| `SPC x j c` | set the justification to center (TODO) |
|
||||||
| `SPC x j f` | set the justification to full (TODO) |
|
| `SPC x j f` | set the justification to full (TODO) |
|
||||||
| `SPC x j l` | set the justification to left (TODO) |
|
| `SPC x j l` | set the justification to left (TODO) |
|
||||||
| `SPC x j n` | set the justification to none (TODO) |
|
| `SPC x j n` | set the justification to none (TODO) |
|
||||||
| `SPC x j r` | set the justification to right (TODO) |
|
| `SPC x j r` | set the justification to right (TODO) |
|
||||||
| `SPC x J` | move down a line of text (enter transient state) |
|
| `SPC x J` | move down a line of text (enter transient state) |
|
||||||
| `SPC x K` | move up a line of text (enter transient state) |
|
| `SPC x K` | move up a line of text (enter transient state) |
|
||||||
| `SPC x l d` | duplicate line or region (TODO) |
|
| `SPC x l d` | duplicate line or region (TODO) |
|
||||||
| `SPC x l s` | sort lines (TODO) |
|
| `SPC x l s` | sort lines (TODO) |
|
||||||
| `SPC x l u` | uniquify lines (TODO) |
|
| `SPC x l u` | uniquify lines (TODO) |
|
||||||
| `SPC x o` | use avy to select a link in the frame and open it (TODO) |
|
| `SPC x o` | use avy to select a link in the frame and open it (TODO) |
|
||||||
| `SPC x O` | use avy to select multiple links in the frame and open them (TODO) |
|
| `SPC x O` | use avy to select multiple links in the frame and open them (TODO) |
|
||||||
| `SPC x t c` | swap (transpose) the current character with the previous one |
|
| `SPC x t c` | swap (transpose) the current character with the previous one |
|
||||||
| `SPC x t w` | swap (transpose) the current word with the previous one |
|
| `SPC x t w` | swap (transpose) the current word with the previous one |
|
||||||
| `SPC x t l` | swap (transpose) the current line with the previous one |
|
| `SPC x t l` | swap (transpose) the current line with the previous one |
|
||||||
| `SPC x u` | set the selected text to lower case (TODO) |
|
| `SPC x u` | set the selected text to lower case (TODO) |
|
||||||
| `SPC x U` | set the selected text to upper case (TODO) |
|
| `SPC x U` | set the selected text to upper case (TODO) |
|
||||||
| `SPC x w c` | count the number of occurrences per word in the select region (TODO) |
|
| `SPC x w c` | count the number of occurrences per word in the select region (TODO) |
|
||||||
| `SPC x w d` | show dictionary entry of word from wordnik.com (TODO) |
|
| `SPC x w d` | show dictionary entry of word from wordnik.com (TODO) |
|
||||||
| `SPC x TAB` | indent or dedent a region rigidly (TODO) |
|
| `SPC x TAB` | indent or dedent a region rigidly (TODO) |
|
||||||
|
|
||||||
#### 文本插入命令
|
#### 文本插入命令
|
||||||
|
|
||||||
@ -1714,15 +1713,15 @@ SpaceVim 通过 [neomake](https://github.com/neomake/neomake) fly 工具来进
|
|||||||
| `SPC e v` | verify syntax checker setup (useful to debug 3rd party tools configuration) |
|
| `SPC e v` | verify syntax checker setup (useful to debug 3rd party tools configuration) |
|
||||||
| `SPC e .` | error transient state |
|
| `SPC e .` | error transient state |
|
||||||
|
|
||||||
下一个/上一个错误导航键和错误暂态(error transinet state) 可用于浏览语法检查器和位置列表缓冲区的错误,
|
下一个/上一个错误导航键和错误暂态(error transinet state) 可用于浏览语法检查器和位置列表缓冲区的错误,
|
||||||
甚至可检查vim位置列表的所有错误. 这包括下面的例子: 在已被保存的位置列表缓冲区进行搜索.
|
甚至可检查 vim 位置列表的所有错误. 这包括下面的例子: 在已被保存的位置列表缓冲区进行搜索.
|
||||||
默认提示符:
|
默认提示符:
|
||||||
|
|
||||||
| Symbol | Description | Custom option |
|
| Symbol | Description | Custom option |
|
||||||
| ------ | ----------- | --------------------------- |
|
| ------ | ----------- | --------------------------- |
|
||||||
| `✖` | Error | `g:spacevim_error_symbol` |
|
| `✖` | Error | `g:spacevim_error_symbol` |
|
||||||
| `➤` | warning | `g:spacevim_warning_symbol` |
|
| `➤` | warning | `g:spacevim_warning_symbol` |
|
||||||
| `🛈` | Info | `g:spacevim_info_symbol` |
|
| `🛈` | Info | `g:spacevim_info_symbol` |
|
||||||
|
|
||||||
### 工程管理
|
### 工程管理
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "Documentation"
|
title: "Documentation"
|
||||||
description: "General documentation about how to using SpaceVim, including the quick start guide and FAQs."
|
description: "General documentation about how to using SpaceVim, including the quick start guide and FAQs."
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ Comprehensive documentation is available for each layer by `:h SpaceVim`.
|
|||||||
|
|
||||||
**Add custom plugins**
|
**Add custom plugins**
|
||||||
|
|
||||||
If you want to add plugin from github, just add the repo name to the `custom_plugins` section:
|
If you want to add plugin from github, just add the repo name to the `custom_plugins` section:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[custom_plugins]]
|
[[custom_plugins]]
|
||||||
@ -625,7 +625,7 @@ SpaceVim tabline also support mouse click, left mouse button will switch to buff
|
|||||||
|
|
||||||
**Tab manager:**
|
**Tab manager:**
|
||||||
|
|
||||||
You can also use `SPC t t` to open the tab manager windows.
|
You can also use `SPC t t` to open the tab manager windows.
|
||||||
|
|
||||||
key bindings within tab manager windows:
|
key bindings within tab manager windows:
|
||||||
|
|
||||||
@ -671,27 +671,27 @@ can change it via `windows_leader` option:
|
|||||||
SpaceVim has mapped normal `q` as smart buffer close, the normal func of `q`
|
SpaceVim has mapped normal `q` as smart buffer close, the normal func of `q`
|
||||||
can be get by `<Leader> q r`, if you want to disable this feature, you can use `vimcompatible` mode.
|
can be get by `<Leader> q r`, if you want to disable this feature, you can use `vimcompatible` mode.
|
||||||
|
|
||||||
| Key | Mode | Action |
|
| Key | Mode | Action |
|
||||||
| ----------------- | :-----------: | ------------------------------------------------------------------------------ |
|
| ----------------- | :-----------: | ------------------------------------------------------------------------------ |
|
||||||
| `<Leader> y` | visual | Copy selection to X11 clipboard ("+y) |
|
| `<Leader> y` | visual | Copy selection to X11 clipboard ("+y) |
|
||||||
| `Ctrl-c` | Normal | Copy full path of current buffer to X11 clipboard |
|
| `Ctrl-c` | Normal | Copy full path of current buffer to X11 clipboard |
|
||||||
| `<Leader> Ctrl-c` | Normal | Copy github.com url of current buffer to X11 clipboard(if it is a github repo) |
|
| `<Leader> Ctrl-c` | Normal | Copy github.com url of current buffer to X11 clipboard(if it is a github repo) |
|
||||||
| `<Leader> Ctrl-l` | Normal/visual | Copy github.com url of current lines to X11 clipboard(if it is a github repo) |
|
| `<Leader> Ctrl-l` | Normal/visual | Copy github.com url of current lines to X11 clipboard(if it is a github repo) |
|
||||||
| `<Leader> p` | Normal/visual | Paste selection from X11 clipboard ("+p) |
|
| `<Leader> p` | Normal/visual | Paste selection from X11 clipboard ("+p) |
|
||||||
| `Ctrl-f` | Normal | Smart page forward (C-f/C-d) |
|
| `Ctrl-f` | Normal | Smart page forward (C-f/C-d) |
|
||||||
| `Ctrl-b` | Normal | Smart page backwards (C-b/C-u) |
|
| `Ctrl-b` | Normal | Smart page backwards (C-b/C-u) |
|
||||||
| `Ctrl-e` | Normal | Smart scroll down (3C-e/j) |
|
| `Ctrl-e` | Normal | Smart scroll down (3C-e/j) |
|
||||||
| `Ctrl-y` | Normal | Smart scroll up (3C-y/k) |
|
| `Ctrl-y` | Normal | Smart scroll up (3C-y/k) |
|
||||||
| `Ctrl-q` | Normal | `Ctrl`+`w` |
|
| `Ctrl-q` | Normal | `Ctrl`+`w` |
|
||||||
| `Ctrl-x` | Normal | Switch buffer and placement |
|
| `Ctrl-x` | Normal | Switch buffer and placement |
|
||||||
| `<Up>`, `<Down>` | Normal | Smart up and down |
|
| `<Up>`, `<Down>` | Normal | Smart up and down |
|
||||||
| `}` | Normal | After paragraph motion go to first non-blank char (}^) |
|
| `}` | Normal | After paragraph motion go to first non-blank char (}^) |
|
||||||
| `<` | Visual/Normal | Indent to left and re-select |
|
| `<` | Visual/Normal | Indent to left and re-select |
|
||||||
| `>` | Visual/Normal | Indent to right and re-select |
|
| `>` | Visual/Normal | Indent to right and re-select |
|
||||||
| `<Tab>` | Visual | Indent to right and re-select |
|
| `<Tab>` | Visual | Indent to right and re-select |
|
||||||
| `Shift-Tab` | Visual | Indent to left and re-select |
|
| `Shift-Tab` | Visual | Indent to left and re-select |
|
||||||
| `g p` | Normal | Select last paste |
|
| `g p` | Normal | Select last paste |
|
||||||
| `Q` / `g Q` | Normal | Disable EX-mode (<Nop>) |
|
| `Q` / `g Q` | Normal | Disable EX-mode (<Nop>) |
|
||||||
| `Ctrl-a` | Command | Navigation in command line |
|
| `Ctrl-a` | Command | Navigation in command line |
|
||||||
| `Ctrl-b` | Command | Move cursor backward in command line |
|
| `Ctrl-b` | Command | Move cursor backward in command line |
|
||||||
| `Ctrl-f` | Command | Move cursor forward in command line |
|
| `Ctrl-f` | Command | Move cursor forward in command line |
|
||||||
@ -876,7 +876,7 @@ then use `<Tab>` or `<Up>` and `<Down>` to select the mapping, press `<Enter>` w
|
|||||||
|
|
||||||
#### Getting help
|
#### Getting help
|
||||||
|
|
||||||
fuzzy finder layer is powerful tool to unite all interfaces. it was meant to be
|
fuzzy finder layer is powerful tool to unite all interfaces. it was meant to be
|
||||||
like [Helm](https://github.com/emacs-helm/helm) for Vim. These mappings is for
|
like [Helm](https://github.com/emacs-helm/helm) for Vim. These mappings is for
|
||||||
getting help info about functions, variables etc:
|
getting help info about functions, variables etc:
|
||||||
|
|
||||||
@ -1022,7 +1022,7 @@ Windows manipulation commands (start with `w`):
|
|||||||
| `SPC w TAB` | switch to alternate window in the current frame (switch back and forth) |
|
| `SPC w TAB` | switch to alternate window in the current frame (switch back and forth) |
|
||||||
| `SPC w =` | balance split windows |
|
| `SPC w =` | balance split windows |
|
||||||
| `SPC w b` | force the focus back to the minibuffer (TODO) |
|
| `SPC w b` | force the focus back to the minibuffer (TODO) |
|
||||||
| `SPC w c` | Distraction-free reading current window (tools layer) |
|
| `SPC w c` | Distraction-free reading current window (tools layer) |
|
||||||
| `SPC w C` | Distraction-free reading other windows via vim-choosewin (tools layer) |
|
| `SPC w C` | Distraction-free reading other windows via vim-choosewin (tools layer) |
|
||||||
| `SPC w d` | delete a window |
|
| `SPC w d` | delete a window |
|
||||||
| `SPC u SPC w d` | delete a window and its current buffer (does not delete the file) (TODO) |
|
| `SPC u SPC w d` | delete a window and its current buffer (does not delete the file) (TODO) |
|
||||||
@ -1219,7 +1219,7 @@ which will tell you the functional of all mappings starting with `g`.
|
|||||||
| `g ]` | tselect cursor tag |
|
| `g ]` | tselect cursor tag |
|
||||||
| `g ^` | go to leftmost no-white character |
|
| `g ^` | go to leftmost no-white character |
|
||||||
| `g _` | go to last char |
|
| `g _` | go to last char |
|
||||||
| ``g ` `` | jump to mark |
|
| `` g ` `` | jump to mark |
|
||||||
| `g a` | print ascii value of cursor character |
|
| `g a` | print ascii value of cursor character |
|
||||||
| `g d` | goto definition |
|
| `g d` | goto definition |
|
||||||
| `g e` | go to end of previous word |
|
| `g e` | go to end of previous word |
|
||||||
@ -1336,7 +1336,6 @@ Notes:
|
|||||||
|
|
||||||
**Beware** if you use `pt`, [TCL parser tools](https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/apps/pt.html) also install a command line tool called `pt`.
|
**Beware** if you use `pt`, [TCL parser tools](https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/apps/pt.html) also install a command line tool called `pt`.
|
||||||
|
|
||||||
|
|
||||||
##### Custom searching tool
|
##### Custom searching tool
|
||||||
|
|
||||||
to change the option of a search tool, you need to use bootstrap function. here is an example
|
to change the option of a search tool, you need to use bootstrap function. here is an example
|
||||||
@ -1353,7 +1352,7 @@ endfunction
|
|||||||
The structure of searching tool profile is:
|
The structure of searching tool profile is:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
" { 'ag' : {
|
" { 'ag' : {
|
||||||
" 'namespace' : '', " a single char a-z
|
" 'namespace' : '', " a single char a-z
|
||||||
" 'command' : '', " executable
|
" 'command' : '', " executable
|
||||||
" 'default_opts' : [], " default options
|
" 'default_opts' : [], " default options
|
||||||
@ -1366,13 +1365,12 @@ The structure of searching tool profile is:
|
|||||||
" }
|
" }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
##### Useful key bindings
|
##### Useful key bindings
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
| --------------- | ----------------------------------------- |
|
| --------------- | ----------------------------------------- |
|
||||||
| `SPC r l` | resume the last completion buffer |
|
| `SPC r l` | resume the last completion buffer |
|
||||||
| ``SPC s ` `` | go back to the previous place before jump |
|
| `` SPC s ` `` | go back to the previous place before jump |
|
||||||
| Prefix argument | will ask for file extensions |
|
| Prefix argument | will ask for file extensions |
|
||||||
|
|
||||||
##### Searching in current file
|
##### Searching in current file
|
||||||
@ -1559,61 +1557,61 @@ In highlight symbol transient state:
|
|||||||
Text related commands (start with `x`):
|
Text related commands (start with `x`):
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
| ------------- | -------------------------------------------------------------------- |
|
| ------------- | -------------------------------------------------------------------- |
|
||||||
| `SPC x a &` | align region at & |
|
| `SPC x a &` | align region at & |
|
||||||
| `SPC x a (` | align region at ( |
|
| `SPC x a (` | align region at ( |
|
||||||
| `SPC x a )` | align region at ) |
|
| `SPC x a )` | align region at ) |
|
||||||
| `SPC x a [` | align region at \[ |
|
| `SPC x a [` | align region at \[ |
|
||||||
| `SPC x a ]` | align region at ] |
|
| `SPC x a ]` | align region at ] |
|
||||||
| `SPC x a {` | align region at { |
|
| `SPC x a {` | align region at { |
|
||||||
| `SPC x a }` | align region at } |
|
| `SPC x a }` | align region at } |
|
||||||
| `SPC x a ,` | align region at , |
|
| `SPC x a ,` | align region at , |
|
||||||
| `SPC x a .` | align region at . (for numeric tables) |
|
| `SPC x a .` | align region at . (for numeric tables) |
|
||||||
| `SPC x a :` | align region at : |
|
| `SPC x a :` | align region at : |
|
||||||
| `SPC x a ;` | align region at ; |
|
| `SPC x a ;` | align region at ; |
|
||||||
| `SPC x a =` | align region at = |
|
| `SPC x a =` | align region at = |
|
||||||
| `SPC x a ¦` | align region at ¦ |
|
| `SPC x a ¦` | align region at ¦ |
|
||||||
| `SPC x a |` | align region at |
|
| `SPC x a |` | align region at |
|
||||||
| `SPC x a a` | align region (or guessed section) using default rules (TODO) |
|
| `SPC x a a` | align region (or guessed section) using default rules (TODO) |
|
||||||
| `SPC x a c` | align current indentation region using default rules (TODO) |
|
| `SPC x a c` | align current indentation region using default rules (TODO) |
|
||||||
| `SPC x a l` | left-align with evil-lion (TODO) |
|
| `SPC x a l` | left-align with evil-lion (TODO) |
|
||||||
| `SPC x a L` | right-align with evil-lion (TODO) |
|
| `SPC x a L` | right-align with evil-lion (TODO) |
|
||||||
| `SPC x a r` | align region using user-specified regexp (TODO) |
|
| `SPC x a r` | align region using user-specified regexp (TODO) |
|
||||||
| `SPC x a m` | align region at arithmetic operators `(+-*/)` (TODO) |
|
| `SPC x a m` | align region at arithmetic operators `(+-*/)` (TODO) |
|
||||||
| `SPC x c` | count the number of chars/words/lines in the selection region |
|
| `SPC x c` | count the number of chars/words/lines in the selection region |
|
||||||
| `SPC x d w` | delete trailing whitespaces |
|
| `SPC x d w` | delete trailing whitespaces |
|
||||||
| `SPC x d SPC` | Delete all spaces and tabs around point, leaving one space |
|
| `SPC x d SPC` | Delete all spaces and tabs around point, leaving one space |
|
||||||
| `SPC x g l` | set lanuages used by translate commands (TODO) |
|
| `SPC x g l` | set lanuages used by translate commands (TODO) |
|
||||||
| `SPC x g t` | translate current word using Google Translate |
|
| `SPC x g t` | translate current word using Google Translate |
|
||||||
| `SPC x g T` | reverse source and target languages (TODO) |
|
| `SPC x g T` | reverse source and target languages (TODO) |
|
||||||
| `SPC x i c` | change symbol style to `lowerCamelCase` |
|
| `SPC x i c` | change symbol style to `lowerCamelCase` |
|
||||||
| `SPC x i C` | change symbol style to `UpperCamelCase` |
|
| `SPC x i C` | change symbol style to `UpperCamelCase` |
|
||||||
| `SPC x i i` | cycle symbol naming styles (i to keep cycling) |
|
| `SPC x i i` | cycle symbol naming styles (i to keep cycling) |
|
||||||
| `SPC x i -` | change symbol style to `kebab-case` |
|
| `SPC x i -` | change symbol style to `kebab-case` |
|
||||||
| `SPC x i k` | change symbol style to `kebab-case` |
|
| `SPC x i k` | change symbol style to `kebab-case` |
|
||||||
| `SPC x i _` | change symbol style to `under_score` |
|
| `SPC x i _` | change symbol style to `under_score` |
|
||||||
| `SPC x i u` | change symbol style to `under_score` |
|
| `SPC x i u` | change symbol style to `under_score` |
|
||||||
| `SPC x i U` | change symbol style to `UP_CASE` |
|
| `SPC x i U` | change symbol style to `UP_CASE` |
|
||||||
| `SPC x j c` | set the justification to center (TODO) |
|
| `SPC x j c` | set the justification to center (TODO) |
|
||||||
| `SPC x j f` | set the justification to full (TODO) |
|
| `SPC x j f` | set the justification to full (TODO) |
|
||||||
| `SPC x j l` | set the justification to left (TODO) |
|
| `SPC x j l` | set the justification to left (TODO) |
|
||||||
| `SPC x j n` | set the justification to none (TODO) |
|
| `SPC x j n` | set the justification to none (TODO) |
|
||||||
| `SPC x j r` | set the justification to right (TODO) |
|
| `SPC x j r` | set the justification to right (TODO) |
|
||||||
| `SPC x J` | move down a line of text (enter transient state) |
|
| `SPC x J` | move down a line of text (enter transient state) |
|
||||||
| `SPC x K` | move up a line of text (enter transient state) |
|
| `SPC x K` | move up a line of text (enter transient state) |
|
||||||
| `SPC x l d` | duplicate line or region (TODO) |
|
| `SPC x l d` | duplicate line or region (TODO) |
|
||||||
| `SPC x l s` | sort lines (TODO) |
|
| `SPC x l s` | sort lines (TODO) |
|
||||||
| `SPC x l u` | uniquify lines (TODO) |
|
| `SPC x l u` | uniquify lines (TODO) |
|
||||||
| `SPC x o` | use avy to select a link in the frame and open it (TODO) |
|
| `SPC x o` | use avy to select a link in the frame and open it (TODO) |
|
||||||
| `SPC x O` | use avy to select multiple links in the frame and open them (TODO) |
|
| `SPC x O` | use avy to select multiple links in the frame and open them (TODO) |
|
||||||
| `SPC x t c` | swap (transpose) the current character with the previous one |
|
| `SPC x t c` | swap (transpose) the current character with the previous one |
|
||||||
| `SPC x t w` | swap (transpose) the current word with the previous one |
|
| `SPC x t w` | swap (transpose) the current word with the previous one |
|
||||||
| `SPC x t l` | swap (transpose) the current line with the previous one |
|
| `SPC x t l` | swap (transpose) the current line with the previous one |
|
||||||
| `SPC x u` | set the selected text to lower case (TODO) |
|
| `SPC x u` | set the selected text to lower case (TODO) |
|
||||||
| `SPC x U` | set the selected text to upper case (TODO) |
|
| `SPC x U` | set the selected text to upper case (TODO) |
|
||||||
| `SPC x w c` | count the number of occurrences per word in the select region (TODO) |
|
| `SPC x w c` | count the number of occurrences per word in the select region (TODO) |
|
||||||
| `SPC x w d` | show dictionary entry of word from wordnik.com (TODO) |
|
| `SPC x w d` | show dictionary entry of word from wordnik.com (TODO) |
|
||||||
| `SPC x TAB` | indent or dedent a region rigidly (TODO) |
|
| `SPC x TAB` | indent or dedent a region rigidly (TODO) |
|
||||||
|
|
||||||
#### Text insertion commands
|
#### Text insertion commands
|
||||||
|
|
||||||
@ -1707,19 +1705,19 @@ The default color for iedit is `red`/`green` which is based on the current color
|
|||||||
|
|
||||||
Comments are handled by [nerdcommenter](https://github.com/scrooloose/nerdcommenter), it’s bound to the following keys.
|
Comments are handled by [nerdcommenter](https://github.com/scrooloose/nerdcommenter), it’s bound to the following keys.
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
| ----------- | ------------------------- |
|
| ----------- | -------------------------- |
|
||||||
| `SPC ;` | comment operator |
|
| `SPC ;` | comment operator |
|
||||||
| `SPC c h` | hide/show comments |
|
| `SPC c h` | hide/show comments |
|
||||||
| `SPC c l` | comment lines |
|
| `SPC c l` | comment lines |
|
||||||
| `SPC c L` | invert comment lines |
|
| `SPC c L` | invert comment lines |
|
||||||
| `SPC c p` | comment paragraphs |
|
| `SPC c p` | comment paragraphs |
|
||||||
| `SPC c P` | invert comment paragraphs |
|
| `SPC c P` | invert comment paragraphs |
|
||||||
| `SPC c s` | comment with pretty layout|
|
| `SPC c s` | comment with pretty layout |
|
||||||
| `SPC c t` | comment to line |
|
| `SPC c t` | comment to line |
|
||||||
| `SPC c T` | invert comment to line |
|
| `SPC c T` | invert comment to line |
|
||||||
| `SPC c y` | comment and yank |
|
| `SPC c y` | comment and yank |
|
||||||
| `SPC c Y` | invert comment and yank |
|
| `SPC c Y` | invert comment and yank |
|
||||||
|
|
||||||
**Tips:** `SPC ;` will start operator mode, in this mode, you can use motion command to comment lines.
|
**Tips:** `SPC ;` will start operator mode, in this mode, you can use motion command to comment lines.
|
||||||
For example, `SPC ; 4 j` will comment current line and the following 4 lines.
|
For example, `SPC ; 4 j` will comment current line and the following 4 lines.
|
||||||
@ -1766,7 +1764,7 @@ Custom sign symbol:
|
|||||||
| ------ | ----------- | --------------------------- |
|
| ------ | ----------- | --------------------------- |
|
||||||
| `✖` | Error | `g:spacevim_error_symbol` |
|
| `✖` | Error | `g:spacevim_error_symbol` |
|
||||||
| `➤` | warning | `g:spacevim_warning_symbol` |
|
| `➤` | warning | `g:spacevim_warning_symbol` |
|
||||||
| `🛈` | Info | `g:spacevim_info_symbol` |
|
| `🛈` | Info | `g:spacevim_info_symbol` |
|
||||||
|
|
||||||
### Managing projects
|
### Managing projects
|
||||||
|
|
||||||
|
@ -56,7 +56,6 @@ Enable/Disable wcwidth for detecting the length of a table cell, default is 0. T
|
|||||||
|
|
||||||
Bullet marker to use for list items (`'-'`, `'*'`, or `'+'`, default: `'-'`).
|
Bullet marker to use for list items (`'-'`, `'*'`, or `'+'`, default: `'-'`).
|
||||||
|
|
||||||
|
|
||||||
## Key bindings
|
## Key bindings
|
||||||
|
|
||||||
| Key | mode | description |
|
| Key | mode | description |
|
||||||
|
Loading…
Reference in New Issue
Block a user