GitXplorerGitXplorer
M

windows-clipboard-history.vim

public
5 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
6f5a5b88928df5d22da8210fd7424dd24d002863

Merge pull request #1 from Milly/update

MMilly committed 6 months ago
Unverified
72def724df5877cb228d9cba071f0cb17e90d03d

chore: add test CI

MMilly committed 6 months ago
Unverified
71039c1754eff6510314239c0ab5dfc4c76b87c9

fix: check signal aborted

MMilly committed 6 months ago
Unverified
8c582ca0ed1ee221576473272c3a938cc247c8b6

chore: update dependencies

MMilly committed 6 months ago
Unverified
216891c187e0cf34a029ede7fd24e98bd1bae3af

chore: update dependencies

MMilly committed 8 months ago
Unverified
121f02ee7fad3c7ff05b00dded0f2fc8abac9a6b

refactor: use signal

MMilly committed 8 months ago

README

The README file for this repository.

windows-clipboard-history.vim

license:MIT Vim doc

Windows clipboard history source plugin for ddc.vim and ddu.vim.

  • Supports pasting of multiple lines.
  • ddc: Supports pasting in command line mode.
  • ddc: Supports control code highlighting. (Requires highlight capable UI)

Required

  • Windows 10 Version 1809 (October 2018 Update)
  • PowerShell 5.0 (Pre-installed)
  • denops.vim
  • Either or both of the following:

Windows Settings

Enable Clipboard History

(Option 1) Use Setting GUI

  1. Open the Start menu and click settings gear (⚙).
  2. Select the System tab to proceed.
  3. Scroll down on the left pane to select the Clipboard tab in the System menu.
  4. Turn on the switch of the Clipboard history.

(Option 2) Use Command Line

  1. Start Powershell as an administrator.
  2. Run the following command:
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1

Configuration

" ddc.vim
call ddc#custom#patch_global('sources', ['windows-clipboard-history'])
call ddc#custom#patch_global('sourceOptions', #{
      \ windows-clipboard-history: #{
      \   mark: 'Clip',
      \ }})
call ddc#custom#patch_global('sourceParms', #{
      \ windows-clipboard-history: #{
      \   maxAbbrWidth: 100,
      \ }})

" ddu.vim
call ddu#custom#patch_global('sources', [#{
      \ name: 'windows-clipboard-history',
      \ params: #{prefix: 'Clip:'},
      \}])