On Wed, May 10, 2006 at 05:08:43PM +0200, Bram Moolenaar wrote:
> 
> To be able to look into this I need an exact desciption of what you are
> doing.  Start with "vim -u NONE" to avoid any of your startup scripts.
> Since it depends on the text you enter, you need to mention that too.
> 

In the simplest case I start vim the following shell script.

   #!/bin/bash
   export GTK_IM_MODULE=scim XIM_PROGRAM="scim -d" [EMAIL PROTECTED] 
LC_CTYPE=en_US.UTF-8
   exec vim -g -U NONE -U ~/.gjprc "$@"

the content of .gjprc

   set guifont=Fixed\ 12
   colorscheme darkblue
   set guioptions-=T
   set keymap=russian-jcuken

I start with empty file.

Then add any text in russian or in english. Make modifications to it. Do
undo/redo. Everything works. Now I insert any text in Japanese. Leave
insert mode. After that add more text, leave insert mode, add more text,
leave insert mode (repeat couple times). Now hit "u". Everything
starting with japanese text disappears. The changes done before entering
Japanese text stay in tact. Hitting Ctrl-r restores everything.

Now I add more Japanese text at the end of the document. Again
english/russian after it. Hitting "u" removes everything to the moment
when first japanese was entered. Hit Ctrl-r to restore it.

Now, go in the middle of the text (between 2 of the japanese sentences)
and enter some japanese there. Now again add some text anywhere. Hit "u"
after that. I get the error E438 and after that any attempts to hit "u"
produce unexpected results :)

The text itself does not make any difference :)

HTH.

-- 
Minds, like parachutes, function best when open

Reply via email to