ashersyed / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Copy/Paste not working with MacVim and ConqueTerm #506

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installing binary for MacVim ( latest one )
2. Installing conque using the tar ball (http://code.google.com/p/conque )
3. Running :ConqueTerm bash
4. Copy a command from a browser using Cmd-c ( ex : git clone .... )
5. Paste in Conque using Cmd-v 

What is the expected output? What do you see instead?
I expect to see the command pasted with the cursor at the end of the command 
waiting for me to hit ENTER and execute the command.
Instead :
The output is the command successfully pasted. The cursor comes back to the 
beginning of the command right next to the prompt. The shell is behaving like 
nothing happened but the text is still visible. By pressing Up arrow, I can see 
the latest command executed. 

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
Custom Version 7.4 (73)

Note that it is working fine in vim terminal.

Original issue reported on code.google.com by Merzou...@gmail.com on 30 Jun 2014 at 6:14

GoogleCodeExporter commented 9 years ago
I believe that clipboard integration with Mac OS may simply be broken in OS X 
since at least release 10.9.4. I can't copy nor paste into or out of macvim 
(build 73) now.

Original comment by m...@tyderia.net on 15 Jul 2014 at 1:01

GoogleCodeExporter commented 9 years ago
I can copy and past in a macvim buffer. But not in conque. I mean the behavior 
is different, I can copy and paste but when I hit enter nothing happens, like 
no command has been read. I can still see the line I copied. If I paste a line 
in conque I can actually overwrite the line by typing on the keyboard. It will 
overlay all the letters.

Original comment by Merzou...@gmail.com on 15 Jul 2014 at 1:05

GoogleCodeExporter commented 9 years ago
Update: for me adding "set clipboard=unnamed" seems to help. I never had to to 
mess with that param before though.

With that param set, Conque in a split seems to accept pastes ok for me. I 
tested pastes from firefox, from within another split in macvim, and from 
another vim running inside tmux (with the reattach-user-namespace utility for 
tmux).

Original comment by m...@tyderia.net on 16 Jul 2014 at 2:46

GoogleCodeExporter commented 9 years ago
Hello !
Can you explain in what it helps for you ? Were you experiencing the same issue 
as me before setting this ?
I set this value in my vimrc and still experiencing the same issue, I can copy 
and paste byt Conque doesn't take the paste string into account ( not executing 
it when pressing enter ) and instead consider nothing has been typed. It is 
much like just a visual thing, I can see it, read it but the cursor is on the 
beginning of the command line ( which happens to be the first letter of the 
string I paste ). It looks like this :

bash-3.2$ |git clone repository

Where the line has been copied /paste with Cmd-c Cmd-v. and the vertical bar is 
the cursor. Pressing enter consider nothing has been typed. I can actually 
write on top of the string like this :

bash-3.2$ cdt| clone repository

When I just 'cd' on top of my pasted string

Original comment by Merzou...@gmail.com on 16 Jul 2014 at 2:55