On Mon, 2007-12-10 at 14:22 +0100, Tobbe Lundberg wrote:
> It says in the cream faq that if you want cream expert mode to behave
> more like normal vim you can add the following to your cream-user.vim
> file:
>
> nmap <Esc> <Nop>
> set noinsertmode
>
> That does however not work like how I expected it to work. If you
> have that you can not go from insert mode to normal mode by pressing
> Esc. What happens is that when you press Esc while in insertmode
> "^L" gets printed to the active buffer. (It's the noinsertmode
> setting that causes this behaviour). "^L" also gets printed to the
> buffer when pressing Ctrl+L.
>
> According to an earlier post to the mailinglist you can put
>
> inoremap <silent> <C-L> <C-\><C-n>
>
> in your cream-user.vim file to fix the Ctrl+L behavior. It seems to
> work, so I added this as well to my cream-user
>
> inoremap <Esc> <C-L> <C-\><C-n>
>
> and that seems to work as well.
>
> So now my question is this:
> What does those commands do? And, Why aren't they in the faq?

I think you've actually uncovered a small bug in expert mode. In fact,
<C-\><C-n> is a better mapping than <C-l> anyway, since it simply
avoids the &insertmode problem. Try making this substitution in your
cream-expertmode.vim and see if the original FAQ suggestions then work
ok. (Work for me.)

If it checks out for you, I'll make this official, fixing the
instances in cream-lib and cream-keys as well.


-- 
Steve Hall  [ digitect dancingpaper com ]
:: Cream... usability for Vim
::   http://cream.sourceforge.net



-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to