diff --git a/README.md b/README.md index 0cce21c..d7da241 100644 --- a/README.md +++ b/README.md @@ -30,10 +30,12 @@ Clipboard Utilities ------------------- - OSX - `pbcopy` and `pbpaste` - - Windows - `clip` and `paste` + - Windows - `clip` and `powershell.exe -NoLogo -NoProfile -Noninteractive -Command "Get-Clipboard"` - Linux - `xsel` - **Note:** `xsel` can be installed with `apt-get install xsel` if your system doesn't have it installed + **Note:** + Linux - `xsel` can be installed with `apt-get install xsel` if your system doesn't have it installed + Windows - Needs powershell to be present. Options ------- diff --git a/plugin/system_copy.vim b/plugin/system_copy.vim index 37aa9e4..6baf722 100644 --- a/plugin/system_copy.vim +++ b/plugin/system_copy.vim @@ -116,7 +116,7 @@ function! s:PasteCommandForCurrentOS() if os == s:mac return 'pbpaste' elseif os == s:windows - return 'paste' + return 'powershell.exe -NoLogo -NoProfile -Noninteractive -Command "Get-Clipboard"' elseif os == s:linux if !empty($WAYLAND_DISPLAY) return 'wl-paste -n'