19-Apr-2024 00:07 GMT.
UNDER CONSTRUCTION
Anonymous, there are 23 items in your selection
[Files] VIM 6.2 ported to MorphOSANN.lu
Posted on 07-Feb-2004 20:51 GMT by oGALAXYo23 comments
View flat
View list
VIM 6.2 ported to MorphOS While playing with the MorphOS SDK today I quickly hacked some stuff together to get VIM 6.2 ported to MorphOS (native PowerPC code). I didn't had time making some binaries (maybe tomorrow).

So how does it work:

a) get the Amiga sources of VIM 6.2.0 from ftp.vim.org Runtime and Source.

b) get the MorphOS Diff that I hacked together from my page MorphOS Diff.

c) untar both Tarballs and patch my MorphOS Diff ontop of it.

optional:

d) get the subversion patches for VIM (currently 6.2.242) and patch them ontop of the VIM source (after my MorphOS Diffs got applied) one by one. You can automate this process of getting all patches at once with my GetVIM Script which you can find on my page GetVIM. It will download all the patches and create one big patch file out of them. After this has been done patch the big file ontop of the VIM source (ignore warnings and errors they are unimportant and usually related to missing files for Windows/BeOS/Linux).

e) compile VIM by entering 'make' in the vim/vim62/src Dir and enjoy the show.

To run VIM you need to do these things:

assign vim: ""
assign home: ""

And if it complains more assign it as well to "". VIM Amiga version wasn't maintained for quite some time due the broken machine of Bram Moolenar (the father of VIM who started it initially on Amiga). Maybe when I find more time I gonna fix all the stuff and even do a gVIM MorphOS version - dunno yet. It wasn't that special either but I do belive there are many people who use VIM on Linux and want to use the same powerful Editor on MorphOS.

oGALAXYo

VIM 6.2 ported to MorphOS : Comment 1 of 23ANN.lu
Posted by Christophe Decanini on 07-Feb-2004 20:22 GMT
For sure someone will ask for the binaries. If you or someone get them built add a link in the comments. Then I will add it to the main post.
VIM 6.2 ported to MorphOS : Comment 2 of 23ANN.lu
Posted by amigaboy on 07-Feb-2004 20:34 GMT
In reply to Comment 1 (Christophe Decanini):
What is VIM?
VIM 6.2 ported to MorphOS : Comment 3 of 23ANN.lu
Posted by Leo on 07-Feb-2004 20:38 GMT
> What is VIM?

An un-intuitive console-based text editor popular in the Unix world (guess why ;))

Regards,
Leo.
VIM 6.2 ported to MorphOS : Comment 4 of 23ANN.lu
Posted by oGALAXYo on 07-Feb-2004 20:51 GMT
Ok I provided the Binaries. Here you have VIM 6.2.242 (the latest). Please don't forget that you still need the vim62rt.lha file from ftp.vim.org.

oo DOWNLOAD VIM oo
VIM 6.2 ported to MorphOS : Comment 5 of 23ANN.lu
Posted by hnl_dk on 07-Feb-2004 21:10 GMT
In reply to Comment 4 (oGALAXYo):
vim62rt.tgz
VIM 6.2 ported to MorphOS : Comment 6 of 23ANN.lu
Posted by Anon on 07-Feb-2004 21:22 GMT
In reply to Comment 3 (Leo):
Hey, don't forget to mention that VIM was BORN ON AN AMIGA.
VIM 6.2 ported to MorphOS : Comment 7 of 23ANN.lu
Posted by Kolbjørn Barmen on 07-Feb-2004 21:23 GMT
How well does high-lighting work on MOS?
VIM 6.2 ported to MorphOS : Comment 8 of 23ANN.lu
Posted by koan on 07-Feb-2004 23:16 GMT
In reply to Comment 2 (amigaboy):
In the UNIX world, they don't have MorphOS vs AmigaOS, they have vi vs. Emacs.

Then vi was improved (-> vim) then there was a GUI version (gvim).
The thing with vi is, almost every UNIX system, no matter how basic, has vi.

koan

(vim yeah, emacs boo!)
VIM 6.2 ported to MorphOS : Comment 9 of 23ANN.lu
Posted by Anonymous on 08-Feb-2004 00:11 GMT
In reply to Comment 8 (koan):
Phhh! I can run Vi INSIDE of Emacs!
VIM 6.2 ported to MorphOS : Comment 10 of 23ANN.lu
Posted by Anonymous on 08-Feb-2004 00:32 GMT
In reply to Comment 3 (Leo):
> An un-intuitive console-based text editor popular in the Unix world

Not so popular anymory, I assume, with the nice new development environments like kdevelop. Who in their right mind would use crap like VIM?!
VIM 6.2 ported to MorphOS : Comment 11 of 23ANN.lu
Posted by Anonymous on 08-Feb-2004 00:42 GMT
In reply to Comment 10 (Anonymous):
"Not so popular anymory, I assume, with the nice new development environments like kdevelop. Who in their right mind would use crap like VIM?!"

On Linux? Anyone who want text editor but not to bloat the system with GUI's?

I myself like MorphED best!
VIM 6.2 ported to MorphOS : Comment 12 of 23ANN.lu
Posted by Anonymous on 08-Feb-2004 00:59 GMT
In reply to Comment 11 (Anonymous):
Emacs OWNZ j00!!!!!
VIM 6.2 ported to MorphOS : Comment 13 of 23ANN.lu
Posted by Kjetil on 08-Feb-2004 01:52 GMT
In reply to Comment 11 (Anonymous):
On linux systems I like to use the mcedit; command line text editor, or kedit kwrite for editing files whit an GUI, for anyone how like use an more civilized text editor for Linux download the midnightcomander package and install it,


"mc" like "Filemaster for Amiga whit out gui"
"mcedit" like "edit for dos just more advanced"
VIM 6.2 ported to MorphOS : Comment 14 of 23ANN.lu
Posted by Trizt on 08-Feb-2004 08:44 GMT
Does VIM work well in the quite "bad" AmigaShell?
VIM 6.2 ported to MorphOS : Comment 15 of 23ANN.lu
Posted by oGALAXYo on 08-Feb-2004 09:24 GMT
In reply to Comment 14 (Trizt):
If the AmigaSHELL is ANSI conform then yes. Although VIM's os_amiga.[c|h] codes are a bit buggy when it comes to correct parsing the paths (this is a shared function across many plattforms) so it may have issues finding the runtime stuff. I haven't investigated now but I will keep an eye on this. First of all I was quite happy to have it compile and working somehow after all the #ifdef statements for 5 different old Amiga compilers :)
VIM 6.2 ported to MorphOS : Comment 16 of 23ANN.lu
Posted by koan on 08-Feb-2004 11:33 GMT
In reply to Comment 10 (Anonymous):
- Who would want to use a text editor without a GUI ?

Well first of all, if gvim were to be ported, then there would be a GUI.

But this question is a bit pointless, it's like saying why would anyone want to use the CLI when you have a GUI ? It's fine if you are a Mac owner but most people want to get the full power out of their machine. For example, tell me how to do
delete #?blah.ilbm with Workbench ?

koan
VIM 6.2 ported to MorphOS : Comment 17 of 23ANN.lu
Posted by Leo on 08-Feb-2004 12:31 GMT
In reply to Comment 10 (Anonymous):
> Not so popular anymory, I assume, with the nice new development environments like kdevelop. Who in their right mind would use crap like VIM?!

Hum... Apart from Galaxy I can't see anyone ;)

Regards,
Leo.
VIM 6.2 ported to MorphOS : Comment 18 of 23ANN.lu
Posted by Kjetil on 08-Feb-2004 12:47 GMT
In reply to Comment 17 (Leo):
I don't like vim, nor vi or emaxs,

joe is better one,
mcedit is better one,
VIM 6.2 ported to MorphOS : Comment 19 of 23ANN.lu
Posted by Sigbjørn Skjæret on 08-Feb-2004 13:25 GMT
Hmmm, I took a quick look at the diffs, and just a couple of questions:

Why did you comment away the requester suppression code?

Why did you remove (and even add some) code in #ifdef LATTICE .. that's just for SAS/C and surely has no relevance for MorphOS port... ;)


- CISC
VIM 6.2 ported to MorphOS : Comment 20 of 23ANN.lu
Posted by oGALAXYo on 08-Feb-2004 14:04 GMT
In reply to Comment 19 (Sigbjørn Skjæret):
> Why did you comment away the requester suppression code?

Compiler errors.

> Why did you remove (and even add some) code in #ifdef LATTICE ..
> that's just for SAS/C and surely has no relevance for MorphOS port... ;)

Right! If it was related to LATTICE at all (but abused here). I initially started to compile the stuff as it was but quickly came to problems where I didn't knew exactly what caused them (e.g. Headers missing, Prototypes not found and so on). I first started to make some MORPHOS ifdefs (not particulary knowing whether I was right or not) but later on figured out that VIM has a bunch of ifdefs for the old compilers found on Amiga (Lattice, SAS and so on). So I started to assume that these different type of compilers also have their headers structured differently and that the code inside VIM was laid out in such a way that it expects to get compiled with exactly these compilers (not GCC). GCC (from my understanding) is basically an undefined condition here and thus acts differently. I must admit that I trap myself in the dark here since it was also the first time I was playing with the MorphOS SDK. I then quickly figured out that the LATTICE ifdefs came close to what the MorphOS SDK requires to get the stuff compiled (e.g. I figured out that when I hit a compile error with missing includes then the includes provided by the LATTICE ifdef solved it). So I started to add -DLATTICE as option to gcc and figured out that the amount of errors disappear (this also gave me the idea that when I define LATTICE then I will fool VIM and give it a condition (go LATTICE only). The later on added LATTICE ifdefs + separate include headers was there to get the rest compiled.

Ok I must admit it was compile + error + fix + repeat until finished way of how I did it. A proper solution would be to remove all the old crap from VIM entirely and have it use a proper MorphOS SDK environment. Although there are also various __GCC__ conditions in the overall VIM code, I don't know whether they will do some strange stuff to e.g. skipping urgently needed AMIGA related information such as parsing of paths correctly but honestly, I was happy to get it that far ... for a first meeting with MorphOS SDK it was quite ok. From here on it can be enchanced.

If you have better idea and suggestions then I would be happy to hear them and improve upcoming versions of VIM.
VIM 6.2 ported to MorphOS : Comment 21 of 23ANN.lu
Posted by Kolbjørn Barmen on 08-Feb-2004 18:32 GMT
In reply to Comment 10 (Anonymous):
Hehe, how ironic. One of the brand new features of KDE3.2 is kpart vim, meaning you now can use vim as default editor wherever you like in KDE programs, including KDevelop ofcourse :)
VIM 6.2 ported to MorphOS : Comment 22 of 23ANN.lu
Posted by Sigbjørn Skjæret on 09-Feb-2004 08:37 GMT
In reply to Comment 20 (oGALAXYo):
Ok, I see, -DLATTICE is quite evil, and preferably you should add checks for __MORPHOS__ everywhere the LATTICE block you want is .. since you did it on trial and error this is probably the reason the requester suppression code didn't compile at first (it really should with the right includes)...

..additionally you should try if it compiles/links with -noixemul (since VIM used to be compiled with SAS/C this should work, and is much better than using ixemul), just remember that you need it both for the compiling and linking stage!


- CISC
VIM 6.2 ported to MorphOS : Comment 23 of 23ANN.lu
Posted by oGALAXYo on 09-Feb-2004 20:38 GMT
In reply to Comment 22 (Sigbjørn Skjæret):
Yes, thank you very much for your helpful information and I am glad to see the interest of yours here. I will try my best to improve here - with some time and more experience things will become better. i will re-compile VIM in a couple of days and see what I can do (now that one way is found to get it compiled). I also saw that some further AMIGA patches made into VIM (as patches). I also got an interesting feedback from Bram to have the MorphOS changes added to VIM permanently. I will work on it and well.. things can get better...

Thank you very much for the feedback. I do appreciate it.

oGALAXYo
Anonymous, there are 23 items in your selection
Back to Top