99961Re: possible to make iskeyword supports multibyte charactor?
- Jan 2 6:32 AMor anyone can make developer know this?
On 1月2日, 下午10时29分, StarWing <weasley...@...> wrote:
> okay，i think Vim can developed to support word-table when ^n^p and
> fFtT, e.g:
> chinese.vim " this is a chinese word-table file:
> beginwordtable chinese <<EOF "this is a command
> this leisi
> an an
> apple aipo
> and ande
> other ade
> is yizi
> or wuwo
> " first col is word of chinese, second col is the word in pinyin
> (sound) or input-method.
> and we can set a option named "wordtable": set wordtable=chinese
> so, if i input: thisisanappleandother, Vim will know "this" is a word,
> and so as "is", "an", "apple", etc.
> and, if i want find an, i press "fa" or "fan", the cursor will goto
> "an", or "and", etc, i think it's no easy to make f operator to
> support multi-input(Vim don't know how many word will be input, so,
> vim can't transaction at once).
> can bram or anyone could implement it? and this function can conbime
> with the spell-check function of Vim.
> On 1月2日, 下午9时39分, Tony Mechelynck <antoine.mechely...@...>
> > 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
- << Previous post in topic Next post in topic >>