Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
60 user(s) are online (48 user(s) are browsing Forums)

Members: 1
Guests: 59

orgin, more...
Support us!
Recent OS4 Files
OS4Depot.net



(1) 2 3 4 5 »


VIM the editor
Just can't stay away
Joined:
2006/11/24 17:54
From Sanremo
Posts: 1807
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

   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2006/12/2 3:55
From Italy, Perugia
Posts: 3140
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

   Report Go to top

Re: VIM the editor
Not too shy to talk
Joined:
2010/6/17 14:04
From Waterbury, Connecticut (USA)
Posts: 256
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

   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2006/12/2 3:55
From Italy, Perugia
Posts: 3140
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 ..

   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5389
@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!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2006/12/2 3:55
From Italy, Perugia
Posts: 3140
@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 ...

   Report Go to top

Re: VIM the editor
Quite a regular
Joined:
2007/7/14 20:30
From Lothric
Posts: 749
@samo79

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

   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2006/12/2 3:55
From Italy, Perugia
Posts: 3140
@Capehill

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

   Report Go to top

Re: VIM the editor
Not too shy to talk
Joined:
2006/12/5 22:11
From Lecco, Italy
Posts: 302
Yeah, it would be nice to have a MUI version of VIM,
VIM it's my editor of choice

   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5389
@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!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: VIM the editor
Just popping in
Joined:
2006/11/27 19:41
From Poland
Posts: 63
@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
   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5389
@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!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: VIM the editor
Just popping in
Joined:
2009/9/19 20:02
Posts: 22
@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.



_________________
EntwicklerX
   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5389
@Goos
Do you mean it works differently on aos4 that on os3 and on aros/morphos ?

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: VIM the editor
Just can't stay away
Joined:
2006/11/24 18:52
From Gloucestershire, UK.
Posts: 1167
@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>
   Report Go to top

Re: VIM the editor
Just popping in
Joined:
2009/9/19 20:02
Posts: 22
@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

_________________
EntwicklerX
   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5389
@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!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2006/12/4 23:15
Posts: 2132
@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.




_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: VIM the editor
Just popping in
Joined:
2006/12/5 2:30
From Vancouver, Canada
Posts: 191
@kas1e

Looking awesome!

   Report Go to top

Re: VIM the editor
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5389
@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!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top


(1) 2 3 4 5 »



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project