9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Announcing Vim for Plan 9
@ 2008-03-13 16:33 stefanha
  2008-03-13 16:55 ` andrey mirtchovski
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: stefanha @ 2008-03-13 16:33 UTC (permalink / raw)
  To: 9fans

I am porting Vim and have made the first tarballs available.  See
http://vmsplice.net/9vim.html.

If you are interested, please try it and let me know how it goes.  It
is usable, but do not rely on it yet.

Things that currently do not work:
 * Shell execution (including :sh, !, :make, vimdiff, man page
viewing, and suspend)
 * Mouse
 * Some unicode characters appear not to be fixed width
 * Startup is slow

Stefan

PS: Please avoid flamewar :).


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 16:33 [9fans] Announcing Vim for Plan 9 stefanha
@ 2008-03-13 16:55 ` andrey mirtchovski
  2008-03-13 16:56 ` erik quanstrom
  2008-03-14  3:20 ` Hongzheng Wang
  2 siblings, 0 replies; 14+ messages in thread
From: andrey mirtchovski @ 2008-03-13 16:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

you are my hero. now do the same for firefox ;)

no, seriously: thanks for the effort!


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 16:33 [9fans] Announcing Vim for Plan 9 stefanha
  2008-03-13 16:55 ` andrey mirtchovski
@ 2008-03-13 16:56 ` erik quanstrom
  2008-03-13 17:15   ` andrey mirtchovski
  2008-03-14  3:20 ` Hongzheng Wang
  2 siblings, 1 reply; 14+ messages in thread
From: erik quanstrom @ 2008-03-13 16:56 UTC (permalink / raw)
  To: 9fans

> PS: Please avoid flamewar :).

too late!

- erik


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 16:56 ` erik quanstrom
@ 2008-03-13 17:15   ` andrey mirtchovski
  2008-03-13 17:37     ` Federico G. Benavento
  2008-03-17  9:49     ` [9fans] " stefanha
  0 siblings, 2 replies; 14+ messages in thread
From: andrey mirtchovski @ 2008-03-13 17:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

so, is the color scheme fixed? can we get something resembling gvim's
"delek" color scheme (black letters on white background, light grey
selections)? that would make vim stand out against everything else
much less.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 17:15   ` andrey mirtchovski
@ 2008-03-13 17:37     ` Federico G. Benavento
  2008-03-13 18:24       ` andrey mirtchovski
  2008-03-17  9:49     ` [9fans] " stefanha
  1 sibling, 1 reply; 14+ messages in thread
From: Federico G. Benavento @ 2008-03-13 17:37 UTC (permalink / raw)
  To: 9fans

> so, is the color scheme fixed? can we get something resembling gvim's
> "delek" color scheme (black letters on white background, light grey
> selections)? that would make vim stand out against everything else
> much less.

"colo delek" in $home/lib/vimrc doesn't seem to work

but "colo evening" does, so it should be possible



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 17:37     ` Federico G. Benavento
@ 2008-03-13 18:24       ` andrey mirtchovski
  2008-03-13 20:34         ` Iruata Souza
  2008-03-17  9:49         ` [9fans] [plan9mod] " stefanha
  0 siblings, 2 replies; 14+ messages in thread
From: andrey mirtchovski @ 2008-03-13 18:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

i thought :colorscheme only worked for vim -g :)

oh well, here's a reproducible bug:

start vim, type :colorscheme ron (or whatever you like from
/lib/vim/vimfiles/color/), hit 'i', try to type some text. crash log
attached.

[-- Attachment #2: crash.txt --]
[-- Type: text/plain, Size: 2578 bytes --]

parr% vim
vim 383: suicide: sys: trap: fault read addr=0x4 pc=0x0014181e
parr% acid 383
/proc/383/text:386 plan 9 executable

/sys/lib/acid/port
/sys/lib/acid/386
acid: lstk()
_string(f=0x1b2c18,s=0x17a2bd,r=0x171e52,len=0x1,dst=0x1b0ec0,op=0xb,bg=0x0,src=0x0,pt=0x15c,clipr=0x15c,sp=0x0,bgp=0x0,.ret=0x179890)+0x1c7 /sys/src/libdraw/string.c:102
	sptr=0xdfffeab0
	rptr=0x0
	sf=0x0
	cbuf=0x34
	wid=0x9
	subfontname=0x0
	n=0x1
stringnbg(dst=0x1b0ec0,.ret=0x179890,pt=0x15c,src=0x0,sp=0x0,f=0x1b2c18,s=0x17a2bc,len=0x1,bg=0x0,bgp=0x0)+0x95 /sys/src/libdraw/stringbg.c:20
write_str(len=0x1,p=0x17a2bc)+0x121 /tmp/vim/vim71/src/os_plan9.c:563
	nbytes=0x1
	n=0x1
	m=0x1
mch_write(len=0x1,p=0x17a2bc)+0x41 /tmp/vim/vim71/src/os_plan9.c:591
ui_write(s=0x17a2b8,len=0x5)+0x66 /tmp/vim/vim71/src/ui.c:54
	tofree=0x0
out_flush()+0x29 /tmp/vim/vim71/src/term.c:2584
inchar(wait_time=0xffffffff,buf=0x17b124,maxlen=0xe8,tb_change_cnt=0x21)+0x243 /tmp/vim/vim71/src/getchar.c:2814
	len=0x0
	retesc=0x0
	script_char=0x1a5938
	dum=0x40000
vgetorpeek(advance=0x1)+0x4cc /tmp/vim/vim71/src/getchar.c:2689
	mp_match_len=0x0
	timedout=0x0
	mapdepth=0x0
	mode_deleted=0x0
	local_State=0x10
	keylen=0x0
	c=0x1a0fd0
	mp=0x0
	max_mlen=0x0
	c1=0x0
	mp2=0x0
	mp_match=0x0
	mlen=0x1
	save_vgetc_busy=0x1a5938
	tabuf=0x7e
	s=0x3e7
	i=0x0
	new_wcol=0x1
	new_wrow=0x0
	col=0x2
	old_wcol=0x2
	old_wrow=0x1
	vcol=0x0
	ptr=0x1
	wait_tb_len=0x0
vgetc()+0x7e /tmp/vim/vim71/src/getchar.c:1540
	save_allow_keys=0xa5a9d
	c2=0x0
	n=0x0
	buf=0xa5eda00
	i=0x1a5938
	c=0xa5ec7
safe_vgetc()+0x8 /tmp/vim/vim71/src/getchar.c:1737
edit(cmdchar=0x69,startln=0x0,count=0x1)+0x401 /tmp/vim/vim71/src/edit.c:708
	c=0x74
	did_backspace=0x0
	line_is_white=0x0
	old_topline=0x1
	old_topfill=0x0
	inserted_space=0x0
	replaceState=0x50
	nomove=0x0
	ptr=0x1b7f08
	mincol=0x0
	lastc=0x74
invoke_edit(repl=0x0,cmd=0x69,startln=0x0,cap=0xdfffee28)+0x45 /tmp/vim/vim71/src/normal.c:8726
	restart_edit_save=0x0
nv_edit(cap=0xdfffee28)+0xee /tmp/vim/vim71/src/normal.c:8699
	save_State=0xa
normal_cmd(oap=0xdfffee80,toplevel=0x1)+0x711 /tmp/vim/vim71/src/normal.c:1136
	ctrl_w=0x0
	old_col=0x0
	ca=0xdfffee80
	mapped_len=0x0
	c=0x69
	need_flushbuf=0x0
	idx=0x6a
	repl=0x17d5ce
	lit=0x12320f
	langmap_active=0x0
	cp=0x0
	lang=0x48
	towait=0x1231c2
	old_pos=0x1
	save_State=0x0
	kmsg=0x17d5ce
main_loop(cmdwin=0x0,noexmode=0x0)+0x13c /tmp/vim/vim71/src/main.c:992
	oa=0x0
	p=0x46028
main(argc=0x1,argv=0xdfffefbc)+0x6c9 /tmp/vim/vim71/src/main.c:941
	fname=0x0
	params=0x1
	wp=0x17ce44
_main+0x26 /sys/src/ape/lib/ap/386/main9.s:12
acid: 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 18:24       ` andrey mirtchovski
@ 2008-03-13 20:34         ` Iruata Souza
  2008-03-13 22:16           ` andrey mirtchovski
  2008-03-17  9:49         ` [9fans] [plan9mod] " stefanha
  1 sibling, 1 reply; 14+ messages in thread
From: Iruata Souza @ 2008-03-13 20:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thu, Mar 13, 2008 at 3:24 PM, andrey mirtchovski
<mirtchovski@gmail.com> wrote:
> i thought :colorscheme only worked for vim -g :)
>
>  oh well, here's a reproducible bug:
>
>  start vim, type :colorscheme ron (or whatever you like from
>  /lib/vim/vimfiles/color/), hit 'i', try to type some text. crash log
>  attached.
>

cpu% grep home crash.txt
take me back home

iru


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 20:34         ` Iruata Souza
@ 2008-03-13 22:16           ` andrey mirtchovski
  2008-03-14  4:52             ` lucio
  0 siblings, 1 reply; 14+ messages in thread
From: andrey mirtchovski @ 2008-03-13 22:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

>  cpu% grep home crash.txt
>  take me back home

http://mirtchovski.com/screenshots/ffmpeg.gif


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 16:33 [9fans] Announcing Vim for Plan 9 stefanha
  2008-03-13 16:55 ` andrey mirtchovski
  2008-03-13 16:56 ` erik quanstrom
@ 2008-03-14  3:20 ` Hongzheng Wang
  2 siblings, 0 replies; 14+ messages in thread
From: Hongzheng Wang @ 2008-03-14  3:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

That's great!  Thank you for your work.

On Fri, Mar 14, 2008 at 12:33 AM, stefanha <stefanha@gmail.com> wrote:
> I am porting Vim and have made the first tarballs available.  See
>  http://vmsplice.net/9vim.html.
>
>  If you are interested, please try it and let me know how it goes.  It
>  is usable, but do not rely on it yet.
>
>  Things that currently do not work:
>   * Shell execution (including :sh, !, :make, vimdiff, man page
>  viewing, and suspend)
>   * Mouse
>   * Some unicode characters appear not to be fixed width
>   * Startup is slow
>
>  Stefan
>
>  PS: Please avoid flamewar :).
>
>



--
HZ


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 22:16           ` andrey mirtchovski
@ 2008-03-14  4:52             ` lucio
  2008-03-14  5:06               ` ron minnich
  0 siblings, 1 reply; 14+ messages in thread
From: lucio @ 2008-03-14  4:52 UTC (permalink / raw)
  To: 9fans

>>  cpu% grep home crash.txt
>>  take me back home
>
> http://mirtchovski.com/screenshots/ffmpeg.gif

A question in total innocence: What does Vim really buy you?

++L



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-14  4:52             ` lucio
@ 2008-03-14  5:06               ` ron minnich
  2008-03-14  5:19                 ` andrey mirtchovski
  0 siblings, 1 reply; 14+ messages in thread
From: ron minnich @ 2008-03-14  5:06 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thu, Mar 13, 2008 at 8:52 PM,  <lucio@proxima.alt.za> wrote:
> >>  cpu% grep home crash.txt
>  >>  take me back home
>  >
>  > http://mirtchovski.com/screenshots/ffmpeg.gif
>
>  A question in total innocence: What does Vim really buy you?

it buys you a negative. I won't have to hear people whine any more about
"where is vi?". So it's one less complaint.

One less buzzing sound in my ears. All good.

Oh, and I personally like the tags stack.

ron


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-14  5:06               ` ron minnich
@ 2008-03-14  5:19                 ` andrey mirtchovski
  0 siblings, 0 replies; 14+ messages in thread
From: andrey mirtchovski @ 2008-03-14  5:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

and syntax highlighting. two rabbits with one shot (sorry, glenda)


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] Announcing Vim for Plan 9
  2008-03-13 17:15   ` andrey mirtchovski
  2008-03-13 17:37     ` Federico G. Benavento
@ 2008-03-17  9:49     ` stefanha
  1 sibling, 0 replies; 14+ messages in thread
From: stefanha @ 2008-03-17  9:49 UTC (permalink / raw)
  To: 9fans

On Mar 13, 5:19 pm, mirtchov...@gmail.com (andrey mirtchovski) wrote:
> so, is the color scheme fixed? can we get something resembling gvim's
> "delek" color scheme (black letters on white background, light grey
> selections)? that would make vim stand out against everything else
> much less.

The colors and background=dark are hardcoded at the moment.  Since all
graphics is being done inside Vim, I might hook :set background=light
to change the background color to white and foreground to black.

To tweak the source, look at src/os_plan9.c:init_colors.  Try:
cterm_normal_bg_color = 16;
cterm_normal_fg_color = 1;

Note that loading color schemes with :colo appears to crash (reported
by fgb).  I am fixing that right now.

Stefan


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [9fans] [plan9mod] Re: Announcing Vim for Plan 9
  2008-03-13 18:24       ` andrey mirtchovski
  2008-03-13 20:34         ` Iruata Souza
@ 2008-03-17  9:49         ` stefanha
  1 sibling, 0 replies; 14+ messages in thread
From: stefanha @ 2008-03-17  9:49 UTC (permalink / raw)
  To: 9fans

I have fixed color scheme loading and made the default colors black
for foreground and white for background.  Will roll new tarballs
tomorrow.

Stefan


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-03-17  9:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-13 16:33 [9fans] Announcing Vim for Plan 9 stefanha
2008-03-13 16:55 ` andrey mirtchovski
2008-03-13 16:56 ` erik quanstrom
2008-03-13 17:15   ` andrey mirtchovski
2008-03-13 17:37     ` Federico G. Benavento
2008-03-13 18:24       ` andrey mirtchovski
2008-03-13 20:34         ` Iruata Souza
2008-03-13 22:16           ` andrey mirtchovski
2008-03-14  4:52             ` lucio
2008-03-14  5:06               ` ron minnich
2008-03-14  5:19                 ` andrey mirtchovski
2008-03-17  9:49         ` [9fans] [plan9mod] " stefanha
2008-03-17  9:49     ` [9fans] " stefanha
2008-03-14  3:20 ` Hongzheng Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).