A little more work and I have a basically functioning version of Cream
running. The modifications to get the delete key to work are below,
together with a list of limitations of normal Cream behavior:
Modified:
cream-keys.vim
" Find and Replace {{{1
"imap <silent> <C-f> <C-o>:call Cream_find()<CR>
"imap <silent> <C-h> <C-o>:call Cream_replace()<CR>
" Note: Avoid calling wrapper functions, it breaks the dialog's
" multi-modal behavior.
" *** Modifications from here ***
" Remapping <C-h> on the mac means that the backspace key stops working
" in addition, the proptfind and proptrepl functions are not implemented
" in the mac version of vim. In gvim on OS X the usual OS keymappings are
" defined in macmap.vim and Command - f <D-f> is a mapping for / in
" normal mode. So I have just sourced the macmap file as a quick fix.
if !has("mac")
imap <silent> <C-f> <C-o>:promptfind<CR>
imap <silent> <C-h> <C-o>:promptrepl<CR>
else
" Include the normal mac key mappings (may be better placed elsewhere)
" but for convenience it is here for the time being...
source $VIMRUNTIME/macmap.vim
endif
*** Changes from normal Cream behaviour
<C-h> does not perform replace
<C-f> does not perform find, but <D-f> now does.
On 05/01/2008, Steve Hall <[EMAIL PROTECTED]> wrote:
> From: "Vance Briggs" <vance axxe co.uk>, Fri, January 04, 2008 6:13 pm
> >
> > I have now managed to get Cream to run on OS X with a few minor tweaks:
> >
> > Stopped the following functions from running:
> >
> > cream-server.vim - Cream_singleserver_init()
> > cream-server.vim - Cream_singleserver()
> >
> > by inserting near the top of each function:
> >
> > if has("mac")
> > return
> > endif
>
> That's good to know, I'll add it to the default. But somebody please
> remember to remind me when this gets fixed! :)
>
> > I also fixed the startup error that was complaining about a
> > nonexistant variable (g:CREAM_AUTOWRAP_WIDTH).
> [...]
> >
> > I can now start cream from the command line using the following:
> >
> > /Applications/Vim.app/Contents/MacOS/Vim -g -U NONE -u
> > "\$VIMRUNTIME/cream/creamrc"
> >
> > and I get something resembling Cream ;-)
>
> Great!
>
> > There is still more to sort out as the backspace key doesn't work as
> > it should in insert mode, although it does in gvim...
> >
> > In addition, Cream runs pretty slowly compared to gvim, especially
> > when switching buffers.
> >
> > But at least I have some progress...
>
> Progress, indeed. Please keep us posted on your discoveries, I'll be
> glad to update Cream to include Mac specializations on your advice.
>
>
>
> --
> 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 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general