1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:20:06 +08:00

docs(documentation): update doc for key binding Leader y/Y

This commit is contained in:
Shidong Wang 2021-10-15 00:43:52 +08:00
parent 5f4b679832
commit eae76b845b
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 5 additions and 5 deletions

View File

@ -1090,10 +1090,10 @@ call SpaceVim#custom#SPC('nnoremap', ['f', 't'], 'echom "hello world"', 'test cu
| 快捷键 | 功能描述 |
| ------------ | -------------------------------- |
| `<Leader> y` | 复制文本至系统剪切板 |
| `<Leader> y` | 复制已选中的文本至系统剪切板 |
| `<Leader> p` | 粘贴系统剪切板文字至当前位置之后 |
| `<Leader> P` | 粘贴系统剪切板文字至当前位置之前 |
| `<Leader> Y` | 复制文本至 pastebin |
| `<Leader> Y` | 复制已选中的文本至 pastebin |
快捷键 `<Leader> Y` 将把选中的文本复制到 pastebin 服务器,并且将返回的链接复制到系统剪切板。
使用该功能,需要系统里有 `curl` 可执行程序Windows 系统下Neovim 自带 `curl`)。

View File

@ -866,7 +866,7 @@ Navigation is centered on the `hjkl` keys with the hope of providing a fast navi
| `<Down>` / `j` | select next file or directory |
| `<Up>` / `k` | select previous file or directory |
| `<Right>` / `l` | open selected file or expand directory |
| `<Enter>` | open file or switch to directory |
| `<Enter>` | open file or switch to directory |
| `N` | Create new file under cursor |
| `r` | Rename the file under cursor |
| `d` | Delete the file under cursor |
@ -1176,10 +1176,10 @@ Read `:h registers` for more info about other registers.
| Key | Descriptions |
| ------------ | -------------------------------------------- |
| `<Leader> y` | Copy text to system clipboard |
| `<Leader> y` | Copy selected text to system clipboard |
| `<Leader> p` | Paste text from system clipboard after here |
| `<Leader> P` | Paste text from system clipboard before here |
| `<Leader> Y` | Copy text to pastebin |
| `<Leader> Y` | Copy selected text to pastebin |
The `<Leader> Y` key binding will copy selected text to a pastebin server. It requires `curl` in your `$PATH`.
The default command is: