Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
101 user(s) are online (59 user(s) are browsing Forums)

Members: 1
Guests: 100

joerg, more...

Headlines

 
  Register To Post  

(1) 2 3 4 ... 7 »
VIM the editor
Just can't stay away
Just can't stay away


See User information
Hi

i was looking for a free text editor for my pc and i remind myself about vim the editor . When clicking on the download section of the vim site i discovered that already exist an amiga version but unfortunatly this one was outdated. The PC version is dated 2010-08-15 while the amiga version is dated 30 Jul 07. On os4depot there is also another amiga version but it requires the server X11. Is it possible to update the existing native version for the new Amiga OS 4.1 Update 2?

VIM the Editor:

http://www.vim.org/download.php

Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
There are 2 versions, one require AmiCygnix but the other one should be native:

Did you check this ?

http://os4depot.net/index.php?functio ... ity/text/edit/vim-bin.lha

Go to top
Re: VIM the editor
Not too shy to talk
Not too shy to talk


See User information
Quote:

There are 2 versions, one require AmiCygnix but the other one should be native:

Did you check this ?

http://os4depot.net/index.php?functio ... ity/text/edit/vim-bin.lha

that one works natively, although within a shell. if you're looking for VIM with fancy GTK or QT bindings, i.e., a graphic interface, then no, we don't have one save GVIM for amicygnix.

but the OS4-native VIM 7.1 binary works quite well. i use it all the time.

-- eliyahu

Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
Does anyone tried to compile the MUI version of VIM 8 to OS4 ?

https://sourceforge.net/projects/spaden/files/

Actually there is a MorphOS and an AROS version too, some OS4 code seems present aswell but no binary yet ..

Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@samo79
Yeah, that anyone who trying to port mui stuff to os4 it me :) Year ago i tried to port it, all compiles, binary done, then crashes in some place. I was about to fix it, but then other deals take my time.

Incedially i think about fixing it yesterday :)

I also was in contact with current mantainer of it, and he was very positive if i will make necessary os4 changes and share them on SF.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@kas1e

Quote:
Yeah, that anyone who trying to port mui stuff to os4 it me :)


I know, my question was rethoric )

Quote:
Incedially i think about fixing it yesterday :)




That one is really good stuff that worth to port ...

Go to top
Re: VIM the editor
Just can't stay away
Just can't stay away


See User information
@samo79

A fresh Vim would be really nice! OS4depot version is getting older each day.

Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@Capehill

And not only that, this version would be even more "native" as it use MUI

Go to top
Re: VIM the editor
Not too shy to talk
Not too shy to talk


See User information
Yeah, it would be nice to have a MUI version of VIM,
VIM it's my editor of choice

Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@All
In case anyone interested: i give it another go, and was able to build latest version of that vim-with-mui from Ola Söder : all compiles, binary done, it starts, have menu, the bar working, all fine, just the whole rendering missed by some reassons. There are screenshot:

(click on image for fullsize)

Resized Image

I had to adapt gui_mui.c a bit to make it compiles for os4, like this:

#ifdef __amigaos4__
    
#include <dos/obsolete.h>

#include "aos4funcs_api.h"

typedef unsigned long IPTR;

struct Library            *MUIMasterBase    NULL;
struct MUIMasterIFace    *IMUIMaster        NULL

struct Library            *CyberGfxBase    NULL;
struct CyberGfxIFace    *ICyberGfx        NULL

#define RPTAG_FgColor RPTAG_APenColor
#define RPTAG_BgColor RPTAG_BPenColor
#define RPTAG_PenMode TAG_IGNORE

#define KPrintF DebugPrintF

#endif


And open on init stage muimaster and cybergraphics of course.

And fix marcoses this way (to avoid redefine of DoSuperNew to DoSuperNewTags):

#ifdef __MORPHOS__

# define DISPATCH_GATE(C) &C ## Gate

# define DISPATCH_ARGS void

# define DISPATCH_HEAD \
  
Class *cls = (Class *) REG_A0\
  Object 
*obj = (Object *) REG_A2\
  Msg msg 
= (MsgREG_A1
  
# define CLASS_DEF(C) \
  
static IPTR C ## Dispatch (void); \
  
static struct MUI_CustomClass ## Class; \
  
const struct EmulLibEntry C ## Gate = \
  
TRAP_LIB0, (void (*) (void)) ## Dispatch }; \
  
struct C ## Data
  
#elif __amigaos4__
 
# define DISPATCH_HEAD
# define DISPATCH_ARGS Class *cls, Object *obj, Msg msg
# define DISPATCH_GATE(C) C ## Dispatch
# define CLASS_DEF(C) \
  
struct MUI_CustomClass ## Class; \
  
struct C ## Data


#else
    
# define DoSuperNew(C,O,...) DoSuperNewTags(C,O,NULL,__VA_ARGS__)
# define DISPATCH_HEAD
# define DISPATCH_ARGS Class *cls, Object *obj, Msg msg
# define DISPATCH_GATE(C) C ## Dispatch
# define CLASS_DEF(C) \
  
struct MUI_CustomClass ## Class; \
  
struct C ## Data
  
  
#endif
#define DISPATCH(C) static IPTR C ## Dispatch (DISPATCH_ARGS)
#define CLASS_DATA(C) C ## Data
#define TAGBASE_sTx (TAG_USER | 27<<16)
#define MUIDSP static inline __attribute__((always_inline))


But that macro stuff mostly about mui which is workking, dunno why rendering may fail .. Dunno if it those RPTAG_ things, but at least for all other ports i use it like this and all works.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: VIM the editor
Just popping in
Just popping in


See User information
@kas1e

Vim (gVim, vim/putty or MacVim) is my favorite dev editor, it would be very useful for os4. I'll keep "fingers crossed" for you.

micro Amiga One/AmigaOS 4.1+ES
https://amiganews.exec.pl/
Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@all
Making some tests today, and seems issue with rendering related to those RPATAGs, pens, SetRPAttr, JAM1/JAM2 and all this with cybergraphics emulation.

For sake of tests i just replace

#define RPTAG_FgColor RPTAG_APenColor
#define RPTAG_BgColor RPTAG_BPenColor

with

#define RPTAG_FgColor 0x11223344
#define RPTAG_BgColor 0x55667788

And then rendering start to looks like this (click on image for fullsize):

Resized Image

See yellow letters can be visibly now.

But funny thing is , that actually values does not matter. Any other values i put there, its always yellow letters on that grey background which i can't change not by mui settings in any component (that expected, as mui there only give a window to which draw), and not by prefs:GUI thing.

And only when i use it as :

#define RPTAG_FgColor RPTAG_APenColor
#define RPTAG_BgColor RPTAG_BPenColor


Then i see no rendering of characters at all as in previous screenshot.

Have anyone any ideas ? Relevant source code file there:
https://sourceforge.net/p/spaden/code/ ... trunk/files/src/gui_mui.c

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: VIM the editor
Just popping in
Just popping in


See User information
@kas1e

You should be sure that the alpha value of the color for RPTAG_APenColor/RPTAG_BPenColor is set correctly. (0xAARRGGBB)
Differently than described in the documentations, the alpha value is used e.g. in text rendering.



Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@Goos
Do you mean it works differently on aos4 that on os3 and on aros/morphos ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: VIM the editor
Just can't stay away
Just can't stay away


See User information
@kas1e

Yes it does work differently, try using:

#define RPTAG_FgColor 0xFF223344
#define RPTAG_BgColor 0xFF667788

To remove the alpha channel transparancy.

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: VIM the editor
Just popping in
Just popping in


See User information
@kas1e

i mean RPTAG_FgColor works different as RPTAG_APenColor
RPTAG_FgColor expects RGB and RPTAG_APenColor ARGB

so my tip is:
define
#define RPTAG_FgColor RPTAG_APenColor
#define RPTAG_BgColor RPTAG_BPenColor

as you did.
and in gui_mui.c file in VimConSetFgColor and VimConSetBgColor

tags[0].ti_Data = msg->Color|0xFF000000;

to remove the 100% transparency

Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@Goos
Wow ! That tags[0].ti_Data = msg->Color|0xFF000000; did the trick ! Check this out (click on images for fullsize):

Resized Image

Resized Image

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@Goos

Quote:

Differently than described in the documentations, the alpha value is used e.g. in text rendering.


This is now true (I think it was fixed / added as part of MUI 4 developement) but even if it weren't the doc clearly says.

Quote:

and should be set to 0xFF.




Go to top
Re: VIM the editor
Just popping in
Just popping in


See User information
@kas1e

Looking awesome!

Go to top
Re: VIM the editor
Home away from home
Home away from home


See User information
@all
Made a video to show how it all looks like and how it works (1920x0180, HD): https://youtu.be/UBOuVuGUTZ0

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post
(1) 2 3 4 ... 7 »

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project