A vi-like editor (bare metal) for eLua and variants

classic Classic list List threaded Threaded
8 messages Options
raman raman
Reply | Threaded
Open this post in threaded view
|

A vi-like editor (bare metal) for eLua and variants


Dear eLua community, dear Mizar32 community,

I trust you're all doing well. I wish you all a very happy
new year 2013. I've been having some fun with 'iv', a
vi-like editor (on bare metal) with eLua.

I looked around the internet and found 'iv'. Here's the
link: http://coledd.com/software/linux/. I modified the
code (to remove termios and ioctl dependencies; plus
a few other things) and put it together with the eLua
(and variants) system. So now, I can edit code in /mmc
from the shell - vi style.

"It has most of the features of Bill Joy's vi editor, yet
remains lightweight". It only takes an additional 14KB~
of flash for the iv support. I'm currently running this
on Mizar32 and LM3S. I find it very convenient to edit
the code on the fly. I miss yy on iv but it can be
implemented.

Please look for the patch in the attachment. To enable
iv, #define BUILD_EDITOR_IV in your platform_conf.h
file. I've put it to test on minicom. It works well. I
haven't been able to test it on other terminal emulators
(Hyperterminal or Teraterm). Can you please try using
it and give me your suggestions? Can you please
report any bugs?

Best,
Raman

iv.editor.patch
Thiago Naves Thiago Naves
Reply | Threaded
Open this post in threaded view
|

Re: A vi-like editor (bare metal) for eLua and variants

Very cool. I might give it a try later ;)

Best,
Thiago

On Jan 20, 2013 8:19 AM, "raman" <[hidden email]> wrote:

Dear eLua community, dear Mizar32 community,

I trust you're all doing well. I wish you all a very happy
new year 2013. I've been having some fun with 'iv', a
vi-like editor (on bare metal) with eLua.

I looked around the internet and found 'iv'. Here's the
link: http://coledd.com/software/linux/. I modified the
code (to remove termios and ioctl dependencies; plus
a few other things) and put it together with the eLua
(and variants) system. So now, I can edit code in /mmc
from the shell - vi style.

"It has most of the features of Bill Joy's vi editor, yet
remains lightweight". It only takes an additional 14KB~
of flash for the iv support. I'm currently running this
on Mizar32 and LM3S. I find it very convenient to edit
the code on the fly. I miss yy on iv but it can be
implemented.

Please look for the patch in the attachment. To enable
iv, #define BUILD_EDITOR_IV in your platform_conf.h
file. I've put it to test on minicom. It works well. I
haven't been able to test it on other terminal emulators
(Hyperterminal or Teraterm). Can you please try using
it and give me your suggestions? Can you please
report any bugs?

Best,
Raman

iv.editor.patch
<http://elua-development.2368040.n2.nabble.com/file/n7577812/iv.editor.patch>



--
View this message in context: http://elua-development.2368040.n2.nabble.com/A-vi-like-editor-bare-metal-for-eLua-and-variants-tp7577812.html
Sent from the eLua Development mailing list archive at Nabble.com.
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Martin Guy Martin Guy
Reply | Threaded
Open this post in threaded view
|

Re: A vi-like editor (bare metal) for eLua and variants

Cheers. Exactly what we needed.
Maybe try nano or pico or ue, for a modeless one, using the same way
of inserting it into the shell?

   M
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Martin Guy Martin Guy
Reply | Threaded
Open this post in threaded view
|

Re: A vi-like editor (bare metal) for eLua and variants

yy? (yank line)

:'m,'ns|.* "\(http://[^"]*\)".*||

is the sort of cruft I use: xvi is the smallest that implements as far
as that, weighing in at 100kb code size. Of course, that would fit the
Mizar32...

   M

Disclaimer: I work for Mizar32 and am maintainer of xvi. I know, *I*
should do it.
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Martin Guy Martin Guy
Reply | Threaded
Open this post in threaded view
|

Re: A vi-like editor (bare metal) for eLua and variants

> :'m,'ns|.* "\(http://[^"]*\)".*||

sorry, :'m,'ns|.* "\(http://[^"]*\)".*|\1|

der
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Martin Guy Martin Guy
Reply | Threaded
Open this post in threaded view
|

Re: A vi-like editor (bare metal) for eLua and variants

In reply to this post by raman
On 20 January 2013 11:08, raman <[hidden email]> wrote:
> iv.editor.patch
> <http://elua-development.2368040.n2.nabble.com/file/n7577812/iv.editor.patch>

Sorry about all this mail. Do you have a github fork/branch for the
version including iv?
And if you don't have branch-creation access on elua/elua yet, can I
suggest Raman have this, as it's always easier to pull individual
commits from another branch than from a fork.

   M
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
raman raman
Reply | Threaded
Open this post in threaded view
|

Re: A vi-like editor (bare metal) for eLua and variants

In reply to this post by Martin Guy

Dear Martin,

> Cheers. Exactly what we needed.
> Maybe try nano or pico or ue, for a modeless one, using the same way
> of inserting it into the shell?

Nano/pico/ue might be great for a modeless editor for eLua. It might be
worth a shot although I remember reading about the code size aspect of
various editors (I remember nano, ed) - all in one website. I tried looking
for this on google now but I cannot find it :( - how convenient, I
thought before I was able to narrow it down to iv.

I remember, most of them were in the range 60KB - 200KB. Nevertheless,
we can give this a try if people are interested.

Best,
Raman
raman raman
Reply | Threaded
Open this post in threaded view
|

Re: A vi-like editor (bare metal) for eLua and variants

In reply to this post by Martin Guy

Dear Martin,

> Sorry about all this mail. Do you have a github fork/branch for the
> version including iv?

No. I don't have one yet but I can set this up.

> And if you don't have branch-creation access on elua/elua yet, can I
> suggest Raman have this, as it's always easier to pull individual
> commits from another branch than from a fork.

This might also be possible. Please let me know which one works. I'll
get this done over the weekend.

Best,
Raman

PS: I haven't used xvi. I'm going to give this a try. Cheers!