GitXplorerGitXplorer
M

windows-clipboard-history.vim

public
5 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
4ea5d9ef62e2711d56e147ef02d999f695d0473b

chore: update dependencies

MMilly committed 2 years ago
Unverified
dd516eebf067a361b9594de54ad95c6a898bd1ca

refactor: use `Deno.Command` instead `Deno.run`

MMilly committed 2 years ago
Unverified
558815bb11a5aba8e9b7f21fc3ce41e4f18d2e01

doc: add tag

MMilly committed 2 years ago
Unverified
1e0b3bd6a52bb9c44ab2dba8bb8c30037fd87fb5

doc: add command-line setting method

MMilly committed 2 years ago
Unverified
93cb9d2a447aec8556e895b461331df75b84df8a

chore: update dependencies

MMilly committed 2 years ago
Unverified
3516fd24ba4c6551b0f252c39d80a5f56d59414d

chore: update dependencies

MMilly committed 2 years 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:'},
      \}])