https://github.com/neoclide/coc-yank
Yank highlight and persist yank history support for vim
https://github.com/neoclide/coc-yank
neovim vim yark
Last synced: about 1 year ago
JSON representation
Yank highlight and persist yank history support for vim
- Host: GitHub
- URL: https://github.com/neoclide/coc-yank
- Owner: neoclide
- Created: 2019-02-11T17:53:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-18T16:02:59.000Z (about 1 year ago)
- Last Synced: 2025-04-19T13:39:03.051Z (about 1 year ago)
- Topics: neovim, vim, yark
- Language: TypeScript
- Homepage:
- Size: 136 KB
- Stars: 188
- Watchers: 4
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
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 y :CocList -A --normal yank
```
`-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