New text editor: MSX vi

New text editor: MSX vi

por fr3nd en 20-07-2018, 03:00
Tema: Software
Etiquetas: editor, text, vi
Idiomas:

A new text editor for the MSX has been released. This one is based on the popular 'vi' text editor. Vi was originally created for the Unix operating system. It became very popular and today there are many different clones available on multiple platforms. Now our beloved MSX has its own port.

According to the author, it can be a bit challenging at the beginning, but once you've learnt how to use it, it's one of the fastest text editors to use.
Requirements to run this software are an MSX2 computer (or emulator) and MSX-DOS2.
As this is the author's first MSX development, it may still contain some bugs. He would like you to let him know your suggestions and opinions.

Relevant link: MSX-vi Website
Relevant link: MSX-vi on WebMSX

Media browser (2)

  • New text editor: MSX vi
  • New text editor: MSX vi

Comentarios (20)

Por Philip

Champion (380)

Imagen del Philip

20-07-2018, 07:38

Wow, that's great! Finally a sane editor on msx Smile

Por geijoenr

Champion (366)

Imagen del geijoenr

20-07-2018, 08:26

Awesome!!!

Por Manuel

Ascended (19469)

Imagen del Manuel

20-07-2018, 09:00

Haha, finally! Great!

Por Pencioner

Scribe (1565)

Imagen del Pencioner

20-07-2018, 09:18

you made my day! great!

Por Giangiacomo Zaffini 2

Champion (289)

Imagen del Giangiacomo Zaffini 2

20-07-2018, 17:05

Great news since I'm a old vi (GVim these days) user! I will try it for sure! Big smile

Por ricbit

Champion (438)

Imagen del ricbit

20-07-2018, 17:50

So much win. I'll be an user for sure.

Por DrWh0

Paladin (839)

Imagen del DrWh0

20-07-2018, 18:18

vim on msx nice, but i prefer emacs or even pine there is no enough keys for vim Smile

Por karloch

Prophet (2159)

Imagen del karloch

20-07-2018, 18:36

So nice to have a vi-like editor for MSX, love it! I suggest to update the newspost with something important: you can take a look to the source code in Github and even fork it :) Live this kind of development for MSX.

It is coded in C. Likely using ASCII MSX-C through Javi Lavandeira Relearning MSX series.

Por fr3nd

Expert (112)

Imagen del fr3nd

20-07-2018, 19:09

Thanks guys! I'm glad you like the idea of having a vi clone for the MSX. As karloch said, its open source and I'm open to receive contributions to the project, but it's not written with ASCII MSX-C but with SDCC.

Por PingPong

Enlighted (4140)

Imagen del PingPong

20-07-2018, 19:59

Maximum size of text file that can be loaded?

Por karloch

Prophet (2159)

Imagen del karloch

20-07-2018, 21:17

fr3nd wrote:

Thanks guys! I'm glad you like the idea of having a vi clone for the MSX. As karloch said, its open source and I'm open to receive contributions to the project, but it's not written with ASCII MSX-C but with SDCC.

Thanks for the clarification! And really thank you for coding it and sharing!

Por fr3nd

Expert (112)

Imagen del fr3nd

20-07-2018, 21:35

PingPong, I haven't tested it, but unfortunately I don't expect it to be very high... I'm not using any expanded memory... It's one of the improvements I'd like to do

Por Louthrax

Prophet (2465)

Imagen del Louthrax

21-07-2018, 00:40

That project looks super-interesting Smile The main suggestion I have in mind would be MSX 1 / 40 columns support (if with some luck you do not rely too much on MSX 2 VDP).

Fr3nd, I'm also curious about the memory model you're using here. Is the text stored "lineary" in memory, or are you using chained-list line (or something like that)?

Por fr3nd

Expert (112)

Imagen del fr3nd

21-07-2018, 10:49

Louthrax wrote:

That project looks super-interesting Smile The main suggestion I have in mind would be MSX 1 / 40 columns support (if with some luck you do not rely too much on MSX 2 VDP).

Fr3nd, I'm also curious about the memory model you're using here. Is the text stored "lineary" in memory, or are you using chained-list line (or something like that)?

When I started thinking on developing it, I always had MSX2 in mind. For example, I started using screen8 because I wanted to print text in different colours, but at the end it turned out to be too slow... I'm not sure how difficult would be to support MSX1 because I used DOS2 calls and never intended it to be backwards compatible.

For the memory model, I'm using a dynamically allocated array to store each line which is also another dynamically allocated array. I based most of the code in the Build Your Own Text Editor tutorial.

Por MsxKun

Paragon (1124)

Imagen del MsxKun

21-07-2018, 13:05

fr3nd wrote:

When I started thinking on developing it, I always had MSX2 in mind. For example, I started using screen8 because I wanted to print text in different colours, but at the end it turned out to be too slow... I'm not sure how difficult would be to support MSX1 because I used DOS2 calls and never intended it to be backwards compatible.

Nice. Anyway DOS2 is compatible with MSX1 too, as long as you have a memory mapper.

Por Edevaldo

Master (154)

Imagen del Edevaldo

27-07-2018, 01:54

Quote:

PingPong, I haven't tested it, but unfortunately I don't expect it to be very high... I'm not using any expanded memory... It's one of the improvements I'd like to do

Great initiative in having a vi like editor for the MSX.

More advanced editors do not need a lot of memory to edit infinite files. They only load parts of the file into memory, the ones it needs and once the maximum memory they would allocate is reached they discard the blocks that were not changed and load new blocks. To save changes, unfortunately, the MSX C lib will force you to copy the file up to the point a modification was made, write the modifications and then copy the rest of the file. But, in principle, it could be possible even to edit multiple files at the same time and have no limits on their size.

Not a trivial task though, as memory management on the MSX is always rough.

But thanks for making it happen and sharing the code!

Edevaldo

Por PlainSpooky

Resident (53)

Imagen del PlainSpooky

16-08-2018, 03:33

I've made few changes on source code and obtained a 40 columns version of MSX-vi. Ok, it's unstable yet, but runs in a MSX1 computer running MSX-DOS2/NEXTOR (with a little help of Technobytes's IDE-Mapper cartridge)... Smile

Por Wild_Penguin

Hero (644)

Imagen del Wild_Penguin

27-12-2018, 22:04

Hi!

Any news on / what is needed to make a 40-column version which will work on MSX1 too?

UI wise there should not bee that much that would prevent it to be done, and it would definitely be useful for anyone stuck on a desert island with only some MSX1 computers!

Code-wise, I have no idea how difficult it would be, haven't looked into it (and would not be of much help even if I did)!

Por o.geerdink

Hero (588)

Imagen del o.geerdink

21-09-2019, 00:26

please add this editor to WB-ASS2 ;-)

Por Wlcracks

Hero (566)

Imagen del Wlcracks

26-09-2019, 05:08

Msx1 version would be awesome....