Milly / windows-clipboard-history.vim

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:'},
      \}])

About

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

License:MIT License


Languages

Language:TypeScript 86.2%Language:PowerShell 13.8%