School of Physics, Mathematics, and Computing 
Not logged in (login)
help4407

This forum is provided to promote discussion amongst students enrolled in CITS4407 Open Source Tools and Scripting.

Before posting a question here, you might want to search the forum for previous posts asking the same question.
And please keep the discussion civil (as required by UWA's Computer Use Policy, #9).
 

Options:
RSS cloud
Jump to:

Pasting from windows clipboard into Vim

1 of 108 articles shown, currently no other people reading this forum.
photo
From: Arran S.
Date: Fri 26th Mar 2021, 2:13pm
Actions: 
Login-to-reply

Hi Tze,

Unfortunately terminals in Windows don't behave exactly the way they do in Linux.

Two more things you might want to try:

1. You could try copying and pasting with keystrokes instead of the mouse. You have to 
specify that you want to allow copy and paste into Ubuntu terminals use ctrl-shift-c (and 
-v) -- these are the standard copy and paste keys used on Ubuntu. (NOT ctrl-c, which 
kills processes.)

Right-click on the Ubuntu icon and go to Properties, and check "Use Ctrl+Shift+C/V as 
Copy/Paste".

2. You could try using different terminal software - there's a much better terminal than 
the default one; the improved one is called (confusingly) Windows Terminal. See here: 
https://www.microsoft.com/en-au/p/windows-terminal/9n0dx20hk701?
activetab=pivot:overviewtab

See if either of those two helps.

cheers

Arran


"Tze Kwok" <23*6*8*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> Hello,
> 
> Is there an option to allow vim to paste text from an external clipboard from 
> Windows?  
> 
> I've tried, in both insert and command mode, using the middle mouse button (which 
> inserts "d", which I assume is my internal clipboard since p does the same thing), 
> shift+middle mouse button (does nothing),ctrl+shift+v (inserts either ^ or V).
> 
> I've tried editing a .vimrc file to include set mouse=ar and the above still 
> doesn't work.
> 
> Thanks.

Related articles

Pasting from windows clipboard into Vim (all 6) RSS
├─ original   Mon 22nd Mar 2021, 4:19pm, Tze K.
├─ reply 1 👍 Mon 22nd Mar 2021, 7:31pm, Ramen C.
├─ reply 2   Mon 22nd Mar 2021, 8:30pm, Patrick SL.
├─ reply 3   Mon 22nd Mar 2021, 8:51pm, Tze K.  O.P.
├─ THIS   Fri 26th Mar 2021, 2:13pm, Arran S.
└─ reply 5   Fri 26th Mar 2021, 8:19pm, Tze K.  O.P.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  4:54pm Oct 24 2021