Click Here
home features news forums classifieds faqs links search
5639 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
42 crawler(s) on-line.
 16 guest(s) on-line.
 3 member(s) on-line.


 Rob,  eliyahu,  ppcamiga1

You are an anonymous user.
Register Now!
 ppcamiga1:  21 secs ago
 Rob:  1 min ago
 eliyahu:  2 mins ago
 densho:  6 mins ago
 Trekiej:  20 mins ago
 Lou:  27 mins ago
 Frank:  53 mins ago
 saimo:  54 mins ago
 DFergFLA:  1 hr 2 mins ago
 Jasper:  1 hr 6 mins ago

software OS4   software OS4 : VIM 8.1 with MUI GUI out now and for AmigaOS4!
   posted by kas1e on 3-May-2019 18:57:28 (1860 reads)
What is it ? ...

Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. Vim is rock stable and is continuously being developed to become even better. Among its features are:

* persistent, multi-level undo tree
* extensive plugin system
* support for hundreds of programming languages and file formats
* powerful search and replace
* integrates with many tools

Please note that this is not a straight port of the upstream version. It includes a full MUI GUI with most of the bells and whistles found in Vim on any of the major platforms.



Check screenshot of AmigaOS4 version (click on image for full size):



Source code is open, hosted on sourceforge (yeah, author aware about other things like github and co, but currently its on sourceforge) and can be found there: https://sourceforge.net/projects/spaden/. There you also can report your bugs if you find any.

The only limitation in GUI mode at moment only 2 (but they are work in progress):

* no scrollbar support
* "replace" gui button doing nothing, it just need some more work by adding more dialogue windowses.
* some annoying empty window popup when run from workbench

To more understand how it all looks / feels like, you can just watch my youtube video (1920x1080 , no phone-camera-point-on-screen porn, real HD one):

https://www.youtube.com/watch?v=UBOuVuGUTZ0

But you should be sure, its not casual text editor. For use it you should know what you do and what VIM is. Because if not, very possible that you even will be not able to quit from the editor at all :)

How to run ...

1. Just unpack vim to any place you want.

2. Make an assign of VIM: to your_path/vim/runtime/ directory.
(You can not make that assign, and just run vim after unpacking, but then it will ask you to assign VIM: anyway, which you still need to point on your_path/vim/runtime/ directory). So better put something like this to your user-startup: Assign VIM: work:vim/runtime >NIL:

3. run "gvim" binary.

What about AmigaOS4 port ? ...

Ola 'sTix' Söder doing good job on making real MUI GUI for VIM as well as keeping whole amiga version of VIM be up2date. Originally he developed it for MorphOS and later for AROS, but now with some little effort we also have AmigaOS4 version too.

For making it works you need to have for your MUI installation "TheBar" custom class installed (that for all platforms), it is available there:

https://github.com/amiga-mui/thebar

Or you can grab it from os4depot there:

http://os4depot.net/share/library/mui/mcc_thebar.lha

Version of VIM for AmigaOS4 release is the same as last public released versions for MorphOS and AROS: 8.1.1099, just with some more bugs fixed and things added which will fits into next MorphOS/AROS releases as well, there they are:

-- fix: jumping between screens.
-- fix: remembering of window size/dimenstion when iconify and when exit.
-- fix: "the bar" class settings are visibly now in mui prefs when press "more" in general tab of mui settings.
-- fix: one more remove of unnecessary "home:" assignment.
-- added: Mason's icons (toolbars, main icons)
-- added: Support not only for plain toolbar icons, but also for selected ones and disabled ones.
-- added: workaround to have ability to run vim from workbench in gui mode without spawning of unnecessary empty output windowses.
-- changed: as there is no scrollbar support at moment, we disabled related entries from mui's menu till it implemented.


Do not forget that MUI is highly configurable ! ...

Some of you aware , but some are not. If MUI programm do not reacts as you wish, you offten can change the behaviour via mui settings (or only for programm you choice, or in whole, for all mui programms). I.e. if your window size/dimenstion do not stored on exit, but you wish it be so, then change in mui settings window/window_position_are/ to be "stored permanently". If you want to have 'embedded menu bar' at top, you always can it enable in mui settings menus/enable emdedded menu bar. If you want to change size of toolbar in VIM (or in any app which use TheBar class for toolbars), you always can go to mui settings, press "more" and in "the bar" class play with "spacing" options.

Just be sure you can change via mui settings a lot.


Final words ...

Big thanks to Ola 'sTix' Söder who doing it.
Big thanks to VIM community that they still keept amiga related code in original repo, even if those ifdefs recieved death messages about being removed as unnecessary.
Big thanks to Thore for never ended work on AOS4 version of MUI5.
Big thanks to Martin 'Mason' Merz for making a toolbar and main icons
Big thanks to Goos McGuile for pointing out how to fix some rendering bugs
Big thanks to all others who show interest in it!
    

Related Links
· More about software OS4
· News by kas1e


Most read story about software OS4
Homebank 4.4 for AmiCygnix released

Last news about software OS4
Secure FTP Server Coming to AmigaOS 4.x Soon
Printer Friendly Page  Send this Story to a Friend

Goto page ( 1 | 2 )

PosterThread
billt 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 6-May-2019 20:28:23
#1 ]
Elite Member
Joined: 24-Oct-2003
Posts: 3100
From: Maryland, USA

I look forward to trying it, thanks!


_________________
All glory to the Hypnotoad!

 Status: Offline
Profile     Report this post  
billt 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 6-May-2019 21:28:58
#2 ]
Elite Member
Joined: 24-Oct-2003
Posts: 3100
From: Maryland, USA

Where do we get Vim for OS4?

You have link to sourceforge for source codes, and they have an i386 binary there for AROS that downlaods by the download button.

You have link to theBar which I got.

You have link to youtube video.

I found spurceforge files listing, for AROSi386 and MOSppc.

But where to get Vim binary for OS4?


_________________
All glory to the Hypnotoad!

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 6-May-2019 21:41:17
#3 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

Here:

os4depot


_________________

 Status: Offline
Profile     Report this post  
kas1e 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 7-May-2019 20:36:37
#4 ]
Amiga Developer Team
Joined: 11-Jan-2004
Posts: 3336
From: Russia

@All
Uploaded new version of vim_mui to os4depot: where rebuilded now with clib2 instead of newlib, as newlib still have a bug with file permission got cleared, which in end lead to non-deleted swap files in VIM. clib2 will be used until fixed version of newlib will be publicaly available, or we will add workoround to VIM's code.

In other words, swap file deletion on exit/close will works now.


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

 Status: Offline
Profile     Report this post  
kas1e 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 7-May-2019 20:38:23
#5 ]
Amiga Developer Team
Joined: 11-Jan-2004
Posts: 3336
From: Russia

@All
Uploaded new version of vim_mui to os4depot: which rebuilded now with clib2 instead of newlib, as newlib still have a bug with file permission got cleared, which in end lead to non-deleted swap files in VIM. clib2 will be used until fixed version of newlib will be publicaly available, or we will add workoround to VIM's code.

In other words, swap file deletion on exit/close will works now.


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

 Status: Offline
Profile     Report this post  
kas1e 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 7-May-2019 20:42:52
#6 ]
Amiga Developer Team
Joined: 11-Jan-2004
Posts: 3336
From: Russia

dbl-post


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

 Status: Offline
Profile     Report this post  
Madlax 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 7-May-2019 21:04:59
#7 ]
Member
Joined: 17-Oct-2017
Posts: 13
From: Unknown

Any chance we will see a OS3 version?

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 8-May-2019 7:44:40
#8 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

I thought about that but my time is limited. I'd like to finish InstallerLG first (see https://github.com/sodero/InstallerLG).

Besides, VIM is not exactly light weight anymore, syntax highlighting and many plugins require quite a lot of CPU power and it's not about the MUI part being slow, it's a problem on all platforms, even on Linux and Windows. If you're using an emulator it might be OK, but on a real Amiga it won't work very well.

But of course, if someone is willing to try, I'll be all for it and I will do my best to support such an effort. Perhaps AROS 68k is a good start as an evaluation?


_________________

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 8-May-2019 7:45:34
#9 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

@Madlax

I thought about that but my time is limited. I'd like to finish InstallerLG first (see https://github.com/sodero/InstallerLG).

Besides, VIM is not exactly light weight anymore, syntax highlighting and many plugins require quite a lot of CPU power and it's not about the MUI part being slow, it's a problem on all platforms, even on Linux and Windows. If you're using an emulator it might be OK, but on a real Amiga it won't work very well.

But of course, if someone is willing to try, I'll be all for it and I will do my best to support such an effort. Perhaps AROS 68k is a good start as an evaluation?


_________________

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 8-May-2019 7:52:23
#10 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

@kas1e

Excellent! I'll gladly merge your work into the main branch as soon as you feel that you're done. Then I can adapt the installer. My plan is to get an OS4 system soon, first of all I'd like to try Amiga Forever, then I will probably buy real hardware further down the road.


_________________

 Status: Offline
Profile     Report this post  
softwarefailure 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 8-May-2019 14:42:32
#11 ]
Member
Joined: 16-Feb-2004
Posts: 65
From: Germany

Nice, does it have Hollywood support? :)

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 8-May-2019 15:51:22
#12 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

Indeed:

https://forums.hollywood-mal.com/viewtopic.php?t=1673


_________________

 Status: Offline
Profile     Report this post  
kas1e 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 8-May-2019 21:33:30
#13 ]
Amiga Developer Team
Joined: 11-Jan-2004
Posts: 3336
From: Russia

@sTix, softwarefailure

Don't know what wrong with that Hollywood vim plugin is, but once i install it, almost all the time any .hws i tried to open just freeze system. One time i was lucky and it load .hws and it was colored.

Also it didn't showups in the mui's menu when i set Syntax/Show File Types Menu.

It also have some strange "ftdetect" directory, which i didn't have by default , but even with it, or with only syntax/hollywood.vim , system lockups once trying to open .hws files.


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

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 9-May-2019 7:46:34
#14 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

I wrote a simple plugin for Installer-scripts (runtime/syntax/installer.vim), a comparison with that might give a clue.


_________________

 Status: Offline
Profile     Report this post  
kas1e 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 9-May-2019 10:36:52
#15 ]
Amiga Developer Team
Joined: 11-Jan-2004
Posts: 3336
From: Russia

@sTix
Did you mean that plugins for amiga version of vim anyhow dufferent in compare with plugins for any other os ? Imho all the same (?) and if it fail, then it mean plugin itself buggy, just on linux/win32 didnt crash by luck ?


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

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 9-May-2019 12:54:57
#16 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

@kas1e

No, if it works on Linux it should work on Amiga as well. But the details of the plugin might give us a clue to what the problem on Amiga is. Plenty of code in Vim handling paths needs special handling on Amiga (and Windows but that's properly maintained).


_________________

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 10-May-2019 7:50:51
#17 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

@kas1e

I seems to work using the hello world examples I've seen. Perhaps bigger ones need to much stack?


_________________

 Status: Offline
Profile     Report this post  
kas1e 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 11-May-2019 7:22:07
#18 ]
Amiga Developer Team
Joined: 11-Jan-2004
Posts: 3336
From: Russia

@sTix
I tried with defaul stack size, and tested example scrtpts coming with Hollywood in example directory (such as 3DCube.hws, 3DText.hws, etc).

When i raise stack to let's say 1000000 (1mb) then it seems to works.

Scrolling through a bit jerky when trying to fast scroll colored .hws code.

Need more tests anyway, but probabaly default stack size should be bigger if it will be the case.


ps. I do check how much stack used when i load 3DCube.hws : 100kb of stack size is uzed.
Dunno if it hollywood script done wrong that it want so much stack, or in general we need to raise stack for VIM..

For C code stack usage is pretty low : just 27kb for big C sourse. So seems that VIM plugin done in a way which requery a lot of stack (i.e. more than 100kb at least).


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

 Status: Offline
Profile     Report this post  
sTix 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 11-May-2019 12:08:21
#19 ]
Member
Joined: 22-Oct-2003
Posts: 56
From: Lund, Sweden

@kas1e

That's good. In the documentation of Vim I found this:

Quote:
If you notice Vim crashes on some files when syntax highlighting is on, or
when using a search pattern with nested wildcards, it might be that the stack
is too small. Try increasing the stack size. In a shell use the Stack
command before launching Vim. On the Workbench, select the Vim icon, use the
workbench "Info" menu and change the Stack field in the form.


So I guess it's expected that a big stack is needed.

About the performance of syntax highlighting; yes, I think it's really annoying, Vim performs badly in this scenario. But it's expected. If you google for it you'll get lots of hits. This goes for all platforms, with much more powerful hardware than what we have. Basically we can only hope for improvements in upstream Vim, or more powerful hardware.

A question though: How do you measure stack usage on OS4?


_________________

 Status: Offline
Profile     Report this post  
kas1e 
Re: VIM 8.1 with MUI GUI out now and for AmigaOS4!
Posted on 11-May-2019 14:40:53
#20 ]
Amiga Developer Team
Joined: 11-Jan-2004
Posts: 3336
From: Russia

@sTix
Quote:

A question though: How do you measure stack usage on OS4?


For os4 there few tools which can show it , but for myself i use Ssolie's Ranger: it show the stack size binary allocated, and stack size binary actually used (in kb and in %). You also can refresh it at any time.

So i usualy just set 1 or 2 megabytes of stack, play with app and check how much stack size it actually need.

But to be on safe side i most of time use stack cookie of 1 megabyte for big os4 apps, so users have no needs to worry about stack ever. What is 1mb of memory today for any NG system in compare with getting rid of that stack problems.

For os4 version of vim i add now 1mb by default via stack cookie already, and If i remember right morphos and aros also have stack cookies ?


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

 Status: Offline
Profile     Report this post  

Goto page ( 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle