Arc Forumnew | comments | leaders | submitlogin
Arc with vim
15 points by galdor 6140 days ago | 10 comments
Hi,

I just discovered arc, and am quite enthousiastic; watching arc, I see the powerful and hackers-oriented language I'd like to use.

Since I am a vim-fanboy, is there other people like me ? I'm writing a vim syntax file to make my learning process easier (http://rafb.net/p/QzthgJ48.html), but if somebody already did it...

Two other questions, since I'm here; is there a FFI on the TODO-list ? And when will it be possible to use Arc without mzscheme ?

Thank you.



3 points by antiismist 6140 days ago | link

I'm also a VIM user. My setup is nothing fancy--just some screen instances and some :tabnews going.

I'll check out your syntax file, would help me out.

For running Arc w/o Mz, see http://arclanguage.org/item?id=4000

-----

3 points by shlomif 6137 days ago | link

I started adapting the syntax/filetype/indent vim configuration files of Scheme to Arc. You can find what I have so far in the git Arc-wiki under extras/vim:

* http://git.nex-3.com/arc-wiki.git

* git://nex-3.com/arc-wiki.git

Everyone can commit there so I'd be happy if you can resume work on what is present there.

Regards,

        Shlomi Fish

-----

2 points by tokipin 6136 days ago | link

how do i make it so that it automatically sets the lang as Arc when i open an arc file?

-----

3 points by wxin 6133 days ago | link

Just add following line to your ~/.vimrc.

   au bufnewfile,bufread	*.arc 	set ft=arc

-----

1 point by treef 6136 days ago | link

i also stuck the vi script i picked up earlier on the forum it - it can execute expressions or full file when you press f5 or f6 in a different window that is running arc that is started by python that is piped from vim.

-----

1 point by tokipin 6140 days ago | link

welcome

i tried to make vim switch to a copied lisp syntax when it boots up an arc file but i wasn't able to get even that working

as far as details for the syntax, i would say don't give the [... _ ...] notation any special color or anything

once you have something, anything really, i think it would be fine if you uploaded it to the anarki arc git wiki http://git.nex-3.com/arc-wiki.git into the 'extras' folder

i look forward to a prompt upload

-----

2 points by lojic 6140 days ago | link

http://arclanguage.com/item?id=685

-----

1 point by treef 6136 days ago | link

yes this is the method i used from day one works very well. It be good if we can unify it with good syntax highlighting and short cuts.

-----

1 point by offby1 6140 days ago | link

I'm pretty sure pg uses vi or vim, so it must be doable. Hang in there.

-----

1 point by galdor 6140 days ago | link

Thank you; I'm gonna tweak this plugin, add my syntax file, and try to make a nice package to upload.

-----