14 May 2008 01:45
Re: pasting with Cream Lite or remapped escape
On Tue, 2008-05-13 at 12:10 -0500, Gherald wrote:
>
> If I enable settings->preferences->behavior->Cream Lite
>
> OR alternatively in cream-user , do what the FAQ says:
>
> nmap <Esc> <Nop>
> set noinsertmode
>
> Then when I try Edit->Paste, I just get this text inserted
> literally: (where the ^B is what you'd get by inserting with the
> escape ^V^B)
>
> ^B:call Cream_paste("i")
>
> I assume this is because of the remapped escape, because without
> that the function is called and pastes text as expected
>
> Is there a way for basic menu commands like paste to work along with
> vim keys?
Try this. In the file cream-behavior.vim, in function
Cream_behave_creamlite(), there is a set of lines:
" mappings, clear
imapclear
vmapclear
"nmapclear
"omapclear
Put these two immediately following:
" now put back Ctrl+B remap so menu items work
inoremap <C-b> <C-o>
That should re-enable all the menus for Cream Lite mode (if you are
insert or visual mode!). And since our Cream trap door Ctrl+B is not a
default keystroke in Vim's insert mode (see :help i_Ctrl-B), this
should not present a conflict for those trying to learn regular Vim.
Does that help?
--
--
Steve Hall [ digitect dancingpaper com ]
:: Cream... usability for Vim
:: http://cream.sourceforge.net
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
RSS Feed