# coc-yank

> Yank extension for coc.nvim

Latest version **1.2.5** (published 2025-04-18) · MIT license · 61 weekly downloads

## Install

```sh
npm install coc-yank
pnpm add coc-yank
yarn add coc-yank
bun add coc-yank
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.5 |
| Published | 2025-04-18 |
| First published | 2019-02-11 |
| Weekly downloads | 61 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 188 |
| Author | chemzqm@gmail.com |
| Maintainers | chemzqm |
| Keywords | coc.nvim, yank, colors |

## Links

- npm: https://www.npmjs.com/package/coc-yank
- Repository: https://github.com/neoclide/coc-yank
- Homepage: https://github.com/neoclide/coc-yank#readme
- Issues: https://github.com/neoclide/coc-yank/issues
- npm.io page: https://npm.io/package/coc-yank

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [colour-proximity](https://npm.io/package/colour-proximity.md) — 49 weekly downloads

## Recent versions

- 1.2.5 (latest) — 2025-04-18
- 1.2.4 — 2025-03-06
- 1.2.3 — 2023-09-03
- 1.2.1 — 2022-02-15
- 1.2.0 — 2020-12-29
- 1.1.11 — 2020-11-13
- 1.1.10 — 2020-11-13
- 1.1.9 — 2020-11-11
- 1.1.8 — 2020-10-04
- 1.1.7 — 2020-09-27
- 1.1.6 — 2020-09-26
- 1.1.5 — 2020-09-17
- 1.1.4 — 2020-03-17
- 1.1.3 — 2019-11-23
- 1.1.2 — 2019-07-29
- … 6 more at https://npm.io/package/coc-yank/versions

## README

# coc-yank

Yank extension for [coc.nvim](https://github.com/neoclide/coc.nvim).

Note, make sure you have TextYankPost autocmd with your vim by
`:echo exists('##TextYankPost')`

## Install

In your vim/neovim, run command:

```
:CocInstall coc-yank
```

Setup keymap to open yank list like:

```
nnoremap <silent> <space>y  :<C-u>CocList -A --normal yank<cr>
```

`-A` means auto preview, and `--normal` means open list on normal mode.

## Features

- Highlight yanked text.
- Persist yank list across vim instances.

## Options

- `yank.highlight.enable` enable highlight feature, default: `true`.
- `yank.highlight.duration` duration of highlight in milliseconds, default: 500.
- `yank.list.maxsize` maxsize of yank list, default: 200
- `yank.enableCompletion`: Enable completion support for yanked text, default: `true`
- `yank.priority`: Priority of yank completion source, default: 90.
- `yank.limit`: Max completion item count from yank history.

## F.A.Q

Q: How to change highlight color?

A: Add `hi HighlightedyankRegion term=bold ctermbg=0 guibg=#13354A` to your
`.vimrc` after `:colorscheme` command.

Q: How to clear all yanks?

A: In vim, `:CocCommand yank.clean`

## License

MIT

---
_Source: https://npm.io/package/coc-yank · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
