On 02/01/09 11:30, anhnmncb wrote:
> Ping!

If you don't get a reply on this ML, the meaning usually is not that 
nobody saw the question, but rather that nobody knows the answer. Search 
the help first, then try to make your question clearer if the help 
doesn't give you an answer (in this case it does, see below).

>
> On 2008-12-31, anhnmncb wrote:
>> On 2008-12-31, anhnmncb wrote:
>>> Hi, list,
>>>
>>> when I type Chinese text in vim, I find it's unconvenient for completing
>>> Chinese word with C-p/n, because a Chinese word is not seperated by space 
>>> but
>>> some charactors like "and", "or" and others(I use English to reprent a 
>>> Chinese
>>> charactor), so a Chinese sententce will like this:
>>>
>>>      ThisIsAChineseWordInSentence.(This is a Chinese word in sentence.)
>>>
>>> When I have typed "ThisIsAChineseWordIn", now if I want to type Sen<C-p>  
>>> then
>>> vim can't complete word "Sentence" for me. So I think if iskeyword supports
>>> adding Chinese charactor to itself, for example(My client doesn't support
>>> Chinese, so I use "and" to represent a Chinese charactor):
>>>
>>>      set iskeyword+="and"
>> I meant set iskeyword-="and".
>>> then autocompletion will be without problem with Chinese. I don't know if it
>>> is easy to handle?
>> Also, it will let me can navigate quicker in a long Chinese sentence, now I
>> have to use /? or fFtT or some hjkls then input a Chinese charactor(sometimes
>> To input a Chinese charactor needs to type at least 3 english charactor).
>>
>>
>
>

For the meaning of its settings, ":help 'iskeyword'" resends to ":help 
'isfname'" where it is said:

>       Multi-byte characters 256 and above are always included, only the
>       characters up to 255 are specified with this option.
>       For UTF-8 the characters 0xa0 to 0xff are included as well.

IOW it is not possible to treat some hanzi as 'iskeyword' characters and 
others not. I think the above means that even the "ideographic 
full-width space" U+3000 is treated as a keyword character, OTOH I 
wouldn't affirm this without an experiment (maybe Vim with +multi_byte 
knows about the main divisions of the Unicode codepoint range).

Since I found no satisfactory way to use the IM (which _is_ installed on 
my system), I need at least 6 keystrokes to input any hanzi: for 
instance, for the simplest of them all, the digit one, δΈ€ yi1 U+4E00, I 
need (after getting into Insert mode) to press Ctrl-V u 4 e 0 0 -- or 
else, I can use copy-paste if I can find it ready-made in some document.


Best regards,
Tony.
-- 
Paradise is exactly like where you are right now ... only much, much
better.
                -- Laurie Anderson

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to