Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to copy strings into system's clipboard on n900 (maemo)?

Received: by 10.101.136.24 with SMTP id o24mr2744562ann.45.1321009156231;
        Fri, 11 Nov 2011 02:59:16 -0800 (PST)
X-BeenThere: vim_use@googlegroups.com
Received: by 10.101.182.17 with SMTP id j17ls2243426anp.6.gmail; Fri, 11 Nov
 2011 02:59:07 -0800 (PST)
Received: by 10.236.175.225 with SMTP id z61mr9547435yhl.9.1321009147140;
        Fri, 11 Nov 2011 02:59:07 -0800 (PST)
Received: by 10.236.175.225 with SMTP id z61mr9547434yhl.9.1321009147130;
        Fri, 11 Nov 2011 02:59:07 -0800 (PST)
Return-Path: <vano...@gmail.com>
Received: from mail-gx0-f171.google.com (mail-gx0-f171.google.com [209.85.161.171])
        by gmr-mx.google.com with ESMTPS id a27si3590713yhi.2.2011.11.11.02.59.07
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 11 Nov 2011 02:59:07 -0800 (PST)
Received-SPF: pass (google.com: domain of vano...@gmail.com designates 209.85.161.171 as permitted sender) client-ip=209.85.161.171;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vano...@gmail.com designates 209.85.161.171 as permitted sender) smtp.mail=vano...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by ggnr5 with SMTP id r5so5716008ggn.30
        for <vim_use@googlegroups.com>; Fri, 11 Nov 2011 02:59:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=content-type:to:subject:date:mime-version:content-transfer-encoding
         :from:organization:message-id:user-agent;
        bh=TUEbAxpIutUmbzGFybwmVLsh/sDRoguWVtqGYdsm/vE=;
        b=d5Thz8+ZKW4veZY+XqHiuBR1PRYu7UEYPWmiELi5SDvQ6qjL3e6ckCMphVYOxEVZyU
         M6QHN7QrSKbLX50aSGhGwEMC/nHEXsiGB5NiNYeC6WCo5K2+bAdt9o5s5xLSF+8YB9Yt
         iGWAipvkY0Irv1HmP6P27Ymmd1QE80wyF65Ys=
Received: by 10.68.12.105 with SMTP id x9mr23292246pbb.109.1321009146744;
        Fri, 11 Nov 2011 02:59:06 -0800 (PST)
Return-Path: <vano...@gmail.com>
Received: from ywuw2k ([221.226.175.138])
        by mx.google.com with ESMTPS id d8sm29204364pbb.6.2011.11.11.02.58.07
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 11 Nov 2011 02:59:06 -0800 (PST)
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: vim_use <vim_use@googlegroups.com>
Subject: Re: How to copy strings into system's clipboard on n900 (maemo)?
Date: Fri, 11 Nov 2011 18:56:06 +0800
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Yue Wu" <vano...@gmail.com>
Organization: China Pharmaceutical University
Message-ID: <op.v4r3bsfixg2sb1@ywuw2k>
User-Agent: Opera Mail/11.52 (Win32)

On Fri, 11 Nov 2011 17:54:02 +0800, Tony Mechelynck  
<antoine.mechely...@gmail.com> wrote:

> On 11/11/11 09:31, Yue Wu wrote:
>> On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz <fritzophre...@gmail.com>
>> wrote:
>>
>>>
>>>
>>> On Nov 10, 8:21 am, "Yue Wu" <vano...@gmail.com> wrote:
>>>> Hello list,
>>>>
>>>> Sorry I've posted a same mail on vim_dev then I realized that I've
>>>> posted
>>>> in a wrong mailing list.
>>>>
>>>> My question is more specific for n900, but I don't know where to get
>>>> help,
>>>> so I try to seek it here ;p
>>>>
>>>> vim works fine on n900's port, except it doesn't support 'autochdir',
>>>> I'm
>>>> very curious about it.
>>>>
>>>
>>> What's not supported about it? It's there but doesn't work? Or it's
>>> not there at all?
>>>
>>>> The big question is that, I don't know how to copy strings in system's
>>>> clipboard, register * and + doesn't work even vim has compiled to
>>>> support
>>>> the feature. In normal way, I can make a selection then click xterm's
>>>> menu
>>>> then choise copy, but it's too slow. So my question is that if it
>>>> possible
>>>> to copy strings directly by vim?
>>>>
>>>
>>> I don't know, I am pretty sure if your Vim is compiled for it, it
>>> should work. But then, I don't know what n900 refers to. Maybe you
>>> need an X server running.
>>>
>>> You can try some of the suggestions (especially in the comments) here:
>>>
>>> http://vim.wikia.com/wiki/Clipboard
>>>
>>
>> After testing again, I find that, register + works fine for English
>> charactors, but Chinese charactors couldn't be copied at all, after
>> copied from vim, all Chinese charactors were disappeared.
>>
>
> Strange. I'm tempted to say that it sounds like there's something wrong  
> with the Maemo clipboard but I don't know that system well enough. What  
> is your system locale (what does Vim answer to the :lang command with no  
> arguments)? Is it possible to set it (before starting Vim) to some  
> Unicode locale, similar to the en_US.UTF-8 which I use on my desktop  
> Linux system? Maybe zh_CN.UTF-8 for Simplified Chinese or zh_TW.UTF-8  
> for Traditional Chinese? And of course have Vim compiled with  
> +multi_byte and run it with 'encoding' set to utf-8, see  
> http://vim.wikia.com/wiki/Working_with_Unicode

Actually, I've noticed this issue on freebsd for a long time too, vim  
can't copy Chinese correctly on xterm to other external GUI apps except  
xterm itself, I have to use xterm's mechanism for copying. Locale on both  
os(maemo and FreeBSD) are en_US.UTF-8, vim's option 'encoding' is set to  
utf-8 too.

I've reported the issue [1] before, don't know if the issue is related to  
vim or other apps.

>
>
> Best regards,
> Tony.

1.  
http://groups.google.com/group/vim_dev/browse_thread/thread/48d5d86f2b1f6805/d2420f61cea6a691?#d2420f61cea6a691

-- 
Regards,
Yue Wu

State Key laboratory of Natural Products and Functions
Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China