I installed vim on Windows 10 with chocolatey. Copy and Paste don't work when I invoke vim in powershell. I expect them to work as long as I'm in insert mode. How can I make copy and paste work?

1 Answer 1


https://n3wjack.net/2014/08/25/setting-up-vim-on-windows/ has the answers.

Open vim and type the following:

:edit $MYVIMRC

This will edit your .vimrc file wherever it might live. (On my system, it was in c:\Users\<my_username>\.vimrc, but you might have weird configuration issues, so just let vim find the file for you.

Then, copy+paste the following into the file:

source $VIMRUNTIME/mswin.vim

behave mswin

Then save the file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.