Dominique Pelle wrote:

> > John Little wrote:
> >
> >> On Feb 28, 6:53am, Kenneth Reid Beesley wrote:
> >>
> >>> But :help lCursor  returned no information.
> >>
> >> BTW, You could have tried
> >>
> >> :helpgrep lCursor
> >>
> >> Regards, John
> >
> > Yes, ":helpgrep lCursor" gives a few hints. But still,
> > lCursor deserves a tag I think to make ":help lCursor"
> > work. I did not know about lCursor until today, it's useful.
> >
> > I wonder whether this is a bug though:
> >
> > $ gvim -u NONE -U NONE
> >
> > :hi Cursor guibg=#ff0000      " red cursor
> > :hi lCursor guibg=#00ff00     " green cursor when keymap activated
> >
> > :set imcursor?
> > iminsert=2      " OK, expected
> >
> > :set keymap=esperanto  " or any other keymap
> > :set iminsert?
> > iminsert=1      " OK, expected
> >
> > :set keymap=
> > :set iminsert?
> > iminsert=1      " Hmmm, shouldn't this be back to 2???
> >
> > lCursor is nice so that cursor color changes aspect when a
> > keymap is being activated. But if I cancel the keymap with
> > ":set keymap=" then cursor remains in the same color
> > (green, lCursor) as if there was still a keymap activated.
> > It seems to me that the cursor should then become red
> > (Cursor). I can work around with ":set imcursor=2" which
> > puts back the cursor in red (Cursor).
> >
> > In ":help iminsert" I see:
> >
> >    Specifies whether :lmap or an Input Method (IM) is to be used in
> >    Insert mode. Valid values:
> >        0    :lmap is off and IM is off
> >        1    :lmap is ON and IM is off
> >        2    :lmap is off and IM is ON
> >
> > I'm using vim-7.2.127 (huge), GUI GTK2 on Linux x86.
> >
> > -- Dominique
> 
> 
> Attached patch fixes the problem I described in my previous
> email: it makes the cursor go back to normal color (Cursor
> instead of lCursor) when cancelling keymaps with ":set keymap=".
> 
> Please review it since I must admit I don't fully understand
> how 'iminsert' and 'imsearch' are supposed to work...

Does this have any real effect?  If 'iminsert' is set to use lmap's
(value is 1), but there are none, it works the same way as setting
'iminsert' off (value 0), right?

-- 
hundred-and-one symptoms of being an internet addict:
137. You decide to stay in college for an additional year or two,
     just so you can have the free Internet access.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Reply via email to