|
VIM the editor |
Posted on: 2011/4/7 21:16
#1 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/24 17:54 From Sanremo
Posts: 1809
|
Hi
![]() i was looking for a free text editor for my pc and i remind myself about vim the editor ![]() VIM the Editor: http://www.vim.org/download.php |
|
|
Re: VIM the editor |
Posted on: 2011/4/7 21:34
#2 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/2 3:55 From Italy, Perugia
Posts: 3146
|
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 |
|
|
Re: VIM the editor |
Posted on: 2011/4/7 21:57
#3 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2010/6/17 14:04 From Waterbury, Connecticut (USA)
Posts: 259
|
Quote:
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 |
|
|
Re: VIM the editor |
Posted on: 2018/1/20 8:10
#4 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/2 3:55 From Italy, Perugia
Posts: 3146
|
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 .. |
|
|
Re: VIM the editor |
Posted on: 2018/1/20 8:38
#5 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5540
|
@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. |
|
|
Re: VIM the editor |
Posted on: 2018/1/20 10:33
#6 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/2 3:55 From Italy, Perugia
Posts: 3146
|
@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 ... |
|
|
Re: VIM the editor |
Posted on: 2018/1/20 10:54
#7 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 806
|
@samo79
A fresh Vim would be really nice! OS4depot version is getting older each day. |
|
|
Re: VIM the editor |
Posted on: 2018/1/20 11:53
#8 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/2 3:55 From Italy, Perugia
Posts: 3146
|
@Capehill
And not only that, this version would be even more "native" as it use MUI |
|
|
Re: VIM the editor |
Posted on: 2018/1/21 16:33
#9 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2006/12/5 22:11 From Lecco, Italy
Posts: 303
|
Yeah, it would be nice to have a MUI version of VIM,
VIM it's my editor of choice |
|
|
Re: VIM the editor |
Posted on: 4/22 10:25
#10 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5540
|
@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) ![]() I had to adapt gui_mui.c a bit to make it compiles for os4, like this:
#ifdef __amigaos4__
And open on init stage muimaster and cybergraphics of course. And fix marcoses this way (to avoid redefine of DoSuperNew to DoSuperNewTags):
#ifdef __MORPHOS__
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. |
|
|
Re: VIM the editor |
Posted on: 4/23 11:07
#11 |
---|---|---|
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 |
||
|
Re: VIM the editor |
Posted on: 4/23 11:14
#12 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5540
|
@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): ![]() 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 |
|
|
Re: VIM the editor |
Posted on: 4/23 13:02
#13 |
---|---|---|
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 |
||
|
Re: VIM the editor |
Posted on: 4/23 15:49
#14 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5540
|
@Goos
Do you mean it works differently on aos4 that on os3 and on aros/morphos ? |
|
|
Re: VIM the editor |
Posted on: 4/23 20:30
#15 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/24 18:52 From Gloucestershire, UK.
Posts: 1169
|
@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> |
||
|
Re: VIM the editor |
Posted on: 4/24 8:33
#16 |
---|---|---|
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 |
||
|
Re: VIM the editor |
Posted on: 4/24 9:50
#17 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5540
|
@Goos
Wow ! That tags[0].ti_Data = msg->Color|0xFF000000; did the trick ! Check this out (click on images for fullsize): ![]() ![]() |
|
|
Re: VIM the editor |
Posted on: 4/24 10:28
#18 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2146
|
@Goos
Quote:
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:
|
|
|
Re: VIM the editor |
Posted on: 4/24 13:34
#19 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/12/5 2:30 From Vancouver, Canada
Posts: 191
|
@kas1e
Looking awesome! |
|
|
Re: VIM the editor |
Posted on: 4/24 19:23
#20 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5540
|
@all
Made a video to show how it all looks like and how it works (1920x0180, HD): https://youtu.be/UBOuVuGUTZ0 |
|