coc-yank

1.2.5 • Public • Published

coc-yank

Yank extension for 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.543latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.543
1.2.41
1.2.33
1.2.11
1.2.01
1.1.110
1.1.100
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.40
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i coc-yank

Weekly Downloads

44

Version

1.2.5

License

MIT

Unpacked Size

39.4 kB

Total Files

4

Last publish

Collaborators

  • chemzqm