Skip to contentSkip to conversation

Is there a better version of vi?

Buildroot David Laight 3 participants 5 messages Jun 3, 2021 – Jun 8, 2021

lore
Share & tools
lore
#0 lore raw

The version of vi is busybox is somewhat cutdown. I can't see an option to include either nvi or vim.

While vim has grown all sorts of horrid extensions it would be nice to have a version that matches the code from the late 1980s.
Most annoying is not having :g//p

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)

#1 lore raw

Hello David,

Quoted 6 lines · David Laight

The version of vi is busybox is somewhat cutdown. I can't see an option to include either nvi or vim.

While vim has grown all sorts of horrid extensions it would be nice to have a version that matches the code from the late 1980s.

Someone improved the Vi included in busybox lately, lots of changes have gone to busybox master branch in the last months. Maybe you could give that a try?

Quoted 1 line

Most annoying is not having :g//p

Not sure if that is covered.

Greets
Alex

Signature · 11 lines
/"\ ASCII RIBBON | ?With the first link, the chain is forged. The first
\ / CAMPAIGN     | speech censured, the first thought forbidden, the
 X  AGAINST      | first freedom denied, chains us all irrevocably.?
/ \ HTML MAIL    | (Jean-Luc Picard, quoting Judge Aaron Satie)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210603/b91eedb2/attachment.asc>
#2 lore raw

From: Alexander Dahl

Quoted 8 lines

Sent: 03 June 2021 14:53

Hello David,

Quoted 3 lines · David Laight

The version of vi is busybox is somewhat cutdown. I can't see an option to include either nvi or vim.

Quoted 7 lines
Quoted 3 lines

While vim has grown all sorts of horrid extensions it would be nice to have a version that matches the code from the late 1980s.

Someone improved the Vi included in busybox lately, lots of changes have gone to busybox master branch in the last months. Maybe you could give that a try?

I'll pick up the 2021.05 release a few days after it escapes. See what that changes.

I'm busy unmothballing a project from 2 years ago. Be a while before we start locking down versions.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)

#3 lore raw
In reply to David Laight
Quoted 2 lines · David Laight

The version of vi is busybox is somewhat cutdown. I can't see an option to include either nvi or vim.

Symbol: BR2_PACKAGE_VIM [=n]

Type : bool

Prompt: vim

Location:

    -> Target packages

(1) -> Text editors and viewers

Defined at package/vim/Config.in:1

Depends on: BR2_USE_MMU [=y] && BR2_USE_WCHAR [=y] &&
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS [=y]
Selects: BR2_PACKAGE_NCURSES [=n]

I suspect you didn't turn on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

vim is pretty large though, adding nvi might be a good idea. Feel free to send
a patch!

Regards,
Arnout

Quoted 17 lines

While vim has grown all sorts of horrid extensions it would be nice to have a version that matches the code from the late 1980s.
Most annoying is not having :g//p

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#4 lore raw

From: Arnout Vandecappelle

Quoted 18 lines

Sent: 07 June 2021 20:17

Quoted 2 lines · David Laight

The version of vi is busybox is somewhat cutdown. I can't see an option to include either nvi or vim.

Symbol: BR2_PACKAGE_VIM [=n]

Type : bool

Prompt: vim

Location:

    -> Target packages

(1) -> Text editors and viewers

Quoted 7 lines

Defined at package/vim/Config.in:1

Depends on: BR2_USE_MMU [=y] && BR2_USE_WCHAR [=y] &&
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS [=y]
Selects: BR2_PACKAGE_NCURSES [=n]

I suspect you didn't turn on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

Probably because it is hidden!

Quoted 1 line

vim is pretty large though,

It also contains a lot of pointless crap.
Killing all the 'plugins' would be a start.

My current build is for an x86 with an SSD - size doesn't really matter.
OTOH I've removed python to save build time - not needed.

Quoted 1 line

adding nvi might be a good idea. Feel free to send a patch!

:-)
I wonder if the fixes I did to netBSD's version got back to (whatever) the main repository is.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)