Re: [cream] Status Report on Mac Support for Cream
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@da...> - 2015-08-11 13:48:55
|
On Tue, Aug 11, 2015 at 7:15 AM, Erik Zoltan <eri...@gm...> wrote: > To summarize, I haven't been able to get it to run. Therefore I am > suggesting two solutions below. > > The Mac port of gvim was withdrawn at some point in the past. MacVim > is typically used. MacVim is a fully functional version of gvim. It > has the added benefit of being compatible with the Mac clipboard, > fully supporting the Mac App functionality, and looking truly lovely > on a Retina display. > > Unfortunately MacVim does not accept the normal gvim startup > arguments. It is normally launched as a graphical app within Mac OS > X. You can pass startup arguments to it with the mac-unix open > command, however MacVim is either not expecting them, or is missing > some extra step to support them. > > ***This prevents Cream from running on a Mac.*** > > Two separate but complementary things can be done to address this > issue. > > 1. (Out of scope for the Cream project — in scope for the MacVim > project). Someone can fix MacVim to accept command line > arguments, and hopefully make a “gvim” script alias that will > pass that information along to MacVim. > > 2. (In scope for Cream) Someone can produce a patch to the vim > scripts that causes Cream to be used without any gvim command > line arguments. This would consist of hard-coding the information > that the cream startup command normally passes along to gvim. It > would prevent gvim from being used without Cream, so it should be > done in a way that makes it easy for someone to go in and disable > it, by commenting out a single line for example. Especially if > MacVim has further incompatibilities. > > If someone knows of a way to patch the vim scripts as mentioned in > item 2 above, then I would be excited to try it out. Has anyone done > that before? Thanks for this report. Cream uses only three command line arguments: 1. -u to force the vimrc name 2. -U to prevent a gvimrc (NONE) 3. --servername to force the server name to "CREAM" These would not be necessary with the following tiny adjustments: 1. The creamrc is renamed vimrc and located at the default Vim location so that gVim automatically finds and uses it 2. No gvimrc is installed 3. The CREAM server name is changed back to GVIM in cream-server.vim (four spots, beginning about line 203). With just these changes, MacVim should function as Cream. Can you test? -- Steve Hall [ digitect dancingpaper com ] Cream for Vim http://cream.SourceForge.net SteveHallArchitecture http://SteveHallArchitecture.com |