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)
- Windows 10 Version 1809 (October 2018 Update)
- PowerShell 5.0 (Pre-installed)
- denops.vim
- Either or both of the following:
- Open the Start menu and click settings gear (⚙).
- Select the System tab to proceed.
- Scroll down on the left pane to select the Clipboard tab in the System menu.
- Turn on the switch of the Clipboard history.
- Start Powershell as an administrator.
- Run the following command:
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1
" 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:'},
\}])